Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Programming Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Save Your Templates
mashby's Avatar
mashby
Join Date: Jan 2002
Posts: 736

Married, no kids yet, born in Louisiana and I'm hooked on the television show "24."

Nashville, TN - USA
Show Printable Version Email this Page Subscription
mashby mashby is offline 09-09-2002, 10:00 PM

Always save your templates before edit them. vBulletin always allow you to restore the original template, but what if you make an error on a template that you've heavily customized?

If you're editing your templates with an external editor, then this makes things easier. Personally, I save every template is a special folder on my hard drive. I usually keep the last two versions of each template just in case. I simply save them by their template name. So, my postbit is saved as postbit.html on my hard drive.

Although this site does not support, or discuss hacks, another option is to use Firefly's Hack Template Backup System (TBS) [link]. If you have questions on how to install, or use this hack, please visit vBulletin.org.

Regardless of which method you use, saving your template files can be a real lifesaver should you make a mistake. And mistakes DO happen.
Reply With Quote
  #2  
Old 09-10-2002, 10:34 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I always make backups or paste what code I edit on a notepad and edit it then so if I make my mistake I can restore the original code block. It's very important to do that.
Reply With Quote
  #3  
Old 09-11-2002, 07:53 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I only normally edit templates when I know that I can fix errors. It's normally not too hard, although If I'm unsure, I just paste the contents into notepad and carry on editing
Reply With Quote
  #4  
Old 09-12-2002, 07:12 AM
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I learneded the hard way.
Reply With Quote
  #5  
Old 10-01-2002, 02:16 AM
imported_PiotrasG imported_PiotrasG is offline
 
Join Date: Sep 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey you not the only one.... I learned the hard way to. But I got this great page I always go back find what i want and fix it back.
Great job guys
Reply With Quote
  #6  
Old 10-01-2002, 04:33 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's just obvious to make backups. I learnt after reading a mod disclaimer. So reading a few tips can save you.
Reply With Quote
  #7  
Old 10-01-2002, 06:38 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Bad Bunny
Yeah, I learneded the hard way.
ditto.
Reply With Quote
  #8  
Old 03-02-2005, 07:03 PM
zeeko1212 zeeko1212 is offline
 
Join Date: Mar 2005
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, good Tip! Thanx
Reply With Quote
  #9  
Old 03-09-2005, 06:37 AM
tgillespie's Avatar
tgillespie tgillespie is offline
 
Join Date: Jul 2002
Location: CO
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used notepad to back up code bits for a while but found it way to pain staking after a while. When I got to work on a style, I create a child style, and if the changes work, I delete the parent and use the child. If they don't work, I use the parent. That way I have a current version and don't have to worry about a time frame of notepad edits.
Reply With Quote
  #10  
Old 03-11-2005, 02:44 PM
dwh's Avatar
dwh dwh is offline
 
Join Date: Feb 2002
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.vbulletin.com/forum/showthread.php?t=129871" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=129871</a>

Especially post11
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04331 seconds
  • Memory Usage 2,281KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete