Log in

View Full Version : Calling vB templates from non-vB scripts?


ludachris
04-14-2006, 09:48 PM
I have some non-vb scripts on my site that I'm trying to get to use the vb header template. The script currently calls a non-vb header file, basically just a php file I created and am calling via an include statement. Is there a way to make it so the script calls a file which pulls in the vb header template?

I've read Psionic Vision's tutorial about creating custom non-vb pages but it doesn't really explain how to make things work with existing pages and other scripts.

RS_Jelle
04-15-2006, 01:04 PM
Read the tutorial again, this is explained in it :)

You just need to set the error_reporting, include global.php (use chdir if your file is outside the vBulletin directory), define THIS_SCRIPT, ... and then you can use the vBulletin template system.