desie310
09-26-2009, 04:53 AM
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 1253994028 at 1253994028 ---------------
someone over at vba forums helped me. I needed to add a new plugin to the global start hook using this code:
<?php
if (THIS_SCRIPT == 'adv_index' && $pages['name'] != 'home')
{
$stylevar['outertablewidth'] = '100%';
$stylevar['outerdivwidth'] = '100%';
}
?>
<if condition="THIS_SCRIPT == 'adv_index'">100%<else /><if condition="THIS_SCRIPT != 'adv_index'">85%</if></if>
--------------- Added 1253994028 at 1253994028 ---------------
someone over at vba forums helped me. I needed to add a new plugin to the global start hook using this code:
<?php
if (THIS_SCRIPT == 'adv_index' && $pages['name'] != 'home')
{
$stylevar['outertablewidth'] = '100%';
$stylevar['outerdivwidth'] = '100%';
}
?>