This is getting way over my head.
Is this a legitimate if query: <if ($vbulletin->GPC[COOKIE_PREFIX . 'my_table'])> ?
If so, I could put it in each td and have it do nothing if true and get the gadget if false.
Are you saying that if the user has the table collapsed from a previous visit and then expands it he will have to reload the page to get the gadgets to download?
--------------- Added [DATE]1212767170[/DATE] at [TIME]1212767170[/TIME] ---------------
Here's another possibility:
The code in template reads
<tbody id="collapseobj_my_table" style="$vbcollapse[collapseobj_my_table]">
in the tbody that collapses.
When I look at the page source actually displayed I get style=" " when it is expanded and style="display:none" when it's collapsed. Can a query be based on this?
--------------- Added [DATE]1212845272[/DATE] at [TIME]1212845272[/TIME] ---------------
It doesn't seem necessary to look at the cookie directly as it is stored in several locations. I found my cookies listed four times in admin CP > Maintenence > View PHP info. They are listed in a group in
Apache Environment under HTTP_COOKIE,
in HTTP Headers Information under cookie,
in PHP Variables under under _SERVER["HTTP_COOKIE"]
and individually in PHP Variables under _COOKIE["......"]
In particlular, the collapse variables for tables are under _COOKIE["vbulletin_collapse"], which lists all the collapsed tables.
Can anyone show me how to make a proper "if" statement based on one of these?
|