Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Export and import templates to individual files! Details »
Export and import templates to individual files!
Mod Version: 1.00, by Chen (Member) Chen is offline
Developer Last Online: Mar 2009 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 0
Released: 27 Nov 2001 Last Update: Never Downloads: 8
Not Supported Is in Beta Stage  

I'm releasing this as beta because:
  • This has not been tested enough to prove it's working 100%.
  • Your templates aren't something that can be compromised.

In short, what does this hack do:
  • Can write all your templates into files, with any extension you'd like (.html is my favorite), having each template in its own file.
  • Can read from existing template files and save them back to your forum system.
  • Now with option to selectively choose what templates to import / export!

To install:
  • Download the attached ZIP file, extract it and upload do_template.php to your forum admin folder.
  • Go to the file in your browser.
  • If you are not on a Windows server, make sure PHP has permission to write (CHMOD 0777) in the folder you specify.
  • If the folder doesn't exist, PHP will attempt to create it, but you will need write permissions (CHMOD 0777) in the parent folder of it.

Please test this if you can.
If you're trying this out on your real board, it should be safe, but I highly recommend backing up your styles before using it.

This is the place to make suggestions, I expect some!

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.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements Import / Export BBCodes as XML files (updated by BOP5) BirdOPrey5 vBulletin 4.x Add-ons 18 10 Mar 2012 04:37
BB Code Enhancements Import / Export BBCodes as XML files (updated by BOP5) BirdOPrey5 vBulletin 3.8 Add-ons 6 25 Sep 2011 19:47
Export Templates to Files (by MySQL conditions) filburt1 vBulletin 2.x Full Releases 13 17 May 2003 08:05

  #16  
Old 02 Dec 2001, 12:53
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Why is it saying Default all the time?
When it says "Done exporting default templates!", it doesn't mean it exported the default template set, but it just means it's done exporting templates that weren't changed in the template set you selected.
(these are the templates that are colored green in the template list)

You're not seeing the part where it says downloading Users Custom Templates?
Maybe you have no custom templates in the template set you selected. Are you sure you have some?
Also does it say something like "No custom templates to export"!, or just displays nothing? A screen shot would help.

Originally posted by Hooper
They are all great. I have been backing up my templates into text files by hand since I purchased vBulletin. This is unreal. What took me a half hour now litteraly takes me less than 5 seconds. And the select what templates to import and export....all I can say is WOW. I went ahead and added it to the Admin CP.
You have no idea how good it feels to read this kind of stuff. Makes hacking so great. Thanks.

I want to release this as a proper release, so please expermient with it as much as you can. Backup your style and start doing some funky stuff, everything you can possibly think of!
My biggest concern is that it won't overwrite the original template set (-1), although there is code in the file that prevents it, you can never know.

Thanks.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #17  
Old 02 Dec 2001, 17:10
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Welcome!

Oh yeah. I have a bunch of custom templates in 2 different styles. It says nothing at all about downloading them. Nor are they there when I check the server for them. I've tried both the News Template set and my Main set. I'll work on this today and post some shots. But never does it say anything about the Custom User Template set.

Any chance of having the name of the set you are backing up and importing to have the name on it. With this being the templates, It makes a user quite ..well....let's say "On the edge" with not seeing exactly what is going on. So If I had seen the name of my template set before and after the backup, I will feel much more comfortable with the situation.

Backing up News Templates.....DONE!

I have a a bunch of customized and quite a few custom templates.

Thanks Chen
__________________
Cheers,
Hooper

Last edited by Hooper; 02 Dec 2001 at 17:14.
Reply With Quote
  #18  
Old 02 Dec 2001, 17:38
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Originally posted by Hooper
Oh yeah. I have a bunch of custom templates in 2 different styles. It says nothing at all about downloading them. Nor are they there when I check the server for them. I've tried both the News Template set and my Main set. I'll work on this today and post some shots. But never does it say anything about the Custom User Template set.
It did back up all my custom templates. I told it to grab the whole set and it took everything. Weird.
__________________
FWC
F5 Hosting
White Sox Interactive Forums
Reply With Quote
  #19  
Old 02 Dec 2001, 17:41
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Yes it is weird. It didn't back up my Custom User Templates at all.

What I would like to see is


Downloading....Custom User Template Set

Downloading.... News Template Set

and so on.... Only saying default if it is indeed the default template set that is being up or downloaded.

Having 5 sets and always seeing Default is just not going to satisfy my nerves when I am messing with a bunch of highly changed templates and days (scratch days... Try weeks) of hard work.

I need to know what it is doing...
__________________
Cheers,
Hooper

Last edited by Hooper; 02 Dec 2001 at 17:48.
Reply With Quote
  #20  
