Re: Interesting public/private forum visibility bug (or feature?)
Posted by
Pedro on
URL: https://support.nabble.com/Interesting-public-private-forum-visibility-bug-or-feature-tp7590725p7590738.html
Greg, your "root" forum is
mixed. I think I fixed that problem on yours, didn't I?
I've just look your source code in order to remember what I have done.
Marc, Please, try this:
Edit your
category_table macro. Replace this code:
<n.loop.>
<n.current_node.>
<tr class="main-row [n.category_row_classes/]" node="[n.id/]">
<n.columns/>
</tr>
</n.current_node.>
</n.loop.>
with this one:
<n.loop.>
<n.comment.>
Here, the current node inside the loop is checked if it can be viewed by the visitor.
If not, we check if there is a next node at the loop and jump to that. I there is no next node, the loop stops
</n.comment.>
<n.if.not.current_node.can_be_viewed_by_visitor>
<then><n.if.next_node><else><n.break/></else></n.if.next_node></then>
</n.if.not.current_node.can_be_viewed_by_visitor>
<tr class="[n.even_row_background/] main-row">
<n.columns/>
</tr>
<n.if.next_node>
<then>
<n.if.not.current_node.can_be_viewed_by_visitor>
<then><n.if.next_node><else><n.break/></else></n.if.next_node></then>
</n.if.not.current_node.can_be_viewed_by_visitor>
<tr class="[n.odd_row_background/] main-row">
<n.columns/>
</tr>
</then>
</n.if.next_node>
</n.loop.>