We include into the Module that the Cookie (which is brought in some magical way into php
Data is assigned to a smarty Variabel.
$smarty->assign_by_ref('bsag_boxstate',$bsagBoxCook);
Inside our .tpl we can now reference this Value.
Copy to clipboard
{if $bsag_boxstate eq 'o'}
{else}
{/if}
{$data}
copyright by BSAG :)
( I was informed that the usage of center / font isn't xhtml compliant, but I'm not an XHTML Guru, so perhaps someone could fix the above lines if he strays around here. )
(Why isn't it possible to do linebreaks in Boxes. grr, so easy
I fixed it in plugin code. nice contribution, I'll have to try that — mose
So this way, the Box always remembers its state. Nice isn't it ?