Steve Shaw:
I can't find if there are setting options readily available?
They could be surely available, coded as the custom plugin — or actually additions to the current add-ons' codes.
In all cases below, look up/edit the codes in
bb_plugins.php.
***************************
***
File Bank
1. The solution below affects the File Upload button displayed in BB-buttons list above the posting form.
— Look up for the string code which says: /* if you would like to enable access to storage for registered users only, uncomment the code line below */ — it's met 2 times. Under the first string, there will be the code like //if($user_id>0){ and after the second it's followed by the closing bracket like //}
— In both cases, remove the double slash in front of the code
— In the first case, replace
if($user_id>0){
with
if($logged_admin==1 or checkModerator($mods,$user_id)){
2. The solution below affects the File Bank link displayed in the top navigation menu items for the forum.
— Look up for the string code which says: /* if you would like to display link to storage in forums menu for registered users only, uncomment the code below and alter it with the next line */ — in this code section, you will find three lines of codes commented with double slashes:
//if($user_id>0) {
...
...
...
//}
//else $storageLink='';
— Remove double slashes in front of these codes
— Replace the code which says
if($user_id>0) {
with
if($logged_admin==1 or checkModerator($mods,$user_id)){
3. The solution below affects the access to all File Bank functions, not just menus.
— Look up for the string code which says: /* if you would like to enable access to storage for registered users only, uncomment the code below, and comment the line after it */
— Below this line, you'll see the code like:
//if($action=='storage' and $user_id>0) include($pathToFiles.'addon_storage.php');
if($action=='storage') include($pathToFiles.'addon_storage.php');
Change it to:
if($action=='storage' and ($logged_admin==1 or checkModerator($mods,$user_id))) include($pathToFiles.'addon_storage.php');
For this add-on, also make sure that in addon_storage_options.php you've set this option with the value:
$anonymousAccess=FALSE;
******************************
Checker
— Locate the block of the code which starts with /* Checker top link */
— Below this comment, you'll see the code like this:
if($user_id>0 and $action!='checker'){
Change it to:
if(($logged_admin==1 or checkModerator($mods,$user_id)) and $action!='checker'){
— If you'd like to completely disable users access to the Checker, look up for this code:
if($action=='checker') include($pathToFiles.'addon_checker.php');
You have to put the condition inside of this code:
if(($logged_admin==1 or checkModerator($mods,$user_id)) and $action=='checker') include($pathToFiles.'addon_checker.php');
******************************
Polls
— Open addon_polls_options.php file for editing, and there you have to set the option like this:
$createPolls=1;
This should allow only Admin/Moderators to create Polls, and if it's set this way, regular users should not see the Polls BB-button above the posting form, nor they should be able to do via from the Polls list link. If it doesn't work that simple way, let me know.
If you'd like to remove the link to Polls from the forum navigation menu, look up for the code containing $menuPolls, it would look like:
if(!(isset($is_mobile) and $is_mobile)) $menuPolls="<a href=\"{$main_url}/{$indexphp}action=polls\" class=\"mnblnk\">{$l_plPolls}</a> {$l_sepr} ";
else $menuPolls="<option value=\"{$main_url}/{$indexphp}action=polls\">{$l_plPolls}</option>";
You have to put the conditions above and below this code, similarly to the solutions above for the other add-ons:
if($logged_admin==1 or checkModerator($mods,$user_id)){
if(!(isset($is_mobile) and $is_mobile)) $menuPolls="<a href=\"{$main_url}/{$indexphp}action=polls\" class=\"mnblnk\">{$l_plPolls}</a> {$l_sepr} ";
else $menuPolls="<option value=\"{$main_url}/{$indexphp}action=polls\">{$l_plPolls}</option>";
}