Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Template Backup System! Details »
Template Backup System!
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: (2 votes - 5.00 average) Installs: 248
Released: 09 Dec 2001 Last Update: Never Downloads: 11
Not Supported  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace it with this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and add this right after it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and much more. To add your own group, simply add this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • 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
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  
Old 09 Dec 2001, 13:32
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Selecting templates to export...
Attached Images
File Type: gif tbs_selectexport.gif (16.5 KB, 1968 views)
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #3  
Old 09 Dec 2001, 13:32
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
And selecting templates to import...
Attached Images
File Type: gif tbs_selectimport.gif (12.5 KB, 1073 views)
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #4  
Old 09 Dec 2001, 13:32
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
And of course the main intro screen...
Attached Images
File Type: gif tbs_intro.gif (19.0 KB, 1033 views)
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #5  
Old 09 Dec 2001, 14:07
Syphin Syphin is offline
 
Join Date: Oct 2001
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
Reply With Quote
  #6  
Old 09 Dec 2001, 14:16
Syphin Syphin is offline
 
Join Date: Oct 2001
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

Last edited by Syphin; 09 Dec 2001 at 14:20.
Reply With Quote
  #7  
Old 09 Dec 2001, 18:18
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Wow, Chen!! I thought the beta release was great. This is very cool!
__________________
FWC
F5 Hosting
White Sox Interactive Forums
Reply With Quote
  #8  
Old 09 Dec 2001, 18:18
holev holev is offline
 
Join Date: Nov 2001
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?
Reply With Quote
  #9  
Old 09 Dec 2001, 18:25
Mike Gaidin's Avatar
Mike Gaidin Mike Gaidin is offline
 
Join Date: Oct 2001
Real name: Mike
Very sweet FireFly!! Nice hack indeed.
Reply With Quote
  #10  
Old 09 Dec 2001, 18:27
squawell's Avatar
squawell squawell is offline
 
Join Date: Oct 2001
nice hack u do FireFly~~~

it's a pretty good and useful hack
Reply With Quote
  #11  
Old 09 Dec 2001, 20:16
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Real name: Joe
nice work nice work, FireFly deserves title "Hacker That Makes Life Easier"

All in favor use the hack like me
Reply With Quote
  #12  
Old 09 Dec 2001, 20:35
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Originally posted by holev
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?
You can always drop an index.shtml file in the directory or htacess the directory upon completion.

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
Reply With Quote
  #13  
Old 09 Dec 2001, 20:37
Crinos's Avatar
Crinos Crinos is offline
 
Join Date: Nov 2001
Real name: Tolitz Rosel
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
__________________
Open Tech Support
http://www.opentechsupport.net
Reply With Quote
  #14  
Old 11 Dec 2001, 00:44
Axel Foley's Avatar
Axel Foley Axel Foley is offline
 
Join Date: Nov 2001
Typo...

Chen, in tbs.php line 569 there is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Should be:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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...
Reply With Quote
  #15  
Old 11 Dec 2001, 00:47
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
finally

Great job FireFly!
__________________
PaintballCity.com
VB Board of the Month: October
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:35.

Layout Options | Width: Wide Color: