vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Usergroups Collapsable (https://vborg.vbsupport.ru/showthread.php?t=209386)

OU812 03-25-2009 06:39 AM

Usergroups Collapsable
 
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

Code:

<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).


All times are GMT. The time now is 03:28 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.00970 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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