The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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; eval('print_output("' . fetch_template('TEMPLATE') . '");'); |
#2
|
|||
|
|||
![]()
Have a look at global.php
![]() Search for: Code:
// ############################################################################# // ######################## START TEMPLATES & STYLES ########################### // ############################################################################# ![]() |
#3
|
|||
|
|||
![]()
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; ($hook = vBulletinHook::fetch_hook('style_fetch')) ? eval($hook) : false; style_fetch($styleid); |
#4
|
||||
|
||||
![]()
Bumping.... I need this too.
|
#5
|
|||
|
|||
![]()
I need it as well.
|
#6
|
||||
|
||||
![]()
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'){ $styleid = 1; // or 2 or 3 etc } |
#7
|
|||
|
|||
![]()
That worked perfectly!
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|