[MOD] Signature Preview / İmza Önizleme - TurkishNuke
PHP Nuke - Themes - Modules - Blocks - Addons - Turkish Nuke: Forumlar

Turkish Nuke ~ Başlığı Görüntüle - [MOD] Signature Preview / İmza Önizleme

Sorularınızı sorarken başlıkta "Acil, yardım, biri yardım etsin, bir bakın, çözümü nedir?, yardım edecek yok mu?" gibi başlıklar kullanmayınız. Başlıklar okuyan kişilere mesaj içeriği ile ilgili bilgi vermesi için var. Ve bilgi vermeyen başlık yöneticiler tarafından kilitlenebilir, silinebilir, değiştirilebilir.

 

Turkish Nuke Forum Ana Sayfası -> Phpbb Mod -> [MOD] Signature Preview / İmza Önizleme
AhmetPasha
MesajTarih: Sal Hzr 13, 2006 4:43 pm 
[MOD], Signature, Preview, /, İmza, Önizleme, [MOD] Signature Preview / İmza Önizleme,
Alıntıyla Cevap Ver
   
Site Admin
Site Admin


Kayıt: Jan 28, 2005
Mesajlar: 1707
Nerden: İstanbul/Avcılar


Kod:
###############################################
##   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!
 

_________________
Başa dön
Kullanıcı profilini gör Özel mesaj gönder Kullanıcının web sitesini ziyaret et MSN Messenger
Mesajları göster:   
Tüm saatler GMT +2 Saat

Sonraki başlık
Önceki başlık
1. sayfa (Toplam 1 sayfa)
Turkish Nuke Forum Ana Sayfası  ~  Phpbb Mod

Yeni Başlık Gönder   Cevap Gönder


 
Forum Seçin:  

Bu forumda yeni konular açamazsınız
Bu forumdaki mesajlara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Copyright © Haziran 2005, TurkishNuke ™ Her hakkı saklıdır.
Web sitemizin PHP-Nuke tabanlıdır.

Bu site en iyi 1024x768 ve üzeri çözünürlüklerde, İnternet Explorer ve Firefox ile görüntülenir.
 

stories | temizlik | Kırcaali

AktifPHP!