wajones
06-24-2001, 10:00 PM
I don't know if this has been done, if it has please disreguard or delete...
Just a mini hack for those that want to put things on non-vb pages and don't want to hard code the colors. Without the space after the { and before the } of course. Puts the replacement $vars in an array then you assign them in order so you can use them on other pages.
e.g. bgcolor = "$bgcolor1"
require("global.php");
$vbcolors = dovars("{ secondaltcolor },{ categorybackcolor },{ firstaltcolor },{ secondaltcolor },{ pagetextcolor },{ pagetextcolor }",0);
$vbc = explode(",",$vbcolors);
$bgcolor1 = $vbc[0];
$bgcolor2 = $vbc[1];
$bgcolor3 = $vbc[2];
$bgcolor4 = $vbc[3];
$textcolor1 = $vbc[4];
$textcolor2 = $vbc[5];
Just a mini hack for those that want to put things on non-vb pages and don't want to hard code the colors. Without the space after the { and before the } of course. Puts the replacement $vars in an array then you assign them in order so you can use them on other pages.
e.g. bgcolor = "$bgcolor1"
require("global.php");
$vbcolors = dovars("{ secondaltcolor },{ categorybackcolor },{ firstaltcolor },{ secondaltcolor },{ pagetextcolor },{ pagetextcolor }",0);
$vbc = explode(",",$vbcolors);
$bgcolor1 = $vbc[0];
$bgcolor2 = $vbc[1];
$bgcolor3 = $vbc[2];
$bgcolor4 = $vbc[3];
$textcolor1 = $vbc[4];
$textcolor2 = $vbc[5];