/me ==)) mesajı gönderenin adı
/you ==)) mesajı okuyanın adı
/we ==))) hem mesajı gönderenin hemde okuyanın adı.
/us ==)) topluluğun adı olarak.
[ resmi görüntülemek için tıklayın ]
Kod: Tümünü seç
##############################################################
## MOD Title:/me /you plus /we /us
## MOD Author: Nick < bobsnox@bobsnox.com > http://www.bobsnox.com/forum
## MOD Description: Replaces /me with poster, /you with reader, /we with both, and /us with forum name.
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 3 Minutes
## Files To Edit: viewtopic.php
## posting.php
## Included Files: n/a
##############################################################
## Author Notes: Names will only show after posting, in the viewtopic screen, not in preview. Edit colors and Forum name to suit your board.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
// If the board has HTML off but the post has HTML
// on then we process it, else leave it alone
//
#
#-----[ AFTER, ADD ]-------------------------------------
#
{
$message = str_replace("/me ","<font color=\"orange\"> " .$poster. "</font> ",$message);
}
{
$message = str_replace("/you ","<font color=\"violet\"> " .$userdata['username']. "</font> ",$message);
}
#
#-----[ FIND ]-------------------------------------------
#
if ( $postrow[$i]['enable_html'] )
{
$message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message);
}
}
#
#-----[ AFTER, ADD ]-------------------------------------
#
{
$message = str_replace("/we ","<font color=\"#4d7bc1\"><strong> " .$userdata['username']." and ".$poster. "</strong></font> ",$message);
}
{
$message = str_replace("/us ","<font color=\"red\"><strong> " ."Forum name". "</strong></font> ",$message);
}
#
#-----[ OPEN ]-------------------------------------------
#
posting.php
#
#-----[ FIND ]-------------------------------------------
#
if ( !empty($orig_word) )
#
#-----[ BEFORE, ADD ]------------------------------------
#
{
$message = str_replace("/me "," $quote_username ",$message);
}
#
#-----[ SAVE/CLOSE ALL FILES ]
#
#EoM