vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Fetch templates from file instead of database (https://vborg.vbsupport.ru/showthread.php?t=321683)

mokujin 02-02-2016 06:09 AM

Fetch templates from file instead of database
 
Hello,
Is there a way to move templates to files (html, tpl, etc.) instead of fetching them from Database? vb4 or vb3.
Everytime I want to edit I need to go to admincp.

Thank you :-)

Dave 02-02-2016 11:43 AM

That would require quite some modifications to vBulletin's core files. There's no easy way as far as I know.

squidsk 02-02-2016 08:03 PM

What's wrong with editing them from admincp?

z3r0 02-03-2016 05:55 AM

You could always try editing with WebDAV - https://vborg.vbsupport.ru/showthread.php?t=273789

webmastersun 02-04-2016 05:01 AM

Quote:

Originally Posted by mokujin (Post 2564030)
Hello,
Is there a way to move templates to files (html, tpl, etc.) instead of fetching them from Database? vb4 or vb3.
Everytime I want to edit I need to go to admincp.
Thank you :-)

I think this is a good idea and should change to this instead of using database for loading templates

Quote:

Originally Posted by squidsk (Post 2564091)
What's wrong with editing them from admincp?

It can improve server resource and loading for forums.

squidsk 02-04-2016 09:43 AM

Quote:

Originally Posted by webmastersun (Post 2564187)
It can improve server resource and loading for forums.

That answers a different question from what was asked both by the OP and myself. The OP asked for them in the filesystem in order to edit them, to which I asked whats wrong with editing them in admincp, not what benefit would there be from storing them in the filesystem. Whether or not they're stored in the filesystem, which can't be easily changed for any version of vbulletin, the question was why not edit them through admincp?

blind-eddie 02-04-2016 10:24 AM

Sounds a lot like a flat file system, which I like but, not very secure.


All times are GMT. The time now is 11:45 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.00988 seconds
  • Memory Usage 1,720KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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