Log in

View Full Version : How to disable the vBulletin template system


Ronny
04-27-2009, 02:31 AM
Hey guys!

I just want to ask a question that is very important for my hack i'm trying to complete now.

Is it possible to disable the hole vBulletin teplate system with a switch like developer view? I just want to disable it for performance and just want to use on one site the vBulletin login system. Just want to include all the use, rights login and so on stuff without the template engine.

Thanks in advance!

Ronny
04-28-2009, 02:36 PM
I'm sure there is a simple way to disable the template engine but i think nobody want to or can't share this secret ;)

Lynne
04-28-2009, 02:43 PM
Well, if you disable the template system, then your forums won't work. So no, I've never ever looking into how to disable the template system.

Ronny
04-29-2009, 10:21 PM
If you just want to use the login system on a 3rd party page so users can access with the same account other pages, you may consider turning off the vbulletin template system, saveing lots of sql querys you won't need. I don't want to turn off the hole template system for the forums, just when i include the "global.php" in my scrtipt i thought that may be a switch like define('TEMPLATESYSTEM', false); could exist to switch it off.

But i'm sure i can write a dirty hack to work around the global.php and just include the needed files for the user login. I just wanted to be on the save side and use vbulletin code that gets updated with the forums, now i have to check all the time if it is still secure and working.

Ronny
05-05-2009, 04:49 PM
Maybe i should ask how to "just" use the vBulletin login system and usergroups in a custom made script outside the vBulletin system - without loading all the other code including the template system?

Lynne
05-05-2009, 04:52 PM
You'd have to include the global.php file and then copy the code from the template needed for logging on/out (from the navbar template). I would try that and see if it works.

Ronny
05-05-2009, 04:55 PM
Well so far i have a working script but it always loads the template and language and lots of other code when i just include the global.php. I just need to know how i can only include the login system without all the other unneeded code, as i asked in my first post, a simple off switch for the template system would help me out a lot.

Thanks.

Adrian Schneider
05-05-2009, 05:25 PM
Look at using ./includes/init.php instead of ./global.php