vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Collapsable Objects? (https://vborg.vbsupport.ru/showthread.php?t=116346)

Pickalo 05-22-2006 03:07 AM

Collapsable Objects?
 
How can I set for then to start off collapsed or start off expanded? Here is a sample of what I am working with:

PHP Code:

<table class="tborder" cellpadding="2" cellspacing="1" border="0" width="150" align="center">
<
thead>
<
tr>
<
td class="tcat">
<
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('store_table_$post[postid]')"><img id="collapseimg_store_table_$post[postid]src="$stylevar[imgdir_button]/collapse_tcat{$GLOBALS['vbcollapse']['collapseimg_store_table_' $post[postid]]}.gif" alt="" border="0" /></a>
<
div class="smallfont">Store</div>
</
td>
</
tr>
</
thead>
<
tbody id="collapseobj_store_table_$post[postid]style="display: none;">
<
tr>
<
td class="alt1">
<
div class="smallfont">
<if 
condition="$vboptions['vbbux_enabled']">
$vbphrase[vbbux_points]: $post[points]<br />
$vbphrase[vbbux_bank]: $post[bank]<br />
<
phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]<br />
<
a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
</
div>
</
td>
</
tr>
</
tbody>
</
table

Thanks in advance.

Logikos 05-22-2006 03:43 AM

This post should help you out. :)

Pickalo 05-23-2006 05:44 PM

Ahh perfect thanks :)

edit: for anyone interested, all I had to do was replace the
PHP Code:

style="display: none;" 

with
PHP Code:

style="$collapseobj_groupid

in
PHP Code:

<tbody id="collapseobj_store_table_$post[postid]style="display: none;"



All times are GMT. The time now is 02:53 PM.

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.01022 seconds
  • Memory Usage 1,733KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete