PDA

View Full Version : How To Make Single Column Subforums, List Under Sub-Forum: Forum Display



Jose Amaral Rego
Thu 29th Sep '05, 7:10pm
How To Make Single Column Subforums, List Under Sub-Forum: Phrase


The following will work for ForumDisplay page


The out come of this will make it look like the image #2 in attachments

Goto AdminCP -> vBulletin Options -> Forum Listings Display Options
Edit to the following numbers in box provided to the right
A. Depth of Forums - Forum Home ---3 This should be set at value [ 3 ] so that sub-forum will be viewed under ForumDisplay page, decreasing value will place it in Forumhome index and decreasing it further will result in displaying in Main Catagory Strip instead Forumdisplay page.
B. Depth of Forums - Forum Display ---1
C. Depth of Sub-Forums --------------1 The Depth Of the Sub-Forums should be set at value [ 1 ] to keep child forums seperate from the list of parent sub-forums. Increasing this value to greater than [ 1 ] will show child forums, child's child forums to parent forums, for each value above [ 1 ] on Forumdisplay page.
Goto AdminCP ->Styles & Templates -> Style Manager -> Expand «» Forum Home Templates -> forumhome_subforumseparator_nopost & forumhome_subforumseparator_post

You will find the following in the template--> [ , ] <--without the brackets around it.

Comment out the comma and add break line Tag:

,
and replace it with:

<!-- , --><br />Next you can either in step [ A ] remove the phrase Sub-Forums: or in step [ B ] place a space by using a break after the phrase Sub-Forums: .


To make subforums list in under phrase ' Sub-Forum: ' in a single column


The #2 image in attachments in the end result of edits.




Goto AdminCP -> Styles & Templates -> Style Manager -> Expand «» Forum Home Templates -> forumhome_forumbit_level1_post & forumhome_forumbit_level2_post


The changes to forumhome_forumbit_level1_post also apply to forumhome_forumbit_level2_post
Find:

<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
Add after blue highlighted code this code highlighted in green:

<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>:<br /> $forum[subforums]</div></if>
The finish code will look like this:

<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>:<br /> $forum[subforums]</div></if>





To Comment Out phrase ' Sub-Forums: ' from single column



The #3 image in attachments is the end result.







Follow steps from 1 to 3 from above, then go on to next step here.

Goto AdminCP -> Styles & Templates -> Style Manager -> Expand «» Forum Home Templates -> forumhome_forumbit_level1_post & forumhome_forumbit_level2_post

The changes to forumhome_forumbit_level1_post also apply to forumhome_forumbit_level2_post
Find:


<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

Edit the following code highlighted in blue by commenting out:


<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

Add code in green before and after to blue code:


<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><!-- <strong>$vbphrase[subforums]</strong>: --> $forum[subforums]</div></if>



Default (http://Default) Look
Image #1

Single Column
Image #2

Sub-Forums: phrase removed
Image #3

Thanks to the following ppl for help guilding me in this tutorial.
sensimilla (http://www.vbulletin.com/forum/member.php?u=55651) for telling me of a simular way
cscgal (http://www.daniweb.com/techtalkforums/member.php?u=1) @ http://www.daniweb.com/ for showing me to make a subforum list