Admin color in post topic?

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Lex Luthor
Registered User
Posts: 3
Joined: Sun Mar 09, 2003 7:25 am
Contact:

Admin color in post topic?

Post by Lex Luthor »

I know there is the mod to change the color under last view/last topic
for the admin.

I was wondering if there was one for right Here
<------

If this has been made or asked already I'm sorry about your time
but I have not been able to find it.
talia679
Registered User
Posts: 716
Joined: Tue Mar 12, 2002 4:07 pm
Location: PA
Contact:

Post by talia679 »

Thanks, Talia
Tag You're It Writing Community || TYI Forums
Taleria - Talia's Gallery of 2000+ Links & 140+ Books
GameCrafters Guild – Gaming info and resources
Lex Luthor
Registered User
Posts: 3
Joined: Sun Mar 09, 2003 7:25 am
Contact:

??

Post by Lex Luthor »

No not that one I have that one and it's great

but I was thinking for in here

<---right over there where it say's Lex Luthor

is there such a mod or is it possible?...I would think it would be .
maybe that will be my first try at one =)
User avatar
drathbun
Former Team Member
Posts: 12204
Joined: Thu Jun 06, 2002 3:51 pm
Location: TOPICS_TABLE
Contact:

Post by drathbun »

Yes it is possible, because I have such a mod on my board. I don't remember where I got it, but it worked okay. I changed it so that your name only changes color if you are a moderator in that forum (the original changed the color of your user name if you were a moderator anywhere.)

The gist of it is here. Use at your own risk; be sure to back up files first. All of these changes are applied to viewtopic.php.

Dave

Code: Select all

# 
# ------ [ Action: FIND ] ---- 
#    

$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 ] ----  adding u.user_level to the sql
#    

$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 ] ---- 
#    

	$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username'];


# 
# ------ [ Action: Replace with ] ----
#    

	if ($postrow[$i]['user_level'] == ADMIN)
	{
		$poster = '<span style="color:#' . $theme['fontcolor3'] . '">' . $postrow[$i]['username'] . '</span>&<img src="images/admin.gif" border="0" width="30" height="22" alt="Administrator" align="right">';
	}
	else if ($postrow[$i]['user_level'] == MOD)
	{
		$poster = '<span style="color:#' . $theme['fontcolor2'] . '">' . $postrow[$i]['username'] . '</span>&<img src="images/mod.gif" border="0" width="30" height="22" alt="Moderator" align="right">';
	}
	else
	{
		$poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username'];
	}
	// stop post admin or mod image mod

# 
# ------ [ Action: save, close, upload ] ---- 
#  
I blog about phpBB: phpBBDoctor blog
Still using phpbb2? So am I! Click below for details
Image
Post Reply

Return to “[2.0.x] MOD Requests”