I've got a bunch of vbadvanced pages and want a different $stylevar[outertablewidth] value for vba pages than for vb pages. I've used the following in the header and footer but there are other css locations were outertablewidth is used. It seems the only way to catch them all is by using the Main Table Width option in admincp and that field doesn't take conditionals.
<if condition="THIS_SCRIPT == 'adv_index'">100%<else /><if condition="THIS_SCRIPT != 'adv_index'">85%</if></if>
--------------- Added [DATE]1253994028[/DATE] at [TIME]1253994028[/TIME] ---------------
someone over at vba forums helped me. I needed to add a new plugin to the global start hook using this code:
PHP Code:
<?php
if (THIS_SCRIPT == 'adv_index' && $pages['name'] != 'home')
{
$stylevar['outertablewidth'] = '100%';
$stylevar['outerdivwidth'] = '100%';
}
?>