Star next to admin name profile.php

Forum
Last Post
Threads / Messages

ChibiMaestro

bruh
Premium Member
Joined
Nov 7, 2010
Messages
298
Points
0
Age
26
Location
United Kingdom
Mysidian Dollar
19,277
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...
 
PHP:
    if($usergroup == 5){ // Default banned usergroup for Mys is 5 (RA == 7)
    $userdisp = "<img src='path/to/image.ext'> ".$usersname."";
    }
    else{
    $userdisp = $usersname;
    }
 
Wait....
Where exactly does the code:
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"?
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,122
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Latest Posts

Top