Announcement

Collapse
No announcement yet.

How do I hide the thread display of a forum?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I hide the thread display of a forum?

    Ok, here's the problem:
    I have a forum with subforums (act as forum=>yes) and I do not wish to convert it to a category (act as forum=>no) because the category thing looks ugly.

    On WHT (http://www.webhostingtalk.com/forumd...?s=&forumid=45) and Eden II forums (http://forums.edenii.com/forumdisplay.php?forumid=144), they both have it setup so that the forum (not a category) cannot be posted into and the "Threads in Forum" panel and the "Display Options" panel doesn't show up. How would I come about doing that? I'm on 3.0.3 and regardless of what I do, I can't seem to do that.

    Any help would be greatly appreciated; thanks!
    Andy Huang
    Best Regards,
    Andy Huang

  • #2
    The easiest way to correct that is probably to edit the template that controls level2 categories. We are talking about a level2 category, right?

    Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level2_nopost

    Use this code in that template. This code is from the forumhome_forumbit_level2_post template:

    Code:
    <tr align="center">
    	<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
    	<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
    		<div>
    			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
    			<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
    		</div>
    		<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
    		<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
    		<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
    	</td>
    	<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
    	<td class="alt1">$forum[threadcount]</td>
    	<td class="alt2">$forum[replycount]</td>
    	<if condition="$vboptions['showmoderatorcolumn']">
    	<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
    	</if>
    </tr>
    $childforumbits
    Now the category will look like a regular forum in the forum listing.

    Comment


    • #3
      Great. That worked perfectly just as I wantted

      Thank you very much!
      Best Regards,
      Andy Huang

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X