php forum
php mysql forum
php mysql smarty
 
Topic Options
#212951 - 11/15/01 06:03 AM Hack request
Gamejag Offline
Newbie

Registered: 05/25/01
Posts: 16
Has anyone set up a hack where you can show more icons next to people's names (like the Admin and Moderator icons)? If so, can you share the code? If not, can someone point me to the file that contains the code where this is assembled?<br /><br />Yeah, I'm a little too lazy to look at the code before asking []http://www.threadsdev.com/threads/php/images/icons/wink.gif[/]

Top
#212952 - 11/15/01 08:31 AM Re: Hack request [Re: gotoubb]
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
do you want to create different icons for mod and admin icons? or do you want to create more user status's, like vip or something? if you wanted to create a new user status you would need to edit three files, adduser.php, showflat/threaded.php. adduser is where the userstatus gets inserted into the db. that looks like this: if ($user['U_Status'] == "Administrator") { $UserStatus = "A"; } elseif ($user['U_Status'] == "Moderator") { $UserStatus = "M"; } you can add after that: elseif ($user['U_Status'] == "VIP") { $UserStatus = "V"; } then in showflat/threaded find: // --------------------------------------------------------- // We need to know if this was made by an admin or moderator $UserStatus = ""; if ($PostStatus == "A") { $UserStatus = "<img src=\"$config[images]/adm.gif\" alt=\"$lang[USER_ADMIN]\" border=0>"; } elseif ($PostStatus == "M") { $UserStatus = "<img src=\"$config[images]/mod.gif\" alt=\"$lang[USER_MOD]\" border=0>"; } then add: elseif ($PostStatus == "V") { $UserStatus = "<img src=\"$config[images]/vip.gif\" alt=\"V.I.P.\" border=0>"; } and create a vip image. bam.
_________________________
Extreme!!!

Top
#212953 - 11/15/01 08:57 AM Re: Hack request [Re: vent]
Gamejag Offline
Newbie

Registered: 05/25/01
Posts: 16
Thanks Poil []http://www.threadsdev.com/threads/php/images/icons/smile.gif[/]<br /><br />That was exactly what I was looking for, and to answer your question, the reason is to show a VIP status.

Top


Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks