Gekleurde admin/mod namen in posts
Geplaatst: 28 feb 2003, 18:54
Ik heb deze mod een beetje verduidelijkt.
Code: Selecteer alles
##############################################################
## MOD Title: Gekleurde admin/mod namen in posts
## MOD Author: Onbekend
## MOD In txt Bestand overgezet door: DaMnNaTiOn
## MOD Description: Deze Mod voegt bij de Viewtopic.php een kleurtje bij de Admin of Mod toe.
## phpBB Version: Alleen getest met phpBB versie 2.0.4.
## MOD Version: 1.0.0
## Installation Level: Easy
## Installation Time: 5 Minuten
## Files to Edit: viewtopic.php
## Included Files: n/a
########################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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/downloads/
##############################################################
## Author Notes:
## Ik ben niet de echte maker van deze mod, maar ik zet deze mod wel in een tekst bestand.
## De echter auteur kon ik niet vinden.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_id,
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
u.user_level,
#
#-----[ FIND ]------------------------------------------
#
$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
$poster = ($postrow[$i]['user_level'] == ADMIN ) ? '<span style="color:#' . $theme['fontcolor3'] . '">' . $postrow[$i]['username'] . '</span>' : ( ($postrow[$i]['user_level'] == MOD ) ? '<span style="color:#' . $theme['fontcolor2'] . '">' . $postrow[$i]['username'] . '</span>' : $postrow[$i]['username'] );
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
#
# EoM