Previous Thread
Next Thread
Print Thread
Rate Thread
#283089 01/15/2005 2:13 PM
Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
One of my Moderators pointed out to me that the mod icon []http://www.the-highway.com/forum/images/mod.gif[/] is no longer being displayed by their usernames. However, the admin.gif []http://www.the-highway.com/forum/images/adm.gif[/] is displayed for Administrators. The actual mod.gif is in the /forum/images directory as it should be.

Can someone tell me what file(s) I should look at which controls the display of this icon? I suspect that some hack I installed failed to include whatever was there originally.

Thanks,

Jeff


Artificial Intelligence is no match for natural stupidity!
Sponsored Links
Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
I think it is in showflat.php, have a quick look in there

Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
The only thing that showed up with a search for "mod.gif" is this section (same for showthreaded.php as well):

Code
// We need to know if this was made by an admin or moderator <br />         $postrow[$i]['UserStatus'] = ""; <br />         if ($PostStatus == "Administrator") { <br />            $postrow[$i]['UserStatus'] = "<img src=\"{$config['images']}/adm.gif\" alt=\"{$ubbt_lang['USER_ADMIN']}\" border=\"0\" />"; <br />         } <br />         elseif ( ($PostStatus == "Moderator") && (stristr($modcheck,",$usernum,")) ) { <br />            $postrow[$i]['UserStatus'] = "<img src=\"{$config['images']}/mod.gif\" alt=\"{$ubbt_lang['USER_MOD']}\" border=\"0\" />"; <br />         }


Of course, I have no idea if there is something wrong with this section of code or not. []http://www.the-highway.com/Smileys/giggle.gif[/]


Artificial Intelligence is no match for natural stupidity!
Joined: Aug 2004
Posts: 173
Member
Member
Offline
Joined: Aug 2004
Posts: 173
Well this is what it says in my showflat

Code
 		// We need to know if this was made by an admin or moderator <br />		$postrow[$i]['UserStatus'] = ""; <br />		if ($PostStatus == "Administrator") { <br />			$postrow[$i]['UserStatus'] = "<img src=\"{$config['images']}/adm.gif\" alt=\"{$ubbt_lang['USER_ADMIN']}\" border=\"0\" />"; <br />		} <br />		elseif ( ($PostStatus == "Moderator") && (stristr($modcheck,",$usernum,")) ) { <br />			$postrow[$i]['UserStatus'] = "<img src=\"{$config['images']}/mod.gif\" alt=\"{$ubbt_lang['USER_MOD']}\" border=\"0\" />"; <br />		} 


Looks the same to me.

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
He is mod but maybe he look at posts in a group where he isnt a mod. In this groups his 'M' is supressed. If he post in his mod group witch he moderate he see a 'M'.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)