SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
SEO-Board Forum Software Community / General / Bug Reports / Moderator Assignment Issue
Posted:  28 Mar 2005 14:52   Last Edited By: Visitor
H,

seems like I have something to report

The following line in the config file should make moderator "Support" a moderator in forum 2. Actually it does - but for some reason it shows the member rank Moderator for a few other users too (who are not moderator at all)

My moderator config:

Code:

$moderators = array(2 => 'Support';


Maybe something to look into

Edit: Maybe you should also disable smilies in code areas lol
Posted:  28 Mar 2005 15:39
Actually that's not the way to define moderators. Moderators are on a forumIDs basis. The correct syntax is:
Code:

array(forumID1 => array(moderatorID => 'ModeratorName', moderatorID2 => 'ModeratorName2')..);


So, if you want to make user 'Support' with userID 2 a moderator for forumID 3 then you put this code:
Code:

array(3=>array(2 => 'Support'));


If you need to make user 'Support' a mod for forums 1, 3 and 7 then you put:
Code:

=array(1=>array(2 => 'Support'), 3=>array(2=>'Support'), 7=>array(2=>'Support'));


It is a bit tedious to define mods for every forumID but it's more powerful and saves db queries.
Posted:  28 Mar 2005 18:13
Okies I'll give that a try Maybe I should read the documentation twice next time. Thanks for your fast reply.
Posted:  28 Mar 2005 18:22
Let me know if you need help. Be careful not to make everyone a mod
Posted:  29 Mar 2005 12:03
that is seriously wierd way to do it i dont understand that at all and your explanation was a bit hard to follow too...will be much better when db controlled
Posted:  26 Sep 2006 03:43
I understand the line fully (multidimensional associative arrays) and the reasoning behind not implementing it as a db thing, though I do agree it's quite tedious.

I'm not here to beef though. I'm here because it doesn't seem to be working. I've created a user acct for myself with ID 1, a forum with ID 1, and tried associating my username with it via:

$moderators = array(1 => array(1 => 'thynctank'));

And I don't appear as a moderator.

Any ideas?

-tank.
Posted:  26 Sep 2006 04:04
Answered myself yet again. I had it in mind that the "forumID" was the ID of the top-level forum, rather than the sub-forums. Now I understand. Thanks!

-tank.
Posted:  09 Jan 2012 15:47
I have a similiar issue with the moderator line.

Could you tell me how to write it so that 4 different users are moderators of 4 different forums at the same time?
Posted:  09 Jan 2012 15:56
One more question that would make it easier possibly. Is there a setting to make these guys moderators of the entire message board all at once.
Posted:  09 Jan 2012 20:20
It will be easier in v2. All will be done in the admin panel.

4 different person moderators for 4 different forums, meaning all 4 moderate the 4 forums, or each of 4 forums has a single distinct moderator?
Posted:  12 Jan 2012 16:57   Last Edited By: Tim1
Well I would be happy if all 4 could be moderators of the entire board. The main thing is I need them to have the edit link available for them at all times.

When is v2 coming out?
Posted:  12 Jan 2012 18:16
Let me know their user_ids and I will give you a new version of is_user_moderator(). Then overwrite the one in /code/functions.php and you'd be fine.

The new version is going to be ready to run this month, but I am not sure I am going to release it that quickly. It will first run on a few sites to weed out the bugs and then I will need to write the upgrade script and the upgrade instructions.
Posted:  12 Jan 2012 18:33   Last Edited By: Tim1
Is this all you need just the names?

jerod26,  Rick Jones,  new midnight avenger, and wayne clayton
Posted:  12 Jan 2012 18:44
No, I need their IDs (the numbers that appear in the URL of their member profiles)
Posted:  12 Jan 2012 19:19
Sorry about that.

That would be

663  jerod26

540 Rick Jones

455 new midnight avenger

583 wayne clayton

Thanks for the help.
Posted:  12 Jan 2012 19:32
In code/functions.php find the function is_user_moderator and replace it with this code:
Code:


function is_user_moderator($forum_id, $user_id)
{
  if ($user_id == 663 || $user_id == 540 || $user_id == 455 || $user_id == 583)
    return 1;
  else
    return 0;
}

Note: this hack will not show the moderators below each forum (if you have set the forum to show moderators).
Posted:  12 Jan 2012 20:50
Thanks a bunch. I've used your script for years on my sites. I'm really curious what changes your next version will have.