Helpful Information
 
 
Category: vB4 Programming Discussions
Please help for toggle_collapse

Hello,
just found out the hard way that the old toggle_collapse function has been removed.. completely
returns only false;
here is the code snippet in vb4....
// #############################################################################
// Collapsible element handlers

// TODO ; Delete toggle_collapse


/**
* Toggles the collapse state of an object, and saves state to 'vbulletin_collapse' cookie
*
* @param string Unique ID for the collapse group
*
* @return boolean false
*/
function toggle_collapse(objid, forcestate)
{
return false;
} :(

can anybody help on how i can add a collapse for a box the new vb4 way?

thanx for any help..

Felix

There is an article in the vb4 articles forum about this.

Just on way out but have been having a look and this is not fully what you need as not sure 100 % but perhaps someone can fill in the gaps


<div class="collapse">
<a class="collapse" id="collapse_forum_info" href="{vb:raw relpath}#top"><img src="{vb:stylevar imgdir_button}/collapse{vb:raw vbcollapse.collapseimg_info_options}_40b.png" alt="" /></a>

thx ... i'm off doing some reading...
Felix










privacy (GDPR)