The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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.... HTML Code:
// #############################################################################
// 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 |
|
#2
|
||||
|
||||
|
There is an article in the vb4 articles forum about this.
|
|
#3
|
|||
|
|||
|
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
HTML Code:
<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> |
|
#4
|
|||
|
|||
|
thx ... i'm off doing some reading...
Felix |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|