vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I... (https://vborg.vbsupport.ru/showthread.php?t=112515)

Motoman 04-09-2006 03:57 AM

How can I...
 
1 Attachment(s)
How can I add the colapse and expand options to a table? I'm trying to clean up my footer area by placing "Important" links into the user cp. I on't know much php I only know what I've learned from using and installing hacks on this site. I've atacthed a srcreenshot of what I've done so far. Hopefuly I've been clear on what I need help with.

PHP Code:

<!-- ###### start zach's navbar_saver ####### -->
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
<
td class="tcat" border="0" width="100%" align="left">$vbphrase[zachs_navbar_saver]
</
td>
</
tr>

<
tr>
<
td class="alt1"><span class="smallfont"><a href="faq.php$session[sessionurl_q]">FAQ</a><br>-Click to search our frequently asked questions archives</br></span></td>
</
tr>

<
tr>
<
td class="alt2"><span class="smallfont"><a href="search.php?$session[sessionurl_q]do=getnew">New Posts</a><br>-Click to view new posts</br></span></td>
</
tr>

<
tr>
<
td class="alt1"><span class="smallfont"><a href="goto.php?section=about$session[sessionurl_q]">About Us</a><br>-Click to view the history of AdminNation</br></span></td>
</
tr>

<
tr>
<
td class="alt2"><span class="smallfont"><a href="goto.php?section=privacy$session[sessionurl_q]">Privacy Policy</a><br>-Click to view our policy on privacy</br></span></td>
</
tr>

<
tr>
<
td class="alt1"><span class="smallfont"><a href="goto.php?section=terms$session[sessionurl_q]">Terms Conditions</a><br>-Click to view our terms conditions of service</br></span></td>
</
tr>

<
tr>
<
td class="alt2"><span class="smallfont"><a href="goto.php?section=sitemap$session[sessionurl_q]">Sitemap</a><br>-Follow the link to our sitemap</br></span></td>
</
tr>

</
table>
<
br />
<!-- / 
###### end zach's navbar saver ###### --> 


top end ms 04-09-2006 06:55 AM

look at a table with this on it.. the top row has theader tags and the calapsable has tbody tags. Then just copy and paste the hide / show button and change the variable name.

Motoman 04-09-2006 02:28 PM

Quote:

Originally Posted by top end ms
look at a table with this on it.. the top row has theader tags and the calapsable has tbody tags. Then just copy and paste the hide / show button and change the variable name.

Okay thanks I'll try it:D

Princeton 04-09-2006 03:13 PM

<a href="http://www.vbulletin.com/forum/showthread.php?t=168739&highlight=collapse" target="_blank">http://www.vbulletin.com/forum/showt...light=collapse</a>

Ziki 04-09-2006 03:43 PM

Or just use my Announcements above forums template as base.

Motoman 04-09-2006 04:12 PM

1 Attachment(s)
Okay that link got it working thanks for all of your help guys:D

PHP Code:

<!-- ###### start zach's navbar_saver ####### -->
<table class="tborder" cellpadding="$stylevar[cellpadding]

cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
thead>
    <
tr>
        <
td class="tcat">
            <
a style="float:$stylevar[right]href="#top" 

onclick="return toggle_collapse('nav_saver')"><img id="collapseimg_nav_saver" 

src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_nav_saver].gif" alt="" 

border="0" /></a>
            
$vbphrase[zachs_navbar_saver]
        </
td>
    </
tr>
</
thead>
<
tbody id="collapseobj_nav_saver" style="$vbcollapse[collapseobj_nav_saver]">
<
tr>
<
td class="alt1"><span class="smallfont"><

href
="faq.php$session[sessionurl_q]">FAQ</a><br>-Click to seacrh our frequently asked 

questions archives
</br></span></td>
</
tr>
<
tr>
<
td class="alt2"><span class="smallfont"><

href
="search.php?$session[sessionurl_q]do=getnew">New Posts</a><br>-Click to view 

new posts</br></span></td>
</
tr>
<
tr>
<
td class="alt1"><span class="smallfont"><

href
="goto.php?section=about$session[sessionurl_q]">About Us</a><br>-Click to view the 

history of AdminNation
</br></span></td>
</
tr>
<
tr>
<
td class="alt2"><span class="smallfont"><

href
="goto.php?section=privacy$session[sessionurl_q]">Privacy Policy</a><br>-Click to 

view our policy on privacy
</br></span></td>
</
tr>
<
tr>
<
td class="alt1"><span class="smallfont"><

href
="goto.php?section=terms$session[sessionurl_q]">Terms Conditions</a><br>-Click 

to view our terms 
conditions of service</br></span></td>
</
tr>
<
tr>
<
td class="alt2"><span class="smallfont"><

href
="goto.php?section=sitemap$session[sessionurl_q]">Sitemap</a><br>-Follow the link 

to our sitemap
</br></span></td>
</
tr>
</
tbody>
</
table>
<
br />
<!-- / 
###### end zach's navbar saver ###### --> 



All times are GMT. The time now is 07:02 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.00999 seconds
  • Memory Usage 1,779KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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