Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Automatic Template Compiler Details »
Automatic Template Compiler
Mod Version: 1.00, by Adrian Schneider (Coder) Adrian Schneider is offline
Developer Last Online: Aug 2021 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 Beta 4 Rating: (14 votes - 4.93 average) Installs: 82
Released: 13 Feb 2008 Last Update: 13 Feb 2008 Downloads: 628
Supported Uses Plugins Additional Files Is in Beta Stage  

Development Tool: Automatic Template Compiler
Requirements: PHP 5, vBulletin 3.5+

Summary: Allows you to edit HTML files directly instead of using the AdminCP template editor. ATC will automatically update the database if any changes are detected. This is intended for a development environment only, and will only run while in debug mode.

Why: Template development is a huge PITA because of how templates are stored in the database - they are compiled. This means you cannot simply save a file, or update the database, because vBulletin needs to compile them first, and maybe even update the style cache. This saves TONS of time copy pasting and switching between your editor, your page, and the vBulletin template editor box.

How it works: ATC maintains a checksum (md5 hash) of each template body, and when it finds that one is out of sync with your working copy, it will save that template automatically in a very efficient manner. It updates both the template about to be displayed in memory and also the real copy in the database.

It also includes a very basic import utility so you can copy your existing templates into the filesystem for easy editing.

How to use it: Follow the install instructions, and then whenever you edit a file, the changes will transfer to vBulletin itself.

This was written in PHP 5 (OO) and I have no plans to make it work with PHP 4, but I may eventually build an interface to manage the settings, but for developers, configuring it should be no problem.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 20 Feb 2008, 19:50
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Ooops! I could have sworn you'd released the new version I've been testing / using.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #32  
Old 21 Feb 2008, 12:55
MrNase's Avatar
MrNase MrNase is offline
 
Join Date: May 2003
Real name: Dominik
Ok, I'll wait for the next version then.
Reply With Quote
  #33  
Old 21 Feb 2008, 16:03
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
I'll bully AJ into getting it released ASAP! I'm still in shock at just how darn useful this mod is.

Oh, and I'll donate a "the" to your sig word collection. Copy, paste and use wisely.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #34  
Old 24 Feb 2008, 09:03
ninjamaster's Avatar
ninjamaster ninjamaster is offline
 
Join Date: Oct 2006
thanks nice work
Reply With Quote
  #35  
Old 24 Feb 2008, 11:20
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Nice, Don't really have a need for it as I've never found it a pain unless I was updating multiple styles to new versions or working en mass with lots of styles. Though I'm slightly suprised no one did this sooner seeing how part of this has been in the code for awhile.

Nice work
__________________
Looking for ImpEx?
Reply With Quote
  #36  
Old 24 Feb 2008, 18:42
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
I think you'd be amazed at how useful the ATC is, even if you don't do much template editing. You'll save the time it took you to install the ATC the first time you do need to edit a template. Template editing becomes just like PHP editing - make your changes to a simple HTML file using your IDE / code editor, and hit your page again.

I don't do a huge amount of template editing, but the ATC has already become one of those things I don't know how I lived without.

Even if you don't do template editing, just being able to dump all of vB's templates and include them in your IDE's "Search in Files" path is invaluable when trying to work out how vB does something. Like, what does $show['some_show_thingy'] do, how does it get set and where does it get used? One search in your IDE finds all occurrences in PHP and templates.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #37  
Old 24 Feb 2008, 21:03
Guest210212002
Guest
 
Originally Posted by Boofo View Post
I sure wish you guys weren't PHP 4 haters.
Me too.

/me clicks install anyway

I might actually upgrade to PHP5 just for this mod.
Reply With Quote
  #38  
Old 24 Feb 2008, 23:58
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Sorry for the huge delay in upgrades.

You can track the real progress of it at my dev. blog, and you may also be interested in the other upcoming or existing tools if you are serious about developing.

(ATC is being renamed to VDE -- vBulletin Development Environment and will soon work for the other product data aside from just templates).

SVN users will be pleased to see public SVN access.
__________________
Sr Software Developer / Tech Lead
Reply With Quote
  #39  
