![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||
This modification is in the archives.
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:
and replace it with this:
Save admin/index.php and upload back to your server. Now edit cp.css (in the main forums folder). Now here's a file you don't edit often, huh? ![]() Find this:
and add this right after it:
Save cp.css and upload back to your server. And last but not least, download tbs.php (attached to this post) and upload to your admin folder on your server. That's it, installation is done. ![]() [hr=white][/hr] A few notes. You can add new groups for template listing by editing tbs.php. At the top, you will see something like this:
and much more. To add your own group, simply add this:
template_identifier is the beginning of each template in this group, and Group Name 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! ![]() Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Administrative and Maintenance Tools Site Backup (easily backup your forum files) | bairy | vBulletin 3.6 Add-ons | 54 | 06 Jun 2009 16:07 |
Comments |
#2
|
||||
|
||||
Selecting templates to export...
No members have liked this post.
|
#3
|
||||
|
||||
And selecting templates to import...
No members have liked this post.
|
#4
|
||||
|
||||
And of course the main intro screen...
No members have liked this post.
|
#5
|
|||
|
|||
ooo... bootyfull. . . O_O lol
This will be alot of help on my boards... Im ganna go install it now.. Thnx, and good job guys... ![]() -Syphin No members have liked this post.
|
#6
|
|||
|
|||
I get this when i go to the admin index page... =/
Parse error: parse error in /***/***/admin/index.php on line 338 hmm Edit: Nevermind.. works perfectly... ^^ *note to self: Dont code php when havnt slept in over 24 hours* Great work.. ![]() -Syphin No members have liked this post.
Last edited by Syphin; 09 Dec 2001 at 14:20. |
#7
|
||||
|
||||
Wow, Chen!! I thought the beta release was great. This is very cool!
![]() No members have liked this post.
|
#8
|
|||
|
|||
great hack!
but one question.. why save it as .html's on the server? visitors can go around stealing your templates. why not export as a .zip to your pc? No members have liked this post.
|
#9
|
||||
|
||||
Very sweet FireFly!! Nice hack indeed.
![]() No members have liked this post.
|
#10
|
||||
|
||||
nice hack u do FireFly~~~
it's a pretty good and useful hack No members have liked this post.
|
#11
|
||||
|
||||
nice work nice work, FireFly deserves title "Hacker That Makes Life Easier"
All in favor use the hack like me ![]() No members have liked this post.
|
#12
|
||||
|
||||
The directory has to be an open writable directory for obvious reasons. You can output files to .txt or .shtml. .htm etc... and so on. just type the extension you wish to output to. I really don't see this as a problem.
__________________
Cheers, Hooper No members have liked this post.
|
#13
|
||||
|
||||
or you can just rename the folder where you store your templates into something else only "you" know ... it doesn't have to be /templates for the hack to work
![]() No members have liked this post.
|
#14
|
||||||||
|
||||||||
Typo...
Chen, in tbs.php line 569 there is:
Should be:
And I also wanted to ask you a question. If I set NO to "Choose templates to import selectively?" will it import ALL the templates or will it import only modified templates? Could you explain a little bit what Initially Check means? Thanks for the great hack! It saves LOTS of time... ![]() No members have liked this post.
|
#15
|
|||
|
|||
finally
![]() Great job FireFly! No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 02:07.