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.
  #61  
Old 09 May 2008, 06:15
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Real name: Jim
** UNINSTALLED **
Too confusing and not enough instruction on how to use it or configure it.
Reply With Quote
  #62  
Old 13 May 2008, 03:54
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Real name: Anton Kanevsky
As I said previously, very good hack, another idea is to allow organized plugin / phrase modification from the file system. Maybe we can cooperate in developing this into a multi-purpose system?
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work.

Last edited by akanevsky; 13 May 2008 at 13:28.
Reply With Quote
  #63  
Old 14 May 2008, 20:21
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by jim6763nva View Post
** UNINSTALLED **
Too confusing and not enough instruction on how to use it or configure it.
this modification is not for the average joe, its for developers and people who know what it does without having to have had it explained.
__________________
Looking for ImpEx?
Reply With Quote
  #64  
Old 14 May 2008, 20:25
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Originally Posted by Psionic Vision View Post
As I said previously, very good hack, another idea is to allow organized plugin / phrase modification from the file system. Maybe we can cooperate in developing this into a multi-purpose system?
Sorry, I missed this reply.

I have another version in development which has another level of abstraction to handle different 'items' (templates, phrases, etc.)

You can take that over if you'd like - I have it in my SVN repos. somewhere. I usually develop things just enough to suit my needs and then I'm swamped with work and don't progress it until months later.
Reply With Quote
  #65  
Old 14 May 2008, 21:26
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Originally Posted by Zachery View Post
this modification is not for the average joe, its for developers and people who know what it does without having to have had it explained.
See my repeated requests in the Private Coders Forum for a Private Coders Mods section.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #66  
Old 14 May 2008, 23:13
brendanc brendanc is offline
 
Join Date: Mar 2005
Well, I'm fairly savvy when it comes to these types of things and I find it absolutely confusing. I've followed what little directions there are... and I can't get it to generate the files. I never get errors, but it doesn't work either.
Reply With Quote
  #67  
Old 15 May 2008, 01:06
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Originally Posted by SirAdrian View Post
You can take that over if you'd like - I have it in my SVN repos. somewhere. I usually develop things just enough to suit my needs and then I'm swamped with work and don't progress it until months later.
I'd be more than happy to join in on some joint dev work. I know Adrian is tired of me bugging him to add more features ...

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
Reply With Quote
  #68  
Old 15 May 2008, 13:42
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Real name: Mosh Shigdar
How does one go about exporting vbulletin's templates to the filesystem with the CVS version? As it seems to be missing since the name change.

Also, does one set up a watch folder before starting to create a new product? Or after? Or do I have to do some process to output the templates to the filesystem?
__________________
-- The WS Spiders List is still downloadable from vBulletin.com.
-- As of Monday 1st July 2013, I will no longer be supporting my hacks as I am leaving the vBulletin community due to medical and life-style reasons.
Reply With Quote
  #69  
Old 20 May 2008, 11:03
Neo_obs Neo_obs is offline
 
Join Date: Mar 2006
Real name: Jeff Baldwin
Ummm... where does the folder need to be? in your forum root or includes?

does it import automagically?
Reply With Quote
  #70  
Old 22 May 2008, 22:25
jim6763nva's Avatar
jim6763nva jim6763nva is offline
 
Join Date: Oct 2005
Real name: Jim
Originally Posted by Zachery View Post
this modification is not for the average joe, its for developers and people who know what it does without having to have had it explained.
I'm not the "average joe" thank you very much. I am a developer, I just don't develop vbulletin addons, etc 24/7. If this is supposed to be some sort of tool for the elite they way make it available to the public? Besides the so-called developers you speak of had to learn about how to use it at some point, right? How about sharing the love and share some info with some part time vbulletin developers?

Please?

Jim
Reply With Quote
  #71  
Old 22 May 2008, 22:47
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
for the elite? You watch the elections too much LOL
Reply With Quote
  #72  
Old 23 May 2008, 03:24
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
The mod was pretty easy to use i thought, and i am the average joe coder.

In the SVN sources, i had to add a vbb plugin to the product so that you could export templates to the proper directory. I think i might have spent maybe 30 minutes looking through the source to figure out what and how to do anything i needed.

I do agree though that there is a pretty big importance on documentation, but it's also obvious that the original author posted more of a proof of concept product rather than a complete tool that can be used with little understanding as to why it works. I have thought of taking the SVN code and building upon it to complete his work, but my skill in object languages isnt up to the task at this time.
Reply With Quote
  #73  
Old 25 May 2008, 03:56
Guest190829
Guest
 
A tool that does this for plugins would be a god send. *drools* just thinking about it, and phrases too! Not having to deal with the phrase manager one at a time...*drools more*
Reply With Quote
  #74  
Old 28 May 2008, 15:00
sweede's Avatar
sweede sweede is offline
 
Join Date: Jan 2007
I've been trying to find resources to teach myself php's object programming ways so i can figure out what the original author has done and apply a similar method to the plugin system but i end up playing world of warcraft or watching Chef Gordon Ramsay on hulu.com or something :|

Although, who ever creates a working system to edit plugins via text file v.s. the plugin editor will hold the mod of the month spot for quite some time
Reply With Quote
  #75  
Old 01 Jun 2008, 19:54
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Originally Posted by sweede View Post
Although, who ever creates a working system to edit plugins via text file v.s. the plugin editor will hold the mod of the month spot for quite some time
What I do for plugins during development is simply require a file with my actual code in it, like ...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This has two advantages ...

1) I can use my regular PHP editor on the code itself.

2) I can use xdebug (i.e. step through the code, enable breakpoints, etc), which you can't do with directly eval'ed code.

Once the code is ready for release, I just paste it into the plugin and get rid of the require.

-- hugh
__________________
Hugh Messenger
Itinerant PHP Mechanic and vB Therapist
Will Work for Food or PayPal
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:04.

Layout Options | Width: Wide Color: