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: Nov 2019 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: 80
Released: 13 Feb 2008 Last Update: 13 Feb 2008 Downloads: 617
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.
Comments
  #2  
Old 13 Feb 2008, 04:27
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Works like a charm. No more template editor, yay!

Don't know what took you so long though. You told me about the idea around 7pm, and it was gone 10pm before you were done. You're getting slow in your old age.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #3  
Old 13 Feb 2008, 04:39
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
Nice one, AJ. Will use it for sure.
__________________
Floren Munteanu
Axivo Inc.
Axivo Community - Visit the forums to find out more about us
Why Queued - My personal blog
Reply With Quote
  #4  
Old 13 Feb 2008, 05:05
Michael Biddle Michael Biddle is offline
 
Join Date: Apr 2004
Location: Anaheim, CA
Installed .

Great Mod Aj
Reply With Quote
  #5  
Old 13 Feb 2008, 06:54
Basboss Basboss is offline
 
Join Date: Aug 2005
Installed.

Thanks dude.
Reply With Quote
  #6  
Old 13 Feb 2008, 08:06
testebr testebr is offline
 
Join Date: Jan 2004
Let me kiss your ass please!!!
Reply With Quote
  #7  
Old 13 Feb 2008, 08:25
nix's Avatar
nix nix is offline
 
Join Date: Mar 2005
Nice

Now if you can learn to cook a can of soup as well as you code...
Reply With Quote
  #8  
Old 13 Feb 2008, 08:41
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
Let me get this straight... this makes a HTML copy of the template so you can edit it, without using the AdminCP or what?
__________________

Reply With Quote
  #9  
Old 13 Feb 2008, 09:50
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Originally Posted by cheesegrits View Post
Works like a charm. No more template editor, yay!

Don't know what took you so long though. You told me about the idea around 7pm, and it was gone 10pm before you were done. You're getting slow in your old age.

-- hugh
Well, 3 hours well spent I hope!

Originally Posted by testebr View Post
Let me kiss your ass please!!!


Originally Posted by nix View Post
Nice

Now if you can learn to cook a can of soup as well as you code...
Hey, lay off on the soup thing. I managed to cook alphagetti today without any incidents.

Originally Posted by Magnumutz View Post
Let me get this straight... this makes a HTML copy of the template so you can edit it, without using the AdminCP or what?
Right. Imports from DB to filesystem, and then watches the files for any changes, compiling and saving when they are found.
Reply With Quote
  #10  
Old 13 Feb 2008, 10:13
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Real name: Paul
I dont quite get this, I have installed it, now what do I do?

Cheers
Reply With Quote
  #11  
Old 13 Feb 2008, 10:27
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Real name: Steve
/me clicks install. Thanks!
__________________
Reply With Quote
  #12  
Old 13 Feb 2008, 12:11
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
That's awesome... i might try it on the future.
Good job Adrian !
__________________

Reply With Quote
  #13  
Old 13 Feb 2008, 12:49
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I sure wish you guys weren't PHP 4 haters.
Reply With Quote
  #14  
Old 13 Feb 2008, 13:33
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
Ah crap... hope my host upgrades to PHP5... actually i'll make it upgrade
__________________

Reply With Quote
  #15  
Old 13 Feb 2008, 15:17
waza waza is offline
 
Join Date: Apr 2005
you say you need to put ?do=atc_import as a variable on a page to import existing templates, but don't you mean ?do=import ?
however, thanks for this good time-saver
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 12:33.

Layout Options | Width: Wide Color: