TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 547
  • Total: 547

Add a group to this code

Started by RebelRose, September 13, 2006, 11:55:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jacortina

The 'switches' seem fine for a grouped list (separate sections) which includes checks for matching on both primary and additional membergroups.

I see the groups that I left in the script. Not sure right now why those extra groups would cause a repeat on the moderator, though.

Are you looking to list Admin(s) and Moderator(s)?
Each in their own section, right?
$groups_list = array(1);

How about Global Moderators?
$groups_list = array(1, 2);

(In both cases, board moderators are pulled in by the: $include_moderators = true;)

Lesmond

if I set $include_moderators = true; this is what it looks like for moderators, all the rest are ok

jacortina

Arrrrghhh!

Does this member, by any chance, moderate 13 boards?

Let me look into it.

Lesmond

yes I see what it is now, not that I could fix it :)

Thanks Les

G6Cad

I know now how you look like Lesmond :)
Just saw your gallery on your site, love the enviroment there, great pictures, and very nice to see how you look like, it's fun to have a face to put with all the words :)

jacortina

OK. Fixed (hopefully) code put in place in original message:
http://www.tinyportal.net/smf/index.php?topic=8555.msg79951#msg79951

(remember to check/fix the group list for your needs)

Lesmond

Thank you very much jacortina that done the trick :) sorry to have put you to all this trouble.

Quote from: G6 on October 14, 2006, 10:15:56 PM
I know now how you look like Lesmond :)
Just saw your gallery on your site, love the enviroment there, great pictures, and very nice to see how you look like, it's fun to have a face to put with all the words :)

Hope I didn't scare you too much G6 :)  you are more than welcome any time

jacortina

Quote from: Lesmond on October 14, 2006, 10:43:26 PM
Thank you very much jacortina that done the trick :) sorry to have put you to all this trouble.

Not at all. The original code was incorrect. If you hadn't caught it, someone else would.

Joachim

@ jacortina - one notice

In my case i have only admin and one global mod. Your changed code works only if minimum 1 moderator is defined, otherwise it shows only the "intro text".

Joachim

jacortina

Quote from: Joachim on October 15, 2006, 08:17:12 AM
@ jacortina - one notice

In my case i have only admin and one global mod. Your changed code works only if minimum 1 moderator is defined, otherwise it shows only the "intro text".

Joachim

Just put in fix for what appears to be a MySQL versioning issue.

Code working fine on my site mirror on my PC wasn't even working on my own live site. ;)

Changing from the implied JOIN type to explicit for the moderator's table appears to have fixed it. Have changed the code in the message:

http://www.tinyportal.net/smf/index.php?topic=8555.msg79951#msg79951

Try it (change groups/switches/title) and see if that straightens it out.

This website is proudly hosted on Crocweb Cloud Website Hosting.