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.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
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
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
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.