The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
bbcode and collapse help.
I am trying to use the following code as a replacement for a bbcode. The problem is that it's supposed to be collapsible but the image path is wrong. Can anyone tell me what the deal is I can't seem to figure it out?
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('my_table_$post[postid]')"><img id="collapseimg_my_table_$post[postid]" src="$stylevar[imgdir_button]/collapse_tcat{$GLOBALS['vbcollapse']['collapseimg_my_table_' . $post[postid]]}.gif" alt="" border="0" /></a> TABLE TITLE </td> </tr> </thead> <tbody id="collapseobj_my_table_$post[postid]" style="{$GLOBALS['vbcollapse']['collapseobj_my_table_' . $post[postid]]}"> <tr> <td class="alt1"> {param} </td> </tr> </tbody> </table> |
#2
|
||||
|
||||
I don't think you can use any php code inside template, unless its in <if>, so ['collapseimg_my_table_' . $post[postid]] won't work.
And you'll have another problem with that bbcode - if there is more than one bbcode inside post then you'll have two divs with same id. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|