Hi Danny, thanks.
I modified it a bit between the posts.
Plugin at
global_bootstrap_complete
PHP Code:
$array['rotation'] = rand(1,2);
vB_Template::preRegister('ad_global_below_navbar', $array);
Template
ad_global_below_navbar
Code:
<!-- rotation: {vb:raw rotation} -->
<object width="234" height="60">
<param name="movie" value="example<vb:if condition="$rotation == 2">-2</vb:if>.swf">
<param name="wmode" value="opaque" />
<param name="allowScriptAccess" value="always">
<embed src="example<vb:if condition="$rotation == 2">-2</vb:if>.swf" width="234" height="60" allowScriptAccess="always" wmode="opaque"></embed>
</object>
The var $rotation doesn't show at all.