Thanks for that info kh99 (or Bob isn't it if i remember right)
OK problem solved
What I did is set the $vbcollapse[] in my php like below, immediately before eval(ing) the modules template
if (whatever condition)
{
$vbcollapse['collapseobj_name_of_this_module'] = ""; // this displays the module expanded
}
else
{
$vbcollapse['collapseobj_name_of_this_module'] = "display:none;"; // this displays the module collapsed
}
and it does exactly what I wanted, automagically overriding the users preference dependant on the condition being true or not, but not changing the cookie settings either way.
Cheers m8
Rich
|