PDA

View Full Version : Forum Display Enhancements - Remove empty category thread from forumdisplay when forum is closed


d19rnyxx
02-25-2012, 11:00 PM
This is a very simple template modification by EliteMossy

This is the forumdisplay before the change:

http://www.screensnapz.com/mossy/19dccbe5c8.png

this is After

http://www.screensnapz.com/mossy/29473470bb.png

Notice, this is not recommended if you CLOSE forums with threads already in them. This is only if you use CLOSED forums as a way to organise your forum layout. If you do want to stop users posting and want this mod, then use forum permissions to stop people posting.

This modification edits the template:

FORUMDISPLAY

STEP 1:

FIND:
{vb:raw template_hook.forumdisplay_below_subforums}
</vb:if>

<vb:if condition="$show['threadslist']">

and Add:
<vb:if condition="$foruminfo['allowposting']">
below the </vb:if>

So it looks like this:
{vb:raw template_hook.forumdisplay_below_subforums}
</vb:if>
<vb:if condition="$foruminfo['allowposting']">
<vb:if condition="$show['threadslist']">

STEP 2:

FIND:
</div>
{vb:raw template_hook.forumdisplay_below_threadlist}

</vb:if>}

and Add
</vb:if>
below </vb:if>

So it looks like this:

</div>
{vb:raw template_hook.forumdisplay_below_threadlist}
</vb:if>
</vb:if>


Job done, Any problems, post here!

d19rnyxx
02-26-2012, 07:49 PM
Fixed the guest issue in Step 1, don't know why $member was there!