PDA

View Full Version : Usergroups Collapsable


OU812
03-25-2009, 06:39 AM
I have been trying to get the shouwgroups.php collapsable per group, but have no succes with it.

Read the manual for vbulleting on collapsable elements. But cant get it figured out.

Anyone any idea?

Dismounted
03-25-2009, 06:49 AM
What have you done so far?

OU812
03-25-2009, 07:04 AM
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr><td class="tcat" colspan="3">
<a href="#top" style="float:$stylevar[right]"
onclick="return toggle_collapse('MyELEMENT')"><img
id="collapseimg_MyELEMENT"
src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_MyELEMENT].gif"
alt="" border="0" /></a>
<strong>$user[title]</strong>
</td></tr>
</thead>
<tbody id="collapseobj_MyELEMENT" style="$vbcollapse[collapseobj_MyELEMENT]">
<tr>
<td class="thead">&nbsp;</td>
<td class="thead" width="100%">$vbphrase[user_name]<if condition="$show['locationfield']"> / $vbphrase[location_perm]</if></td>
<if condition="$show['contactinfo']"><td class="thead">$vbphrase[contact]</td></if>
</tr>
$usergroupbits
</tbody>
</table>
<br />


changed to above code for showgroups_usergroups template

OU812
03-27-2009, 07:14 AM
Nobody any idea's?

Lynne
03-27-2009, 02:37 PM
If you have more than one collapsible group on the page, then that code will not work. Each collapsible table must have a unique id. So, change your code to create a unique id (perhaps using the usergroup id in the there).