IT NEWS PC REVUE PC FORUM FreeBSDInternet time: @019
Obsah fóra
Pravidlá  •  Kontakt  •  Prihlásenie  •  Registrácia

Dokonalosť v jednoduchosti

Wyse T10 – dokonalosť, na ktorú ste čakali. www.ts.avnet.com

Hľadáte CRM softvér?

SunSoft.CRM • množstvo funkcií • možnosť individuálnych úprav • výhodná cena crm.sunsoft.sk

Sprostredkovávajte hypotéky

Začnite sprostredkovávať hypotéky s úspešným hypotekárnym centrom! www.SprostredkovanieUverov.sk

Bonus 50 € za prenos

čísla do O2 na ktorýkoľvek program s platbou na faktúru. V e-shope. www.o2.sk

Neuveriteľne lacná .sk doména

Rýchla registrácia domén za výborné ceny. www.exohosting.sk

Signature Preview

Zaslať odpoveď
AutorSpráva
JanoF
Správca fóra
Správca fóra

Založený: 01.05.2005
Príspevky: 8736
Bydlisko: Bratislava
Vek: 27

PríspevokZaslal: So 14.10.06 15:06Odpovedať s citátomNávrat hore

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', "&lt;\\2&gt;", $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!

_________________
Skrinka: Nexus Morpho & Enermax UCTB12P | Zdroj: Enermax EMG800AWT 800W | Základná doska: Asus Rampage III Gene | Procesor: Intel Core i7 990X Extreme Edition 3.46 GHz & Scythe Susanoo SCSO-1000 | Pamäť: Kingston HyperX XMP 24 GB DDR3 1600 MHz | Grafická karta: Asus GeForce GT 440 1 GB DDR3 & Thermalright HR-03 | Pevný disk: Intel SSD 510 Series 250 GB & Hitachi Deskstar 5K4000 4000 GB | Optická mechanika: Plextor PX-820SA | Čítačka kariet: Akasa AK-ICR-11 | Klávesnica: Logitech G19 | Myš: Logitech G9x & Razer Kabuto | Monitor: 24" LCD Eizo FlexScan S2431WE | Reproduktory: Logitech Z-2300 | Operačný systém: Microsoft Windows 7 & FreeBSD 9 | Záložný zdroj: APC Back-UPS ES 700 | Spotreba: Idle - 200W / Burn - 400W | Mobil: Nokia N9 64 GB
Zobraziť informácie o autoroviOdoslať súkromnú správuOdoslať e-mailSkypeFacebookTwitterZobraziť autorove WWW stránky
Zobraziť príspevky z predchádzajúcich:    
Zaslať odpoveď
Nemôžete pridávať nové témy do tohto fóra.
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.
Nemôžete hlasovať v tomto fóre.

Powered by phpBB 2.x.x © 2005 - 2012 PCforum, webhosting by WebSupport, edited by JanoF

SEO - optimalizácia pre vyhľadávače

Freebsd