Customizing SMF > Modifications and Packages

View Only Boards

<< < (118/126) > >>

edchapman:
Mod installed fine but guest can still inter the boards.

I checked "Allow guests to browse the forum"  and "Show the message index for "view only" boards."

mashby:

--- Quote from: Tonyvic on November 03, 2011, 01:06:22 AM ---Hi guys,
This mod works great for me with smf 2.0.1 with the default 'Curve' theme, but I am getting lot's of xhtml validation errors.
It looks as if I get two errors for each protected board:
an attribute specification must start with a name or name token

--- Code: ---<tr id="board_15" class="windowbg2 vob_protected"">
--- End code ---
(vob_protected"">)
and
character data is not allowed here

--- Code: ---<tr id="board_15" class="windowbg2 vob_protected"">
--- End code ---
(vob_protected"">)

Any help would be appreciated.

Tony

--- End quote ---
The mod changes part of BoardIndex.template.php:
Find:

--- Code: ---foreach ($category['boards'] as $board)
{
echo '
<tr id="board_', $board['id'], '" class="windowbg2">
--- End code ---
Replace with:

--- Code: ---foreach ($category['boards'] as $board)
{
echo '
<tr id="board_', $board['id'], '" class="windowbg2' , ($board['protected'] ? ' vob_protected"' : '') , '">
--- End code ---
The replace with should be:

--- Code: ---foreach ($category['boards'] as $board)
{
echo '
<tr id="board_', $board['id'], '" class="windowbg2' , ($board['protected'] ? ' vob_protected' : '') , '">
--- End code ---
:)

sharks:
Please fix this mod for SMF 1.1.16
I get this error when installing in package manager:
   ./Themes/default/BoardIndex.template.php    Test failed

simon36:
Any update on this? It would be a great mod if it was working and would bring SMF up to date with likes of ipb, who can show a board but restrict access.

Old Fossil:

--- Quote from: sharks on January 18, 2012, 02:35:32 PM ---Please fix this mod for SMF 1.1.16
I get this error when installing in package manager:
   ./Themes/default/BoardIndex.template.php    Test failed

--- End quote ---

Have you looked at the required edits using the mods parser?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version