greenhybrid
05-22-2005, 03:34 AM
I have three sections and directories in my site. One is the vBulletin forum. Another is the vB Articles hack. The last is vBadvanced Gallery. Because I've colorcoded the sections of the site, I'd like to use a different style for each of these sections. Is there certain code I can stick in my PHP files to define the style for the respective page?
For instance, something like this: define('STYLE', 3); (I just made that up)
Found it! I was able to write this based on the correct information from another hack. In global.php I find out which subdomain I'm at and define a style accordingly:// ################################################## ###########################
// ######################## START TEMPLATES & STYLES ###########################
// ################################################## ###########################
$userselect = false;
// jason
$url = explode("/",$_SERVER['REQUEST_URI']);
if ($url[1] == "learn") {
$styleid = 4;
$userselect = true;
} elseif ($url[1] == "share") {
$styleid = 5;
$userselect = true;
} else
For instance, something like this: define('STYLE', 3); (I just made that up)
Found it! I was able to write this based on the correct information from another hack. In global.php I find out which subdomain I'm at and define a style accordingly:// ################################################## ###########################
// ######################## START TEMPLATES & STYLES ###########################
// ################################################## ###########################
$userselect = false;
// jason
$url = explode("/",$_SERVER['REQUEST_URI']);
if ($url[1] == "learn") {
$styleid = 4;
$userselect = true;
} elseif ($url[1] == "share") {
$styleid = 5;
$userselect = true;
} else