View Full Version : Star next to admin name profile.php
ChibiMaestro
03-20-2011, 10:57 AM
Okay, you know that if a user is an Administrator, an image of a star would appear next to their username on the profile.php and profile.php?user=XXX?
I have been trying to do something extremely similar >.>, but failed... so how would you do that with a different icon for banned members?
I have no knowledge of PHP, but I can modify stuff, and I have tried to do so...
fadillzzz
03-20-2011, 11:59 AM
if($usergroup == 5){ // Default banned usergroup for Mys is 5 (RA == 7)
$userdisp = "<img src='path/to/image.ext'> ".$usersname."";
}
else{
$userdisp = $usersname;
}
RoconzaArt
03-20-2011, 12:09 PM
Could this be used on other users groups too?
fadillzzz
03-20-2011, 12:13 PM
Could this be used on other users groups too?
Yes, just change the number from that code to the usergroup's number you desired.
ChibiMaestro
03-20-2011, 01:01 PM
Whut? o-o PHP Geniuses saves the day xD
Thank you Fadill :3
ChibiMaestro
03-21-2011, 02:56 PM
Wait....
Where exactly does the code:
if($usergroup == 5){ // Default banned usergroup for Mys is 5 (RA == 7)
$userdisp = "<img src='path/to/image.ext'> ".$usersname."";
}
else{
$userdisp = $usersname;
}
go? o-o I believe this is the code is to show the icon next to the user on the profile.php?user=XXX page?
And what would the code for it to show on the profile.php page? And where would it go? o-o... Sorry for all these questions. And I do believe I posted in the wrong section, does this thread need to be moved to "Questions and Supports"?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.