| | |
| Stránka: 1 z 1
| [ Príspevok: 1 ] | |
Autor | Správa |
---|
Registrovaný: 01.05.05 Príspevky: 13348 Témy: 1496 Bydlisko: Bratislava | Napísal JanoF: 14.10.2006 15:04 | |
|
Kód: ############################################################## ## MOD Title: profile signature preview ## MOD Author: p0rt < > ( ) http://irgoslak.org/ ## MOD Description: Allows users the build a favorite topics list ## MOD Version: 1.0.0 ## ## Installation Level: easy ## Installation Time: 2 Minutes ## Files To Edit: includes/usercp_register.php ## Included Files: ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################
# #-----[ OPEN ]------------------------------------------ # includes/usercp_register.php # #-----[ FIND ]------------------------------------------ # $unhtml_specialchars_replace = array('>', '<', '"', '&'); # #-----[ AFTER, ADD ]------------------------------------------ # $preview = ( isset( $HTTP_POST_VARS['signature'] ) ) ? $HTTP_POST_VARS['signature'] : ''; # #-----[ FIND ]------------------------------------------ # $template->assign_vars(array( 'USERNAME' => $username, # #-----[ BEFORE, ADD ]------------------------------------------ # if ( $preview ) { $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word);
$signature = str_replace("\n", '<br />', $preview); $signature = stripslashes(prepare_message(addslashes(unprepare_message($preview)), $html_on, $bbcode_on, $smilies_on, $bbcode_uid));
$bbcode_uid = make_bbcode_uid() ; $preview = prepare_message($preview, $allowhtml, $allowbbcode, $allowsmilies, $bbcode_uid); if( !$userdata['user_allowhtml'] ) { if( $preview != '' || !$userdata['user_allowhtml'] ) { $preview = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $preview); } } if( $userdata['user_allowbbcode'] ) { $preview = bbencode_second_pass($preview, $bbcode_uid); } if( !empty($orig_word) ) { $signature = ( !empty($preview) ) ? preg_replace($orig_word, $replacement_word, $signature) : ''; } if( $userdata['user_allowsmile'] ) { $preview = smilies_pass($preview); }
$preview = word_wrap_pass($preview); $preview = "<br /><table width=\"100%\" height=\"100%\" class=\"gensmall\"><tr><td class=\"row2\">".$lang['Signature']."</td></tr><tr><td class=\"row1\"><br />_________________<br />". str_replace("\n", "\n<br />\n", $preview)."<br /><br /></td></tr></table>"; } # #-----[ FIND ]------------------------------------------ # 'PROFILE_SIGNATURE' => $signature, # #-----[ AFTER, ADD ]------------------------------------------ # 'SIGNATURE' => str_replace('<br />', "\n", $message), # #-----[ FIND ]------------------------------------------ # 'L_SUBMIT' => $lang['Submit'], # #-----[ AFTER, ADD ]------------------------------------------ # 'L_PREVIEW' => $lang['Preview'], # #-----[ OPEN ]------------------------------------------ # templates/*/profile_add_body.tpl # #-----[ FIND ]------------------------------------------ # <textarea name="signature"style="width: 300px" rows="6" cols="30" class="post">{SIGNATURE}</textarea> # #-----[ AFTER, ADD ]------------------------------------------ # {SIG_PREVIEW} # #-----[ FIND ]------------------------------------------ # <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> # #-----[ AFTER, ADD ]------------------------------------------ # <input type="submit" name="preview" value="{L_PREVIEW}" class="post" /> # #-----[ 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
|
|