| | |
| 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: 13.10.2006 9:07 | |
|
Kód: ############################################################## ## MOD Title: View Profile Sig ## MOD Author: netclectic < adrian@netclectic.com > (Adrian Cockbutn) http://www.netclectic.com ## MOD Description: Adds the user's signature to their view profile page. ## MOD Version: 1.1.1 ## ## Installation Level: easy ## Installation Time: 3 Minutes ## Files To Edit: (2) usercp_viewprofile.php, profile_view_body.tpl ## Included Files: n/a ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ############################################################## ## MOD History: ## 2003-11-07 - Version 1.1.1 ## - updated for 2.0.6 (no changes) ## - removed the <b> </b> tags from around the signature. ## ## xxxx-xx-xx - Version 1.1.0 ## - Updated for 2.0.4 and fixed a problem with formatting of the signature. ## ## xxxx-xx-xx - Version 1.0.0 ## - First release. ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##############################################################
# #-----[ OPEN ]------------------------------------------ # includes/usercp_viewprofile.php
# #-----[ FIND ]------------------------------------------ # $search = '<a href="' . $temp_url . '">' . $lang['Search_user_posts'] . '</a>';
# #-----[ AFTER, ADD ]------------------------------------ # $user_sig = ''; if ( $profiledata['user_attachsig'] && $board_config['allow_sig'] ) { include($phpbb_root_path . 'includes/bbcode.'.$phpEx); $user_sig = $profiledata['user_sig']; $user_sig_bbcode_uid = $profiledata['user_sig_bbcode_uid']; if ( $user_sig != '' ) { if ( !$board_config['allow_html'] && $profiledata['user_allowhtml'] ) { $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); } if ( $board_config['allow_bbcode'] && $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); } $user_sig = make_clickable($user_sig);
if (!$userdata['user_allowswearywords']) { $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); $user_sig = preg_replace($orig_word, $replacement_word, $user_sig); } if ( $profiledata['user_allowsmile'] ) { $user_sig = smilies_pass($user_sig); } $user_sig = str_replace("\n", "\n<br />\n", $user_sig); } $template->assign_block_vars('switch_user_sig_block', array()); }
# #-----[ FIND ]------------------------------------------ # 'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
# #-----[ AFTER, ADD ]------------------------------------ # 'L_SIGNATURE' => $lang['Signature'], 'USER_SIG' => $user_sig,
# #-----[ OPEN ]------------------------------------------ # templates/subSilver/profile_view_body.tpl
# #-----[ FIND ]------------------------------------------ # <tr> <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td> <td> <b><span class="gen">{INTERESTS}</span></b></td> </tr>
# #-----[ AFTER, ADD ]------------------------------------ # <!-- BEGIN switch_user_sig_block --> <tr> <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_SIGNATURE}: </span></td> <td> <span class="postbody">{USER_SIG}</span></td> </tr> <!-- END switch_user_sig_block --> # #-----[ 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
|
|