The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Forumhome category collapse
Have asked this on 2 occasions, and not got an answer, have searched but cannot find an answer, so can someone please tell me how to enable this.
Collapse on forumhome. > on rhs of each forum category. Must be dead simple to enable, just cant seem to see where |
#2
|
||||
|
||||
If you have separated the categories using a modification - it is entirely dependant on that modification to add the code necessary for this. However, if you made the manual template edits, the code needed is fairly straightforward. You can find it on every collapse button. It is pretty much exactly the same (you just need to change the ID).
|
#3
|
||||
|
||||
The image included is of VB.org. Not my forum.
Our forum, uses a custom template, and within the forum code, Its kind of bewildering actually, as it seems to be a generic function of vb, but I have noticed, even our default template doesnt display the collapse button in the last column on rhs of each forum. If that makes sense. code lifted from ( forumhome ) Code:
<!-- main --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> $forumbits <tbody> <tr> <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong> <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a> <if condition="$vboptions['forumleaders']"> <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if> </strong></div></td> </tr> </tbody> </table> $forumhome_markread_script <!-- /main --> Perhaps I am barking up the wrong tree. Ste --------------- Added [DATE]1235458776[/DATE] at [TIME]1235458776[/TIME] --------------- **** TO ADD **** What I am trying to achieve is similar to this site, http://forums.allurehost.com/ Look at the collapse expand button to the right of each forum category. |
#4
|
||||
|
||||
Please post your forumhome_forumbit_level1_nopost template.
|
#5
|
||||
|
||||
Okies. Thankyou Sir
Code:
<if condition="$forum[forumid] != 1"> </table> <br /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> </if> <tbody> <tr> <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>"> <if condition="$childforumbits"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a> </if> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a> <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if> </td> </tr> </tbody> <tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"> <if condition="$vboptions['showmoderatorcolumn']"> <tr align="center"> <td width="5%" class="thead"> </td> <td width="40%" class="thead" align="$stylevar[left]">$vbphrase[forum]</td> <td width="25%" class="thead">$vbphrase[last_post]</td> <td width="10%" class="thead">$vbphrase[threads]</td> <td width="10%" class="thead">$vbphrase[posts]</td> <td width="10%" class="thead">$vbphrase[moderator]</td> </tr> $childforumbits </tbody> <else /> <tr align="center"> <td width="5%" class="thead"> </td> <td width="50%" class="thead" align="$stylevar[left]">$vbphrase[forum]</td> <td width="25%" class="thead">$vbphrase[last_post]</td> <td width="10%" class="thead">$vbphrase[threads]</td> <td width="10%" class="thead">$vbphrase[posts]</td> </tr> $childforumbits </tbody> </if> |
#6
|
||||
|
||||
That already has the collapse button code in it.
|
#7
|
||||
|
||||
Yep I know lol. Thats why I cant figure it out lol
--------------- Added [DATE]1235459786[/DATE] at [TIME]1235459786[/TIME] --------------- My only thought is that somehow, because moderator column isnt activated, then it isnt parsing the next field... im really not sure --------------- Added [DATE]1235461657[/DATE] at [TIME]1235461657[/TIME] --------------- Could it be a closing table tag ? |
#8
|
||||
|
||||
Run your site through the W3C validator, that will point out if there are any mismatched tags.
|
#9
|
||||
|
||||
Okey Dokey
|
#10
|
|||
|
|||
i am sorry but i must be dumb founded . i was looking to see what forum you was talking about needing the collapse ..but you do have the code there as mentioned ..so i was trying to find the forum where it was to take a look to see what was missing ..usually if it is there and not working i usually find an extra TD tag ... but without seeing forum i cant say for sure
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|