| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13349 Témy: 1496 Bydlisko: Bratislava | Napísal JanoF: 13.10.2006 9:13 | |
|
Kód: ############################################################## ## MOD Title: Spam warning ## MOD Author: Underhill < webmaster@underhill.de > (N/A) http://www.underhill.de/ ## MOD Description: Warns user on registration or changes to profiles not to show the email adress using JavaScript ## MOD Version: 1.3.0 ## ## Installation Level: easy ## Installation Time: 5 minutes ## Files To Edit: ## includes/usercp_register.php ## templates/subSilver/profile_add_body.tpl ## language/lang_english/lang_main.php ## Included Files: N/A ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## Author Notes: ## ## This modification was built for use with the phpBB template "subSilver" ## ## Screenshot: http://www.underhill.de/downloads/phpbb2mods/spamwarning.png ## Download: http://www.underhill.de/downloads/phpbb2mods/spamwarning.txt ############################################################## ## MOD History: ## ## 2006-03-24 - Version 1.3.0 ## - Successfully tested with EasyMOD beta (0.3.0) ## - Fixed bug with Opera (Zenandrar) ## - Fixed display problem with Internet Explorer ## ## 2005-12-31 - Version 1.2.0 ## - Successfully tested with phpBB 2.0.19 ## - Changed alert to confirm (badboy4ever) ## ## 2005-12-11 - Version 1.1.2 ## - MOD Syntax changes for the phpBB MOD Database ## - Successfully tested with phpBB 2.0.18 ## ## 2005-10-03 - Version 1.1.1 ## - MOD Syntax changes for the phpBB MOD Database ## ## 2005-10-01 - Version 1.1.0 ## - Format changed to the phpBB MOD Template ## - Successfully tested with phpBB 2.0.17 ## ## 2004-03-11 - Version 1.0.0 ## - Built and successfully tested with phpBB 2.0.8 ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################
# #-----[ OPEN ]------------------------------------------------------------------ #
includes/usercp_register.php
# #-----[ FIND ]------------------------------------------------------------------ #
'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'],
# #-----[ AFTER, ADD ]------------------------------------------------------------ #
'L_PUBLIC_VIEW_EMAIL_REQUEST' => $lang['Public_view_email_request'],
# #-----[ OPEN ]------------------------------------------------------------------ #
templates/subSilver/profile_add_body.tpl
# #-----[ FIND ]------------------------------------------------------------------ #
<input type="radio" name="viewemail" value="1" {VIEW_EMAIL_YES} />
# #-----[ BEFORE, ADD ]---------------------------------------------------------- #
<script type="text/javascript" language="JavaScript"> <!-- // Spam warning function spamwarn_question() { if (confirm('{L_PUBLIC_VIEW_EMAIL_REQUEST}')) { document.getElementsByName('viewemail')[0].checked = true; return true; } else { document.getElementsByName('viewemail')[1].checked = true; return false; } } //--> </script>
# #-----[ IN-LINE FIND ]---------------------------------------------------------- #
value="1"
# #-----[ IN-LINE AFTER, ADD ]---------------------------------------------------- #
onclick="return spamwarn_question();"
# #-----[ OPEN ]------------------------------------------------------------------ #
language/lang_english/lang_main.php
# #-----[ FIND ]------------------------------------------------------------------ #
$lang['Admin_reauthenticate'] =
# #-----[ BEFORE, ADD ]---------------------------------------------------------- #
$lang['Public_view_email_request'] = 'Are you sure you want to show your e-mail address?\n\nYou will have no protection against SPAM ...';
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM
_________________ Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server |
|
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|