vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Building Collapsing Tables? (https://vborg.vbsupport.ru/showthread.php?t=59751)

bgtking 01-05-2004 07:53 PM

Building Collapsing Tables?
 
I ahve been trying to create a collapsing table for my forum by modifying some of the code already with vBulletin. The table will collapse, but it wil not stay. I know it has something to do with the names of what you want to collapse, but I do not know how to change it. Does anyone know how I could create a collapsing table to work on my forum home page?

JoergZ 01-05-2004 08:06 PM

Here an example. Try to use it or parts of it...

Note: If you replace the xxxxx in my example, always use the same for xxxxx


J?rg


PHP Code:

<table width="395" class="tborder" border="0" cellspacing="$stylevar[cellspacing]cellpadding="4" align="center"><col width="25%"><col width="25%"><col width="25%"><col width="25%">
<
tbody>
 <
tr>
 
  <
td colspan="4" class="tcat">
   <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('xxxxx')"><img id="collapseimg_xxxxx" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_xxxxx].gif" alt="" border="0" /></a>
   
$vbphrase[your_text_in_table_header]
  </
td>
 </
tr>
</
tbody>
<
tbody id="collapseobj_xxxxx" style="$vbcollapse[collapseobj_xxxxxx]">
 <
tr>
   .... 
your table content here ......
 </
tr>
</
tbody


NTLDR 01-05-2004 08:35 PM

Also note that xxxxx should be unique for each collasping table.

bgtking 01-05-2004 08:50 PM

Okay, thanks. It works.


All times are GMT. The time now is 01:50 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.01070 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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