Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2011, 12:27 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Reverting the "header" template in the MASTER style kills the template entirely?

I "reverted" the header template of my MASTER style (actually meaning to revert the header of it's child skin). Normally, when I revert templates, it just restores them to a vBulleting default.

This time, however, it completely erased the header template from all of the skins. As in, the template would not even show up in the list.

Is this normal? O_O Also, does anyone running 4.1.1 have a default header template I can borrow in the meantime? ^^;
Reply With Quote
  #2  
Old 01-25-2011, 03:22 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should never, ever, ever, EVER touch the MASTER STYLE! Seriously. That is the default vB style. And yes, just as if you Revert a custom template, it gets deleted, all the templates in the MASTER STYLE are like custom templates in that they have no parent. The MASTER STYLE *is* the parent. You revert that and there is no parent to revert the template to thus it goes bye-bye.

I suggest you upload tools.php to your admincp and reimport the MASTER STYLE.
Reply With Quote
  #3  
Old 01-25-2011, 03:38 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I grabbed the template off my test forum and stuck it back in there.

Honestly, though, doesn't make much sense to me to have it act in that fashion.

---oh wait. It was only visible because I was in Debug mode. :facepalm: :headdesk:

I got it back, just had to add it as a new template and copy the code over (then added the simple two lines I was trying to add in the first place, heh--all that trouble for just appending two variables).

My question now is... would that be taken into account when I upgrade to something newer than 4.1.1 when it comes out? Will it have some sort of problem with it when I upgrade?
Reply With Quote
  #4  
Old 01-25-2011, 04:03 AM
Thunderbird8 Thunderbird8 is offline
 
Join Date: Aug 2009
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Editing the Master Style is generally a bad idea. From what I've seen, if vB updates templates in an upgrade, they are written to the Master Style, so if your edited template is one of the affected ones, your changes will disappear (instead of you being prompted to update your templates). I'm sure there's a good reason it only appears when debug mode is enabled.

Personally, I would only use the Master Style for developing modifications that use their own templates. But I'm not sure if that's a good idea in and of itself.
Reply With Quote
  #5  
Old 01-25-2011, 05:14 AM
Sarteck's Avatar
Sarteck Sarteck is offline
 
Join Date: Mar 2008
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but if I had realized which one I was editing in the first place, I'd not have touched it. XD

See, I have my own MASTER Style that I use as a parent to all my real styles--that's the one I thought I was editing at first. :P When I realized my mistake, well, that's the reason that I tried to Revert it--I thought that Reverting it would change it back to the default.

(With good reasoning, too--that's how templates have always acted for me until now, heh.)

I didn't realize, "Hey, reverting this means it's getting a default value of NOTHING." X3





Quote:
Personally, I would only use the Master Style for developing modifications that use their own templates. But I'm not sure if that's a good idea in and of itself.
Precisely what I use my MASTER (not the vB one) for. Well, that and lots of other stuff that I want all the styles to inherit (minus our Mobile one).


(And yar, I was not aware that it did not appear outside of debug mode, else I'd have been more wary. Though I still probably would have assumed reverting was safe, tbh.)
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 08:49 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03707 seconds
  • Memory Usage 2,200KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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