ich habe einen hack bei phpbbhacks.com gefunden, aber der ist nur für phpbb 2.0.0 und ich hatte beim einbau probleme.
(die ersten beiden FIND konnte ich nicht finden....)
ausserdem bräuchte ich noch ne anpassung für den supermod.
könnt ihr mir hier weiterhelfen ?
vielen dank für jede hilfe !!
gruß dagobert
Code: Alles auswählen
########################################################
## MOD Title: Admin & Moderator Image Beside Topic Posts
## MOD Version: 1.2
## Author: Brewjah < blackhash@rogers.com >
##
## Description:
##
## This mod will add an image beside the moderator and admin
## and colour the admin/moderator nick in the viewtopic pages
## of your forum.. Tested on RC-3 and RC-4 based on mitsubishi's
## admin & moderator colour mod for viewtopics page
##
## Installation Level: (easy)
## Installation Time: 2-5 Minutes
##
## Files To Edit: 2
## - forumroot/viewtopic.php
## - forumroot/whosonline.php
##
## Included Files: None
##
########################################################
## VERSION HISTORY:
##
## March 23rd 2002: v1.2
## 1. added image tag to who's online page
##
## March 22nd 2002: v1.1
## 1. borrowed and alterd Mitsubishi's colour code
##
########################################################
##
## NOTES: make and upload images to the root directory
## or change the <img src="admin.gif"> to
## <img src="images/admin.gif> as well as
## <img src="moder.gif"> to
## <img src="images/moder.gif>
## *** REMEMBER TO MAKE THE ACTUAL IMAGES
## *** NOT INCLUDED WITH THIS MOD.
##
########################################################
#
# ------ [ Action: Open ] ----
#
Viewtopic.php
#
# ------ [ Action: FIND (line 398ish) ] ----
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
# ------ [ Action: REPLACE WITH ] ----
#
$sql = "SELECT u.user_level, u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
# ------ [ Action: Find (line 815ish) ] ----
#
$poster = $postrow[$i]['username'];
#
# ------ [ Action: Replace with ] ----
#
$poster = ($postrow[$i]['user_level'] == ADMIN ) ? '<span style="color:#' . $theme['fontcolor3'] . '">' . $postrow[$i]['username'] . '</span> <img src="admin.gif" border="0">' : ( ($postrow[$i]['user_level'] == MOD ) ? '<span style="color:#' . $theme['fontcolor2'] . '">' . $postrow[$i]['username'] . '</span> <img src="moder.gif" border="0">' : $postrow[$i]['username'] );
#
# ------ [ Action: save, close, upload ] ----
#
#
# ------ [ Action: open ] ----
#
viewonline.php
#
# ------ [ Action: Find ] ----
#
$style_color = "";
if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b>';
}
#
# ------ [ Action: replace with ] ----
#
$style_color = "";
if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#' . $theme['fontcolor2'] . '">' . $username . '</b> <img src="admin.gif" border="0">';
}
#
# ------ [ Action: Find ] ----
#
else if ( $row['user_level'] == MOD )
{
$username = '<b style="color:#' . $theme['fontcolor1'] . '">' . $username . '</b>';
}
#
# ------ [ Action: replace with ] ----
#
else if ( $row['user_level'] == MOD )
{
$username = '<b style="color:#' . $theme['fontcolor1'] . '">' . $username . '</b> <img src="mod.gif" border="0">';
}
#
# ------ [ Action: save, close, upload ] ----
#
#
##### [ EOF ] ##########################################