vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=170361

Lionel 01 Jun 2008 19:11

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 01 Jun 2008 19:25

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 02 Jun 2008 20:54

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 03 Jun 2008 00:57

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 03 Jun 2008 01:03

There is a wealth of developer's tools over there

sweede 03 Jun 2008 01:11

to bad it's such a pain to paste all the text in google cause i cant read german :(

Lionel 03 Jun 2008 01:23

LOL. Don't think that I do. You just have to figure it out by trial and error. So far, the release builder, the phrase type manager, the add phrase, the product builder which inserts the entire database queries for you in your product are my favorites

cheesegrits 03 Jun 2008 19:13

Wooo hooooo. New toys.

Thanks for the pointer.

-- hugh

vertigo jones 13 Aug 2008 17:23

Using what SirAdrian has in his SVN, I wrote a layer to make it work with plugins and (I think) didn't break anything with the template editing, though I'm only using one style so it's difficult to test thoroughly. There are likely a few bugs in it, so I could use some help testing it.

I can post it here if SirAdrian doesn't mind.

sweede 06 Sep 2008 01:19

What would be awesome for it to do, is work how the release builder / devtools does.

When you export your product (in this case style), it creates the appropriate XML from the templates listed on the file system.

for theme dev, you would have something like..

ForumRoot / ThemeDev / MyThemeName / Templates
ForumRoot / ThemeDev / MyThemeName / CSS
ForumRoot / ThemeDev / MyThemeName / Whatever

and if you wanted to change/update/modify the postbit template, you create in the Templates directory postbit.tpl and add the appropriate template information.

The plugin would then pick this new template file up and use it over the default master postbit.

sweede 06 Sep 2008 10:22

4 Attachment(s)
Quote:

Originally Posted by sweede (Post 1615534)
What would be awesome for it to do, is work how the release builder / devtools does.

When you export your product (in this case style), it creates the appropriate XML from the templates listed on the file system.

for theme dev, you would have something like..

ForumRoot / ThemeDev / MyThemeName / Templates
ForumRoot / ThemeDev / MyThemeName / CSS
ForumRoot / ThemeDev / MyThemeName / Whatever

and if you wanted to change/update/modify the postbit template, you create in the Templates directory postbit.tpl and add the appropriate template information.

The plugin would then pick this new template file up and use it over the default master postbit.

Ok, so i hacked some of this up real quick, for anyone still using this and interested.

  1. Unpack and Upload files in the upload directory
  2. Create the templates directory in the forum root. Make sure that this folder is writable by the webserver.
  3. Install the VDE product file
  4. Open up your config.php file and add $config['Misc']['debug'] = true; near the end of the file.
    • Unsure if products that allow you to turn debug mode on/off work with this product.
    • If you wish to run this on a live server (your own risk!!!) , you should add an if() statement around the debug variable so that only you will see the theme changes, so you dont break your forum.

From here you have two options,

Export an existing template (Requires chmod'ing files / directories)
  1. In the AdminCP go to the vbulletin Options -> VDE and change Watch Templates Config to the style you wish to update. YOu pretty much will always have "./templates, %, 0, x" where x is the style id you're updating. DO NOT USE -1 for the master template, it can do bad things.
  2. AFTER You change the Watch Templates config option, click save to update the config. After updating the config you can export the current modified templates to the file system by checking the box and hitting save (It will automaticly unset).
  3. The files created in the templates directory may or may not be writable. you will have to chmod the created directories / files so that they are writable via FTP for you.

Create New Template style for modifcation.
  1. Create a new directory in the templates directory.
  2. Create a new Style with the same name as the directory, the name must be IDENTICAL, Including Capital letters and spacing. Naming the directory first will help figure out special characters you can and cant use.

Adding new Modifications to your style.
  • Simple create files in your new template directory that have the exact same name as the template you wish to replace. For example, if you want to make a new postbit for your MyTheme style, you would create templates/MyTheme/postbit.html
  • When you browse to your forums to check your theme, VDE will read the postbit.html file and update the database with your new file.

The Screenshots attached should show you a little bit of what to look for.

I'm looking through and seeing how i can hack CSS support that it would write out a CSS file that can be imported in some fashion back to the database.

armkbdotcom 26 Feb 2009 04:24

For off-line template editing and more you can check vBProductManager development environment. One screenshot from program's help file:

https://www.vbulletin.org/forum/external/2009/02/13.png

Cheers

Adrian Schneider 26 Sep 2009 22:06

Hey Guys,

I have been doing a ton of vBulletin mods lately and not having this stuff fully implemented is killing me, so I will be further developing this ASAP.

The new system I'm working on has two components:

1) Runtime loading of project data (templates, plugins, phrases, etc.)
2) Product XML builder - probably with CLI support and Web support

There will be a ./projects directory, and each project is a directory under it. Project folders will contain a templates, plugins, phrases, etc. dir for the relevant content. A lot of it will be taken from what I had in SVN, and some new.

I am taking a different approach on the runtime component: instead of checking for changes and rebuilding everything, I'm just loading it into memory so nothing ever gets imported into the database. After a lot of thinking, I have concluded that it's not necessary and is going to cause way too much overhead for larger projects.


On a side note, I will not be using SourceForge for the new code - it will be on a public git (github) repo instead.

fxdigi-cash 23 Sep 2014 00:22

I wish this could work on vb4, tried it, but no luck!


All times are GMT. The time now is 18:43.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.