View Full Version : Forumhome category collapse
TimberFloorAu
02-23-2009, 08:53 PM
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
Dismounted
02-24-2009, 04:20 AM
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).
TimberFloorAu
02-24-2009, 04:56 AM
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 )
<!-- 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 -->
I am presuming, we need a tcat collapse within this code, or perhaps my forumbits is screwed, and i cant seem to find where that would be stored..
Perhaps I am barking up the wrong tree.
Ste
--------------- Added 1235458776 at 1235458776 ---------------
**** 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.
Dismounted
02-24-2009, 05:08 AM
Please post your forumhome_forumbit_level1_nopost template.
TimberFloorAu
02-24-2009, 05:12 AM
Okies. Thankyou Sir
<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>
Dismounted
02-24-2009, 05:14 AM
That already has the collapse button code in it.
TimberFloorAu
02-24-2009, 05:15 AM
Yep I know lol. Thats why I cant figure it out lol
--------------- Added 1235459786 at 1235459786 ---------------
My only thought is that somehow, because moderator column isnt activated, then it isnt parsing the next field... im really not sure
--------------- Added 1235461657 at 1235461657 ---------------
Could it be a closing table tag ?
Dismounted
02-24-2009, 09:43 AM
Run your site through the W3C validator, that will point out if there are any mismatched tags.
TimberFloorAu
02-24-2009, 06:36 PM
Okey Dokey
mmoore5553
02-25-2009, 01:43 AM
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
TimberFloorAu
02-25-2009, 02:15 AM
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
yobromofo.com/forum
Lynne
02-25-2009, 02:45 AM
It isn't showing up because you aren't even using the forumhome_forumbit_level1_nopost template. You don't have the whole column heading that says Forum, Last Post, Threads, and Posts. That whole row is gone - and thus the little collapse button isn't there.
TimberFloorAu
02-25-2009, 03:09 AM
Well.. who stole that ! then lol
How the blinking heck did I manage to cock that up, and any suggestions on a fix please?
Lynne
02-25-2009, 03:11 AM
Was it ever there? It looks like a custom style and maybe they deliberately didn't add that row.
TimberFloorAu
02-25-2009, 03:12 AM
Was it ever there? It looks like a custom style and maybe they deliberately didn't add that row.
Yeah it was originally there, it is a cutoms style, and then re-customized by me lol.
Which is obviously where I have cocked it up :(
Dismounted
02-25-2009, 05:43 AM
A modification might be screwing with it. Try disabling them.
TimberFloorAu
02-25-2009, 06:34 AM
A modification might be screwing with it. Try disabling them.
Will do mate, I reckon its the forum and subforum mod I have !
Will give it a whirl :)
mmoore5553
02-25-2009, 10:57 AM
okay yeah you are missing alot of stuff on your forum home ...i do alot of custom work on templates. I am more than willing to help but what can save you alot of time if you just upload your style again but there is a section for title. Changet it to test and athen just do a compare of both templates ..there are tons of programs used ....axis merge
then it should give your code back.
TimberFloorAu
03-02-2009, 02:20 AM
Cheers mate will try axis merge ( never heard of it before )
mmoore5553
03-02-2009, 10:21 AM
<a href="https://www.araxis.com/merge/?gclid=CPSBmqmdhJkCFQq3sgodKxt0lg" target="_blank">http://www.araxis.com/merge/?gclid=C...FQq3sgodKxt0lg</a>
sorry
araxis merge ..sorry was on other computer and tried to remember the program
Dismounted
03-03-2009, 04:51 AM
Any comparison and merge application will do... There are free (and open-source) alternatives.
mmoore5553
03-03-2009, 04:53 AM
dismount may i ask the free ones that you prefer ? i have dont know of any that are good to use and can merge code ?
Dismounted
03-03-2009, 04:56 AM
I was originally going to say TortoiseMarge (part of TortoiseSVN - great SVN utility), but I found this neat page: http://en.wikipedia.org/wiki/Comparison_of_file_comparison_tools
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.