![]() |
Forcing specific styles on specific pages
Hey,
I'm currently developing my new site and I would like to debug it both as a guest and user/admin. So far I've been using index.php?styleid=2 to set a specific style. However, this doesn't work for guests and so I would like to force a style on the pages I'm debugging. I've tried doing something like this: Code:
$styleid = 2; |
Have a look at global.php ;)
Search for: Code:
// ############################################################################# |
Thanks, but I don't think I quite understand how to use this. I tried the following, but I'm still getting a blank page:
Code:
$styleid = 4; |
Bumping.... I need this too.
|
I need it as well.
|
One way:
On your custom PHP file. EX: phpfile.php Code:
define('THIS_SCRIPT', 'phpfile'); Hook Location: style_fetch Title: phpfile.php style change Plugin PHP Code: Code:
if (THIS_SCRIPT == 'phpfile'){ |
That worked perfectly!
|
All times are GMT. The time now is 11:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|