The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Thread ID into collapseobj
PHP syntax isn't my strongest point...I want to put a $thread[threadid] value inside a $vbcollapse[collapseobj_threadidgoeshere] and it's giving me:
Parse error: parse error, unexpected T_VARIABLE, expecting ']' The $thread[threadid] is used inside tlist inside the same template, what is the problem with putting it where I want? Thanks for your help. Edit: Specifically this is what I want: id="collapseobj_foo$thread[threadid]" style="$vbcollapse[collapseobj_foo$thread[threadid]]" The id is fine, the style one gives the error. As yet curly braces and/or escaping have made no difference. |
#2
|
|||
|
|||
No? Nobody knows why the threadid var would produce an error inside the style tag?
|
#3
|
||||
|
||||
I don't think you can use [] inside [], but I don't know a way around it either.
|
#4
|
|||
|
|||
You can, it's done in several other places in the postbit template.
|
#5
|
|||
|
|||
Did anyone figure out how to do this?
|
#6
|
|||
|
|||
Well I never did, and the guys on the vBulletin.com forum seemed equally stumped as to how it could be done. In fact they didn't even appear to know why it was used elsewhere in the same template but produced an error where I wanted it.
I'd still like to do be able to do it. |
#7
|
|||
|
|||
Hello does anyone know how to make a menu default as closed when using this code? I have a sidebar on my forum and the menus default as open. I would like them to stay closed. Thanks
Quote:
|
#8
|
||||
|
||||
Trigger the toggle_collapse() function with an "onload" parameter.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|