I changed the FB moderator way of life
In standard FB, you have first to fill up a list of moderators and then pick in each moderator you want for each individual forum
With the hack provided, there's now 2 classes of moderators: forum moderators and global moderators. The privileges of these 2 classes of moderator are easy to understand: forum moderators are the FB standard moderator and the global moderators can act on any forum like admins (the usual way of other forum systems e.g. phpB

.
Both classes are more than easy to set:- Forum moderators are assigned to forum(s) as usual excepted that you're not anymore restricted to the moderator list (the source list includes every users)
- Global moderators are simply the members of the moderator list
The hack
There's 3 files to touch:- com_fireboard/sources/fb_permissions.php
- com_fireboard/template/default/plugin/fbprofile/fbprofile.php *
- com_fireboard/template/default/view.php *
File "fb_permissions.php" line #61, replace:[code:1]function fb_has_moderator_permission(&$database,&$obj_fb_cat,$int_fb_uid,$bool_fb_isadmin) {
if ($bool_fb_isadmin)
return 1;
[/code:1]by:[code:1]function fb_has_moderator_permission(&$database,&$obj_fb_cat,$int_fb_uid,$bool_fb_isadmin) {
if ($bool_fb_isadmin)
return 1;
$database->setQuery("SELECT moderator FROM #__fb_users WHERE userid=$int_fb_uid "«»); // #HACK 'SuperModerators' by phKU
if ($database->loadResult()) { // #HACK 'SuperModerators' by phKU
return 1; // #HACK 'SuperModerators' by phKU
} // #HACK 'SuperModerators' by phKU
[/code:1]
File "fbprofile.php", line #110 replace:[code:1] //user type determination
$ugid = $userinfo->gid;
$uIsMod = 0;
$uIsAdm = 0;
[/code:1]by:[code:1] //user type determination
$ugid = $userinfo->gid;
$uIsMod = 0;
$uIsAdm = 0;
$database->setQuery("SELECT userid FROM #__fb_users WHERE moderator=1"«»); // #HACK 'SuperModerators' by phKU (adds evey fb moderators)
$catModerators = $database->loadResultArray(); // #HACK 'SuperModerators' by phKU
$uIsMod = in_array($userid, $catModerators); // #HACK 'SuperModerators' by phKU[/code:1]
File "view.php", line #39 replace:[code:1] $database->setQuery("SELECT userid FROM #__fb_moderation WHERE catid='$catid' and userid='$my->id'"«»);[/code:1]by:[code:1] $database->setQuery("SELECT moderator FROM #__fb_users WHERE userid=$my_id "«»); #HACK 'SuperModerators' by phKU[/code:1]
* [img]http://www.bestofjoomla.com/components/com_fireboard/template/dorona_brown/images/english/emoticons/exclam.gif[/img] each time a template file is referred, be aware that if a same named file exists in the template you've selected, it will override the same file in default template. If it's the case, it will be up to you to find the corresponding line of code to change.
[img]http://www.bestofjoomla.com/components/com_fireboard/template/dorona_brown/images/english/emoticons/exclam.gif[/img] As usual with hacks, ensure you've a backup copy of the modified files. Test at your own risk. Anyway with a backup copy, there's not much to lose. The hacks I provide are not thoroughly tested on different configurations but they run smooth on mine. Another point of importance, keep track of the modified files if you want to be able to copy the hacks to a next FB release.
[img]http://www.bestofjoomla.com/components/com_fireboard/template/dorona_brown/images/english/emoticons/arrow.gif[/img] Alternately, I will soon upload in a new thread the couple of files modified by this hack and a few other hacks with a list of mods/adds in concern. It would be certainly more convenient to download them if you would like to adopt more than one hack.
Cheers :)