[Mod]Profilde İmza

Bilgisayar donanımları, kullanım kolaylıkları, yardım konuları ve teknolojik haberler.

[Mod]Profilde İmza

İletigönderen Mitnick Condor » Pzr Ağu 26, 2007 12:22

İm (Kod): Tümünü seç
################################################################
## MOD Title: Signatur in Profil
## MOD Author:  killerbees19 < forum@happytec.at > (Christian Schroetter) http://www.happytec.at
## MOD Description: German:
##                  Zeigt die Signatur eines Benutzers im Profil an.
##
##                  English:
##                  This hack adds signatures to member profiles.
##
## MOD Demo:          http://www.forum.happytec.at/profile.php?mode=viewprofile&u=3
## MOD Version:       1.0.0
## MOD Compatibility: 2.0.21 - 2.0.22
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit:   includes/usercp_viewprofile.php
##                  templates/xxx/profile_add_body.tpl
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
################################################################
## Author Notes:
##
##
################################################################
## MOD History:
##
##   2006-09-01 - Version 1.0.1
##      - Bugfix
##
##   2006-08-30 - Version 1.0.0
##      - First Release
##
################################################################
##   
##  Support:      http://www.forum.happytec.at
##  Copyright:   2006 Christian Schrötter
##
################################################################
##
## For security purposes, please check: http://www.happytec.at/download/d_02.php
## 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.de/moddb/
##
################################################################
##  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 . '">' . sprintf($lang['Search_user_posts'], $profiledata['username']) . '</a>';

#
#-----[ AFTER, ADD ]------------------------------------------
#
//
//Signatur in Profil ANFANG
//
$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 = !empty($orig_word) ? $orig_word : array();
         $replacement_word = !empty($replacement_word) ? $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());
  }   
}
//
//Signatur in Profil ENDE
//

#
#-----[ FIND ]-------------------------------------------------
#

   'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),

#
#-----[ AFTER, ADD ]-------------------------------------------------
#
   'USER_SIG' => $user_sig,

#
#-----[ FIND ]------------------------------------------
#

'L_INTERESTS' => $lang['Interests'],

#
#-----[ AFTER, ADD ]------------------------------------------------
#
   
   'L_SIG' => $lang['Signature'],

#
#-----[ OPEN ]---------------------------------------------
# note: do this for every template installed
templates/xxx/profile_view_body.tpl

#
#-----[ FIND ]---------------------------------------------
#
//--></script><noscript>{ICQ_IMG}</noscript></td>
      </tr>
     </table>
   </td>
  </tr>
</table>

#
#-----[ REPLACE WITH ]-------------------------------------
#
//--></script><noscript>{ICQ_IMG}</noscript></td>
      </tr>
     </table>
   </td>
  </tr>
  <!-- BEGIN switch_user_sig_block -->
  <tr>
     <td colspan="2">
     <table width="100%">
      <tr>
        <td width="100%" class="catLeft" colspan="2" height="28" align="center"><span class="gen"><strong> {L_SIG} </strong></span></td>
      <tr>
        <td align = "center" class="row1"><span class="postbody"> {USER_SIG} </span></td>
      </tr>
    </table>
     </td>
  </tr>
  <!-- END switch_user_sig_block -->
</table>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM



Üye profil sayfasında imzasını görebilir.
Kullanıcı küçük betizi
Mitnick Condor
Üye
Üye
 
İletiler: 26
Kayıt: Pzr Mar 11, 2007 13:15

Şu dizine dön: Bilgisayar

Kİmler çevrİmİçİ

Bu dizini gezen kullanıcılar: Hiç kayıtlı kullanıcı yok ve 0 konuk

x