Old 25 Feb 2008, 00:57
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Originally Posted by SirAdrian View Post
SVN users will be pleased to see public SVN access.
And if you aren't an SVN user ... you should be.

A quick crash course for anyone unfamiliar with it, SVN is a "source control system". It allows developers to share and distribute the latest code. And because AJ's stuff is on a public SVN server with 'anonymous' access, anyone can use SVN to download AJ's latest and greatest, without having to wait till he gets round to updating the ZIP on this page.

For Windows, by far and away the best SVN client is Tortoise SVN:

http://tortoisesvn.net/downloads

Download and install it. Tortoise installs itself on your normal right click folder menu. Create a new folder somewhere called 'vbdevtools'. Right click in the new folder and select "SVN Checkout". In the "URL of Repository", paste this URL:

https://vbdevtools.svn.sourceforge.n...oot/vbdevtools

Click OK. Tortoise will now connect to the SVN server and download all the folders and files for AJ's 'vbdevtools' project. In ./vde/unstable you will find the ATC. To install / upgrade to it, do exactly what you would normally do - upload the uploads and install the XML.

From now on, whenever AJ updates his code, Tortoise will change the Green Tick folder icon on your 'vbdevtools' folder to a Red Exclamation Point icon. To download the updates, just right click the folder and select "SVN Update".

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #40  
Old 25 Feb 2008, 03:01
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
ah nice, I didnt know you released this publicly yet - i'll refer here from now on
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #41  
Old 25 Feb 2008, 10:44
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by cheesegrits View Post
I think you'd be amazed at how useful the ATC is, even if you don't do much template editing. You'll save the time it took you to install the ATC the first time you do need to edit a template. Template editing becomes just like PHP editing - make your changes to a simple HTML file using your IDE / code editor, and hit your page again.

I don't do a huge amount of template editing, but the ATC has already become one of those things I don't know how I lived without.

Even if you don't do template editing, just being able to dump all of vB's templates and include them in your IDE's "Search in Files" path is invaluable when trying to work out how vB does something. Like, what does $show['some_show_thingy'] do, how does it get set and where does it get used? One search in your IDE finds all occurrences in PHP and templates.

-- hugh
Meh, I know my way around the template system fairly well, its never bothered me editing it via admincp
__________________
Looking for ImpEx?
Reply With Quote
  #42  
Old 25 Feb 2008, 18:54
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Originally Posted by Zachery View Post
Meh, I know my way around the template system fairly well, its never bothered me editing it via admincp
I have no doubt you know the template system like the proverbial back of your hand. I just don't see how anyone could possibly want to use the ACP to edit templates, when they could be using an 'intelligent' HTML/CSS editor instead, and never have to touch the ACP.

IDE's or even basic code editors provide all kinds of nifty support for editing HTML/CSS, like attribute completion, syntax checking, pretty printing, complex search / replace, code snippets, macros, etc. If you have a good IDE (or just install WinMerge), it will also handle diff'ing and merging, making vB upgrading a snap - upgrade, use ATC to dump everything in Master and any customized styles in separate directories, do a "directory diff and merge" in your editor / WinMerge, done.

I just don't see why anyone who does anything like any serious template editing wouldn't want to take advantage of all that.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #43  
Old 27 Feb 2008, 18:03
vertigo jones vertigo jones is offline
 
Join Date: May 2007
I love you.
Reply With Quote
  #44  
Old 06 Mar 2008, 22:04
jGas jGas is offline
 
Join Date: May 2007
i was able to enable ( ) debug mode...but now what do i have to do to find the html file?

thanks!
Reply With Quote
  #45  
Old 07 Mar 2008, 01:31
PyroNET PyroNET is offline
 
Join Date: Aug 2004
Originally Posted by vertigo jones View Post
I love you.
Couldn't have put it better myself.

Feature suggestions:

Make it able to update css too. One of the things I hate the most is the vBulletin CSS editor.

If I create an html file in the template folder that isn't currently a customized template have it detect such and edit the style to customize that template.

Last edited by PyroNET; 07 Mar 2008 at 01:42.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:48.

Layout Options | Width: Wide Color: