Version: , by Admin (Coder)
Developer Last Online: Nov 2024
Version: 2.2.x
Rating:
Released: 12-08-2001
Last Update: Never
Installs: 248
No support by the author.
Hi everyone.
Here's my newest hack, called Template Backup System (TBS).
This is a very powerful tool for backing up and restoring your templates, especially good for upgrades.
I know you can do this using vBulletin's buil in style manager, but the beauty in this hack is that it exports only templates, and further more - they are saved to individual files in a folder you choose.
Why you ask? This could help a lot when upgrading to a new version of vBulletin. Just like you can compare files using programs such as Araxis Merge or Beyone Compare, you can now also compare templates, and easily keep track of changes that were done between versions.
After you save all changes to the template files, you use this script again only this time in the opposite directions - restoring the templates back into the system.
[hr=white][/hr]
This hack was in testing process for quite some time now, over a week and a half actually.
It has been tested extensively by the magnificent Hooper, and I truly believe it's 99% bug-free.
Most of the features in the hack are actually his ideas, so thanks a lot Rick!
[hr=white][/hr]
Before I continue, I need to say the expanding / collapsing feature will only work on Internet Explorer. It was only tested on it really, but I think the style.display thing is only supported by it.
Anyway, let's install this baby.
First of all, we need to edit admin/index.php a little bit.
Find this:
[high]template_identifier[/high] is the beginning of each template in this group, and [high]Group Name[/high] is the name of this group.
When saying "Using this requires a minimum amount of RAM." I am not kidding. If you don't have enough memory your browser will simply crash when clicking the Check All box. Trust me.
Make sure the folder you are saving templates into is CHMODed 0777, or PHP will not be able to create files in it. Also, the folder is a relative path to the admin folder, not the forums folder!
[hr=white][/hr]
That's all I have to say.
Feedback and feature requests are welcomed as always!
Have fun!
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I used your version, and it fixed the problems I had, but I noticed some little glitches on template-colors in the list (they differed from the legenda) and some textual inaccuracies. I also changed the default file extension to .htt (as suggested by Bira long ago). I've attached this final version to this post.
spoke too soon, i fixed it, it was supposed to be in a folder called templates, well anyway i did it and click import, click expand, nothing there?
how come, all the files are uplaoded
please i need this quick
cheerz
The script must be located in the admin directory (i.e. the same spot as config.php and all the other admin files). There must be a directory for the script to read/write files from/to named 'templates' (or whatever is entered in the form). On a Unix file system server, that directory must have writable permission by the webserver (a chmod 777 does the trick).
So basic file structure is this:
forums/admin/config.php
forums/admin/tbs.php
forums/admin/templates/[templates stored here]
And I know this is a rather long thread. But when the original author does not support his/her hack, you really should read the entire thread (a good idea anyway). This has been posted before and discussed as well.
wow. very, very much wow. im amazed, --this is exactly what i am looking for..
story time:
having 5 different styles (soon to be 6) i got into the habit of not updating the styles that were no longer new....so consequently, there were always a slew of styles that were not as good....when it came time to update all of them, downloading and uploading full styles led to problems....so...i turned to here, and look what i found....amazing...excellent--very wow, thats all i can say. thanks firefly a definate "install" for this.
"Make sure the folder you are saving templates into is CHMODed 0777, or PHP will not be able to create files in it. Also, the folder is a relative path to the admin folder, not the forums folder!"
@phd - wha?? if you mean making your own folder, that's what you so'pose to do, go into the admin folder (/forumroot/admin/) and make a new folder called templates (even tho you could name it something else if you please, but nameing it templates is more easyer) and then CHMOD it 777... doing that is easy, just right click on it and choosed either (depends on what FTP program your using) CHMOD or Properties or if your FTP program has a command line, type in SITE CHMOD templates 0777 (I think that's the code, it's been awhile) and that'll make the folder writeable, meaning that a script can write in that folder.