vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to disable the vBulletin template system (https://vborg.vbsupport.ru/showthread.php?t=212262)

Ronny 04-27-2009 02:31 AM

How to disable the vBulletin template system
 
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


All times are GMT. The time now is 08:34 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
  • Page Generation 0.01069 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete