vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - Automatic Template Compiler (https://vborg.vbsupport.ru/showthread.php?t=170361)

Lionel 05-22-2008 08:47 PM

for the elite? You watch the elections too much LOL

sweede 05-23-2008 01:24 AM

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.

Guest190829 05-25-2008 01:56 AM

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*

sweede 05-28-2008 01:00 PM

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 :)

cheesegrits 06-01-2008 05:54 PM

Quote:

Originally Posted by sweede (Post 1534030)
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 ...

PHP Code:

require(DIR  '/cheesegrits/somehack/plugin.global_start.php'); 

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

Lionel 06-01-2008 06:11 PM

Quote:

Originally Posted by Danny.VBT (Post 1530565)
Not having to deal with the phrase manager one at a time...*drools more*

Andreas released an ajax "Add New Phrase" on vbulletin-germany that does just that. Extremely useful.

Adrian Schneider 06-01-2008 06:25 PM

Hugh / Anthony,

You are welcome to take it over and extend it to plugins and phrase. I think phrases is already done though, just kinda slow with this method.

cheesegrits 06-02-2008 07:54 PM

So how do we go about getting access to this mod thread? I'd rather keep it in place than create a new one.

-- hugh

sweede 06-02-2008 11:57 PM

Quote:

Originally Posted by Lionel (Post 1538037)
Andreas released an ajax "Add New Phrase" on vbulletin-germany that does just that. Extremely useful.

I just jumped over there and i gotta admit, i'm highly impressed with his work. It takes a bit of work to get things worked out because right now it's all in german, but it's well worth the effort.

Andreas method is to create a folder, /addondev/pluginname/plugins or /addondev/pluginname/template and for the plugins, your filename is simply the hook that it belongs to. the name of the template is just that (with .tpl at the end).

When you refresh/visit your site, it loads up the data thats stored on the disk. When you export your product for distribution it reads all of the data from the disk and adds it to the xml file.

I created a plugin w/the name of my domain that i've placed extra templates such as custom templates for vbadvanced pages and modified style templates and it all works as expected.

Lionel 06-03-2008 12:03 AM

There is a wealth of developer's tools over there


All times are GMT. The time now is 10:54 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.01133 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete