Yes I have.
The top of my postbit legacy template looks like this
PHP Code:
{vb:raw template_hook.postbit_start}
<vb:if condition="$GLOBALS[altclass] == '1'">
<vb:if condition="$GLOBALS[altclass] = '2'"></vb:if>
<vb:else />
<vb:if condition="$GLOBALS[altclass] = '1'"></vb:if>
</vb:if>
<li class="postbitlegacy_$GLOBALS[altclass] postbitim" id="post_{vb:raw post.postid}">
The HTML that is output is
HTML Code:
<li class="postbitlegacy_$GLOBALS[altclass] postbitim" id="post_2">
Thanks for your reply
--------------- Added [DATE]1264102650[/DATE] at [TIME]1264102650[/TIME] ---------------
Ok, solved it.
Remove the postbit legacy code and replace with a plugin in postbit_display_start with this
PHP Code:
if($GLOBALS[altclass] == '1')
{
$GLOBALS[altclass] = '2';
}else{
$GLOBALS[altclass] = '1';
}
And the top of postbit legacy becomes
HTML Code:
<li class="postbitlegacy_{vb:raw GLOBALS[altclass]} postbitim postcontainer" id="post_{vb:raw post.postid}">