vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Forumhome category collapse (https://vborg.vbsupport.ru/showthread.php?t=206376)

TimberFloorAu 02-23-2009 08:53 PM

Forumhome category collapse
 
1 Attachment(s)
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 )

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']">&nbsp; &nbsp;
                        <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 [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.

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

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">&nbsp;</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">&nbsp;</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 [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 ?

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


All times are GMT. The time now is 05:24 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01066 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete