| | |
| 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: 14.10.2006 15:06 | |
|
Kód: ############################################### ## Hack Title: Signature Preview ## Hack Version: 1.0.0 ## Author: DTTVB (a.k.a. Mechakoopa Revolution) <mechakoopa@gmail.com> ## Description: View your signature where you are editing the signature ## Compatibility: 2.0.16 ## ## Installation Level: Easy ## Installation Time: < 3 Minutes ## ## Files To Edit: 6 ## includes/usercp_register.php ## templates/subSilver/profile_add_body.tpl ## ## Included Files: N/A ## ## Support: http://www.phpbbhacks.com/forums ## ## Copyright: Copyright (C) 2005 Signature Preview 1.0.0 - DTTVB ############################################### ## ## Author Notes: ## N/A ## ############################################### ## Always back up all files related to this hack before use! ############################################### ## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads. ## Please visit http://www.phpbbhacks.com/forums for support. ############################################### ## This hack is released under the GPL License. ## This hack can be freely used, but not distributed, without permission. ############################################### ## You can always contact me via e-mail if you have any questions, suggestions. ## My e-mail is mechakoopa@gmail.com ###############################################
# #-----[ OPEN ]---------------------------------------- # includes/usercp_register.php
# #-----[ FIND ]---------------------------------------- # if ( isset($HTTP_POST_VARS['submit']) ||
# #-----[ BEFORE, ADD ]---------------------------------------- # include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
# #-----[ FIND ]---------------------------------------- # include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); include($phpbb_root_path . 'includes/bbcode.'.$phpEx); include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
# #-----[ REPLACE WITH ]---------------------------------------- # include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); //Begone ; ) include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
# #-----[ FIND ]---------------------------------------- # $html_status = ( $userdata['user_allowhtml'] && $board_config['allow_html'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; $bbcode_status = ( $userdata['user_allowbbcode'] && $board_config['allow_bbcode'] ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; $smilies_status = ( $userdata['user_allowsmile'] && $board_config['allow_smilies'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF'];
# #-----[ AFTER, ADD ]---------------------------------------- # $user_sig = $userdata['user_sig']; $user_sig_bbcode_uid = $userdata['user_sig_bbcode_uid']; if ( !$board_config['allow_html'] || !$userdata['user_allowhtml']) { if ( $user_sig != '' ) { $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); } } if ( $board_config['allow_bbcode'] ) { if ( $user_sig != '' && $user_sig_bbcode_uid != '' ) { $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig); } } if ( $board_config['allow_smilies'] ) { if ( $userdata['user_allowsmile'] && $user_sig != '' ) { $user_sig = smilies_pass($user_sig); } } if ( $user_sig != '' ) { $user_sig = str_replace("\n", "\n<br />\n", $user_sig); }
# #-----[ FIND ]---------------------------------------- # 'SIGNATURE' => str_replace('<br />', "\n", $signature),
# #-----[ AFTER, ADD ]---------------------------------------- #
'SIGNATURE_P' => $user_sig,
# #-----[ FIND ]---------------------------------------- # $message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
# #-----[ REPLACE WITH ]---------------------------------------- # $message = $lang['Profile_updated'] . '<br /><br /><a href="profile.' . $phpEx . '?mode=editprofile#sigprv">Preview your signature</a><br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
# #-----[ OPEN ]---------------------------------------- # templates/subSilver/profile_add_body.tpl
# #-----[ FIND ]---------------------------------------- # <tr> <td class="row1"><span class="gen">{L_SIGNATURE}:</span><br /><span class="gensmall">{L_SIGNATURE_EXPLAIN}<br /><br />{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
# #-----[ BEFORE, ADD ]---------------------------------------- # <tr> <th class="thSides" colspan="2" height="12" valign="middle"><a name="sigprv">Signature Panel</th> </tr> <tr> <td class="row1"><span class="gen"><b>Preview:</b></span></td> <td class="row2"><span class="gen">{SIGNATURE_P}</span></td> </tr>
# #-----[ SAVE & CLOSE ALL FILES ]---------------------------------------- # # End of Hack - YAY!
_________________ 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
|
|