![]() |
I hate to dig this up, but how do you make the box collapsed by default? I read something in another thread, it does the job, but then it still shows the "collapse" button by default instead of the "expand" button.
|
As Kerry-Anne posted above:
Code:
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]; display:none"> |
Quote:
Now I know nothing about javascript, but since this seems to be a JS function, is it possible to do something like toggle_collapse in <body onload>? So it collapses the box when the page loads, and then you'd have to click the button to collapse? |
I'm hoping that you did read the enitre tutorial, and not literally use that code that Kirk quoted, as that won't work correctly as it is the control for another box.
Can you provide a copy of the code you are using for the box, along with details of where it is and a link to view it on your site, and I'll give it a look over for you. |
Quote:
Currently you have to be an administrator to view the style I'm working on, and we're also in the process of upgrading to 3.6.0, so I'll get back to you guys later with screenshots. For now here's the code for the box... Code:
<table class="tuser_info" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> |
ok, there is a simple reason for this. For your id you have
Code:
id="collapseobj_postbit_userinfo$post[postcount]" Code:
src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_postbit_userinfo].gif" Code:
src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_postbit_userinfo$post[postcount]].gif" There isn't anything that you can do about this I'm afraid, unless you want them all to open and close regardless of which post you click on. |
Quote:
Is there ANY way around this? Is it possible to have any other variable in there? like... Code:
src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_postbit_userinfo$x].gif" |
I wouldn't think so. You are probably best using a popup menu to achieve the results that you want for this.
|
wow, thx for this tut mate :)
|
the only thing you can do is collapse on load. That is what i did at least.
<script type="text/javascript">toggle_collapse('yourcollapseidhere')</script> Quote:
this should work, i tried it before using text and im pretty sure i did this. |
All times are GMT. The time now is 12:27 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|