shrek1609 Posted March 18, 2008 Posted March 18, 2008 I'm trying to get my staff names a different colour in the forums... I've managed it everywhere else but like hell i can work it out for forums... i've found this (2 instances of this code) $u=$ir['username']; if($ir['ul_color']) { $uname="<font color='{$ir['ul_color']}'>"; if($ir['ul_isbold']) { $uname.=""; } $uname.=$ir['username']; if($ir['ul_isbold']) { $uname.=""; } $uname.="</font>"; $u=$uname; } else if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>"; } and added else if($ir['user_level'] ==2) { $u = "<font color=red>{$ir['username']}</font>"; } But that doesnt work :( If anyone could solve this would be very grateful... Please dont do too complicated answer as only just learning ;) Quote
WickedJester Posted March 20, 2008 Posted March 20, 2008 Re: Please help with staff names $u=$ir['username']; if($ir['ul_color']) { $uname="<font color='{$ir['ul_color']}'>"; if($ir['ul_isbold']) { $uname.=""; } $uname.=$ir['username']; if($ir['ul_isbold']) { $uname.=""; } $uname.="</font>"; $u=$uname; } else if($ir['donatordays'] && $ir['user_level'] !=2) { $u = "<font color=red>{$ir['username']}</font>"; } else if($ir['user_level'] ==2) { $u = "<font color=red>{$ir['username']}</font>"; } should work for just admins or for all staff could do $u=$ir['username']; if($ir['ul_color']) { $uname="<font color='{$ir['ul_color']}'>"; if($ir['ul_isbold']) { $uname.=""; } $uname.=$ir['username']; if($ir['ul_isbold']) { $uname.=""; } $uname.="</font>"; $u=$uname; } else if($ir['donatordays'] >0 && $ir['user_level'] ==1) { $u = "<font color=red>{$ir['username']}</font>"; } else if($ir['user_level'] >1) { $u = "<font color=red>{$ir['username']}</font>"; } im not a super coder myself but that might work let me know if it doesnt Quote
shrek1609 Posted March 20, 2008 Author Posted March 20, 2008 Re: Please help with staff names hi no it doesn't work :( my code for the admin coloured names i thought should work but doesn't and its really doing my head in... The code to change forum name to red for donators is already there so i can't understand why the code i have added doesn't work... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.