Log in

View Full Version : How can I...


Motoman
04-09-2006, 03:57 AM
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.


<!-- ###### 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
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
Okay that link got it working thanks for all of your help guys:D


<!-- ###### 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"><a

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"><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>
</tbody>
</table>
<br />
<!-- / ###### end zach's navbar saver ###### -->