Edit: Thank you for the great support and for fixing my probem
Custom collapsible element cookie problem
Collapse
X
-
Try this:
Code:<div id="collapseobj_alpha_$forumid" style="{$vbcollapse['collapseobj_alpha_$forumid']}">
-
-
Comment
-
Originally posted by Mone'...
now the problem is that i can't add $forumid to:
style="$vbcollapse[collapseobj_my_table_$forumid[color=Black]]"
out getting a parse error for the 2 "$"
...
Code:<div id="collapseobj_alpha_$forumid" [color=red]style="{$vbcollapse['collapseobj_alpha_$forumid']}"[/color]>
Comment
-
It appears there is a problem with indexing into $vbcollapse[] when the index contains a variable itself. I have the same problem when I apply it to my own code.
I have been unable to find a fix.Comment
-
I'm glad that you have the same problem, because i have tested so many different conditionals and 1 of then should have worked in first place.
Do you know where i can add the conditional in the php files to fix this?
or are you going to send me to >>>vbulletin.org :PComment
-
Yes, for file mods you would go to www.vbulletin.org.
I am asking the others about a solution using templates.Comment
-
-
I stand corrected from my response in the bug. You should use:
{$vbcollapse['collapseobj_alpha_' . $forumid]}Comment
-
Corrected again. This one works. I checked it:
{$GLOBALS['vbcollapse']['collapseobj_my_table_' . $forumid]}
$vbcollapse wasn't in the scope of the function.Comment
-
Ah, the scope never occurred to me.
I have updated the 'how to' thread:
Comment
-
-
Yes. You would need to apply these attributes to something on the right:
Code:[color=purple]id="collapseobj_[color=red]my_table[/color]" style="$vbcollapse[collapseobj_[color=red]my_table[/color]]"[/color]
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment