Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2008
Posts: 25
newbie
newbie
Joined: Oct 2008
Posts: 25
Hi to All, my name is Darryl and I am a global moderator of the Outdoorking forum that is using UBB 7.5.5. Since installing the upgrade, I have noticed that the small 'm' flag beside each moderators' display name has disappeared, even when we've checked the 'm' box in our user profiles and expired the cookies and logged in again.
Can you please help?
Best wishes,
smile


Many thanks,
Kindest Regards,
Darryl
Joined: Jun 2006
Posts: 142
G
member
member
G Offline
Joined: Jun 2006
Posts: 142
I had the same problem. I think I removed everyone's moderator privileges and gave them back. Then it worked. And since that process was annoyingly cumbersome, I think I did most of it by db hacking.


aka Olle Johansson
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Moderators are group 3

so..

SQL Query
UPDATE ubbt_USER_PROFILE up
SET up.USER_GROUP_IMAGES='a:1:{i:1;s:1:"3";}'
WHERE up.USER_ID IN (
SELECT DISTINCT g.USER_ID
FROM ubbt_USER_GROUPS g
WHERE g.GROUP_ID=3)

would enable the image for all group 3 members..

now if you are and admin AND a moderator (some boards do that), then it would change the admins too.. but this can then be 'fixed' by just running the same query after it for group 1 (change the 3's to 1's)


Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
SD, Forcing the selection from a query is not what I think the problem is as stated.
Darryl already stated he went into his profile and selected the icon.
Unless the tables are not updating from the ubb script.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
exactly wink

it just removes 1 variable, since i don't have axx to his server..

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
OTAY!


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 319
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 319
Sirdude,

Bruce from outdoorking here (re Darryls problem)and I just ran the script and no changes to the moderator flag issue.

The problem appears to come from the 7.5.5 update after installation.

I'm unable to work out why this has happened. If you want access to the server I can arrange that just send me a PM.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
sure.. i'll PM you smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
html.inc.php was changed for some reason...

the logic in the new $html->user_status routine keys on $v==3 now.. bla bla..

it's a bug that needs fixing.. cuz putting it back to $v==2 (temporary quicky) 'fixes' your site..

i have my moderator image turned on here and it isn't displayed in the GROUP_IMAGES slot in showflat either..

i can re-look @ the actual routine to discern the $modcheck versus $gimages versus whatever is going on, but it is a bug in stock from my 1st blush..

basically:

PHP Code
if ($v == 3 && !strstr($modcheck,",{$uid},")) continue; 

that logic decides to NOT grab a particular image for group 3 (moderators) it gets it right for admins and non mods

my guess is that it was to not have dup moderator/global mod images displayed, but that's a guess for now..

i'm stressed for time, so can't elaborate further.. smile


Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Will need to look at this. Basically, what that line is for is that it's supposed to display the moderator image in forums that the moderator actually moderates. If they aren't in the list of moderators for that forum, then it's not supposed to display.

Joined: Jun 2006
Posts: 319
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 319
Sirdude,

Thanks again for fixing the problem with our board. I really appreciate your help and the speed that you fix problems for me is fantastic.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 686 guests, and 131 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)