Customizing SMF > Modifications and Packages
Ignore Boards
live627:
Link to Mod
This mod allows you to select boards to ignore. While ignoring a board it will be completely inaccessible to you.
To ignore a board go to:
Profile -> Ignore Boards Preferences
Two new permissions were created for this:
profile_ignore_board_own
profile_ignore_board_any
Which are required to change the settings. These permissions are set on a per group basis.
This mod works by modifying the $user_info['query_see_board'] to not include boards whos ID matchs one of the ignored boards.
The admin can also decide to specify that a board isn't ignorable. To do so open the edit board page and uncheck the appropriate box.
Notes:
ignoreboard_smf1-1_v1-1.zip is for SMF 1.1 Beta 2
ignoreboard_v1-1.zip is for SMF 1.0.3
dtm.exe:
Wow. Exactly what I needed. Thanks a lot :).
* OIDanTheManIO downloads mod and uploads it to forums.
-Dan The Man
dtm.exe:
Uh oh. I got an error after I clicked on the link in my profile.
--- Quote ---An Error Has Occurred!
Unable to load the 'ignoreBoards' template.
--- End quote ---
EDIT: Apparently, this mod is only compatible with the SMF Default Theme :(.
-Dan The Man
mennou:
Fatal error: Cannot redeclare template_ignoreboards() (previously declared in /usr/home/mixspot/public_html/forum/Sources/Load.php(1040) : eval()'d code:2011) in /usr/home/mixspot/public_html/forum/Sources/Load.php(1040) : eval()'d code on line 2043
Thantos:
Did you try uninstalling mennou? If so did you read my warning?
Dan does your theme have it's own Profile.template.php? If so copy and paste this to the bottom of the file:
--- Code: ---function template_ignoreBoards()
{
global $context, $scripturl, $txt;
echo '
<div style="margin-left: 15px;">
<div style="font-weight: bold;">', $txt['ignoreBoards_title'], '</div>
<form action="', $scripturl, '?action=profile2" method="post">
<table cellpadding="0" cellspacing="0" border="0">';
$alt = false;
foreach($context['categories'] as $cat)
{
echo '
<tr class="windowbg', $alt ? '2' : '', '"><td>', $cat['name'], '</td></tr>';
foreach($cat['boards'] AS $board)
{
echo '
<tr class="windowbg', $alt ? '2' : '', '"><td>';
for ($i=0; $i < $board['child_level']; $i++)
echo ' ';
echo '<input type="checkbox" value="', $board['id'], '" name="ignoreBoards[]" ', $board['check'] ? 'checked="checked"' : '', '/>', $board['name'], '</td></tr>';
}
$alt = !$alt;
}
echo '
<tr><td><table cellpadding="0" cellspacing="0" border="0">';
template_profile_save();
echo '
</table></td></tr>
</table>
</div>
';
}
--- End code ---
Just put it right before the ?>
Navigation
[0] Message Index
[#] Next page
Go to full version