PDA

View Full Version : Please help for toggle_collapse


derfelix
20 Nov 2009, 17:40
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

Lynne
20 Nov 2009, 17:44
There is an article in the vb4 articles forum about this.

cabledr
20 Nov 2009, 17:46
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>

derfelix
20 Nov 2009, 18:01
thx ... i'm off doing some reading...
Felix