vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   does anyone know how to move templates into files? (https://vborg.vbsupport.ru/showthread.php?t=209746)

aussiev8 03-28-2009 11:28 PM

does anyone know how to move templates into files?
 
Hey guys..

I'm doing a lot of template modifications at the moment, building new functionality, etc. and its a pain the butt to have to copy my template from an IDE, paste into the template editor on vbulletin, save, and switch to my board, and refresh..

doing this while trying to solve basic css & javascript problems can be very time consuming. I'm almost ready to give us... there must be a better way?

Why are the templates stored in the database anyway? It'll be easy enough to read the files from the filesystem and give the exact same functionality in the admin section.. and geez, wouldn't it be faster reading from the filesystem rather than the db???

Does anyone know how to do this? Or could they point in the right direction on where/how the templates are processed, saving me a whole bunch of time sifting through hundreds of thousands of line of php.

Dismounted 03-29-2009 03:55 AM

One of the main reasons why templates are stored in the DB is that to store them in the filesystem, you need to have the correct permissions, etc.

To change the method of storage would be very tedious - modifying the Admin CP page, as well as the template fetching lines, plus more.

aussiev8 03-29-2009 04:03 AM

maybe a feature in a future release.
thanks for your reply


All times are GMT. The time now is 10:17 PM.

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.00991 seconds
  • Memory Usage 1,706KB
  • 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
  • (3)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