Old 02 Dec 2001, 17:58
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Hooper, I really have no idea what could be wrong.

Anyway, I re-did the whole way you are shown templates that are exported / imported - you should be satisfied with this version.
They are now displayed in one big table, with [edit] links next to each template(!!!).

Also new, in the select box where you select templates to export / import, original temlpates are colored green, and modified templates are colored blue. How user friendly is that?

Just finishing it off and I'll put the new version up in a bit.
Now that I have the [edit] link, please test it and make sure it really links to the right template!
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #21  
Old 02 Dec 2001, 18:00
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Ok new file is up, download and upload!
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #22  
Old 02 Dec 2001, 18:51
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
I downloaded with Opera and am getting a different file. WinXP IE 6 is screwed on my end.


Ah.... Yes. Much better Chen. I now not only can see what templates are what, they are devided, color coded and EDITABLE?

Wow..... Better than I asked for. I downloaded and verified manually that it was done correctly. I'll work on the import this after noon and post my finds.

Thanks for the update, this is much better.
__________________
Cheers,
Hooper

Last edited by Hooper; 02 Dec 2001 at 18:57.
Reply With Quote
  #23  
Old 02 Dec 2001, 20:31
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Thumbs up

Wow!! I thought the first version was great. This new version is incredible!! Awesome work, Chen.
__________________
FWC
F5 Hosting
White Sox Interactive Forums
Reply With Quote
  #24  
Old 03 Dec 2001, 12:08
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Thanks guys.

I would like a button that will automatically select all custom templates... problem is my Javascript knowledge is very limited so I have no idea where to begin with it.
If anyone can give me a hand it would great.

Maybe add a yes/no button to say "Only export / import custom templates"? Any thoughts?
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #25  
Old 03 Dec 2001, 17:08
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Originally posted by FireFly
Maybe add a yes/no button to say "Only export / import custom templates"? Any thoughts?
Sounds good to me! Who knows javascript around here?
__________________
FWC
F5 Hosting
White Sox Interactive Forums
Reply With Quote
  #26  
Old 03 Dec 2001, 18:27
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
I agree,

It would be a whole lot nicer and more functional to be able to select by grouping and individual files. In other words, instead of backing up and overwriting ALL templates, it would be super to go in and grab templates by sets with a way to include only desired templates. Ex. Custom Templates, User Templates, or what have you. With individual selection next to desired templates to back up. I'm picturing a radio button selection with the heirachy set as within the control panel for grouping. Super if we could see the edit/expand full template scheme with individual file selection. (radio)

At the present if you modify a few templates, you will be backing up all of the templates including the templates that are not modified. If this could be set up in such a way that templates were able to be selected individually ...( say by having a selection next to it) we wouldn't have to over write templates within the folder nor would we have to download all the non modified templates every time.

Chen how difficult would it be to have a "selectable by group or file" type system with a "select all" funtion?

This would give the user the overall protect your files and backup plan, while allowing for the person modifying specific templates to keep on top of things also.

Yes. We need this. Do you really need javascript for this? Why couldnn't we use the vBulletin file that expands the templates for edit? Iwouldn't mind seeing something like the edit template pages for backup. You could expand the groups and choose the templates you wish. We would however need a "Select All" function as well as a "Clear all selections".

Also, if they are going to tag names with hacks around here I would ask that they find the file attatched to my name and remove it. Whatever the heck Imp is.

Thanks
__________________
Cheers,
Hooper

Last edited by Hooper; 03 Dec 2001 at 19:10.
Reply With Quote
  #27  
Old 04 Dec 2001, 13:05
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Hooper, I really appreciate all your help and feedback.
Do you happen to have ICQ? If so, please contact me when you can. My number is listed in my profile.

Another change I plan to do is separating the custom templates and original templates in the selecting box.
Also in that area, I would like to group templates by their groups as they are listed in the Admin CP temlpates page.
I'll mess around with the idea a bit later and see what I can come up with.

Hooper I would really like to address all your ideas, but it's a bit hard for me to express what I think in English.
If we can talk in real time (ICQ or IRC) it would be great.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #28  
Old 04 Dec 2001, 13:25
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
OkeyDokey.

142002484

I'm live.
__________________
Cheers,
Hooper
Reply With Quote
  #29  
Old 29 Dec 2001, 07:17
DelusionalMind's Avatar
DelusionalMind DelusionalMind is offline
 
Join Date: Dec 2001
/me rushes to install

you rule dude!!!
Reply With Quote
  #30  
Old 29 Dec 2001, 13:55
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
This has now been released as TBS (template backup system). I would download the hack from that thread. I don't know how updated this thread is.
__________________
Cheers,
Hooper
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 18:19.

Layout Options | Width: Wide Color: