Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2009, 08:53 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Attached Images
File Type: gif collapse_on_forum_home.gif (4.2 KB, 0 views)
Reply With Quote
  #2  
Old 02-24-2009, 04:20 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 02-24-2009, 04:56 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 02-24-2009, 05:08 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please post your forumhome_forumbit_level1_nopost template.
Reply With Quote
  #5  
Old 02-24-2009, 05:12 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 02-24-2009, 05:14 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That already has the collapse button code in it.
Reply With Quote
  #7  
Old 02-24-2009, 05:15 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #8  
Old 02-24-2009, 09:43 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Run your site through the W3C validator, that will point out if there are any mismatched tags.
Reply With Quote
  #9  
Old 02-24-2009, 06:36 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okey Dokey
Reply With Quote
  #10  
Old 02-25-2009, 01:43 AM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05331 seconds
  • Memory Usage 2,277KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete