View Full Version : how to convert vbulletin templates to files
aussiev8
09-30-2011, 07:56 AM
Hey guys is there a way yet to convert vbulletin templates into files? I really just want to do this during template development.
Has anyone worked out a way to do this yet?
aussiev8
10-01-2011, 08:12 AM
So, nobody on the whole wide internet can help.. I've built something in ruby that pulls templates out for a given style, and drops it to the filesystem.
I'm now writing another ruby script to convert the templates into an xml style which can be imported.
Bext step is to hook into vbulletin itself and make it grab the templates directly from the file system.
--------------- Added 1317468346 at 1317468346 ---------------
So I bailed on the xml style importer (I'll do that next).
But I now have vbulletin templates being read in via the file system, ignoring the database.
The plan is to update the database with the rendered and un rendered templates on page load, so i always have up to date versions in my database.
Andreas
10-02-2011, 12:02 PM
You are somewhat re-inventing the wheel ;)
Take a look at includes/class_filesystemxml_template.php.
valdet
11-01-2011, 12:28 PM
This might help you.
https://www.vbulletin.com/forum/showthread.php/129871-I-hate-the-templating-system?p=815949&viewfull=1#post815949
It saved me countless hours.
Val.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.