Quote:
Originally Posted by peterska2
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.
|
I read the tutorial when I originally made collapsable boxes on my site (and they work fine), but when I came back for making them collapsed by default I just added the "display:none" (I payed attention to your tutorial

).
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">
<tbody>
<tr>
<td class="vbmenu_control" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('postbit_userinfo$post[postcount]')"><img id="collapseimg_postbit_userinfo$post[postcount]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_postbit_userinfo].gif" alt="" border="0" /></a>
User Info
</td>
</tr>
</tbody>
<tbody id="collapseobj_postbit_userinfo$post[postcount]" style="$vbcollapse[collapseobj_postbit_userinfo]; display:none">
<tr>
<td>
<div class="smallfont">
<if condition="$post['joindate']"><div id="profileField">$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div id="profileField">$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div id="profileField">$vbphrase[age]: $post[age]</div></if>
<div id="profileField">
$vbphrase[posts]: $post[posts]
</div>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<if condition="$post['icqicon'] OR $post['aimicon'] OR $post['msnicon'] OR $post['yahooicon'] OR $post['skypeicon']"><div id="profileField">IM: $post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></if>
</div>
</td>
</tr>
</tbody>
</table>
Note that I have built the collapsable box around the user info in my postbit_legacy template, which I've also modified in other ways.