Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2011, 02:10 PM
AF_staff AF_staff is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Overwritten the default master style - how to restore?

I uploaded a style from our test site (Download as Master) and uploaded it in the forum. Now every time I add a new style with no parent, the style is already customized. I think the default vb4 style has been overwritten because the style that was uploaded is Master Style?

Is there any way I can restore the old vb4 style so that when I add a new style with no parent it will look like vb4 default style.

Thanks in advance!
Reply With Quote
  #2  
Old 03-03-2011, 04:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upload tools.php from the do_not_download folder into your admincp. Point your browser to it, enter your customer number, and you may reinstall the master style. Once done, remove tools.php
Reply With Quote
  #3  
Old 03-03-2011, 09:20 PM
AF_staff AF_staff is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne

I got an error after doing that:

<!-- Database error in vBulletin 4.1.0: Invalid SQL: UPDATE vb3_template SET styleid = -10 WHERE styleid = -1 AND (product = 'vbulletin' OR product = ''); MySQL Error : Duplicate entry 'vbcms_searchresult_staticpage--10-template' for key 'title' Error Number : 1062 Request Date : Thursday, March 3rd 2011 @ 05:13:20 PM Error Date : Thursday, March 3rd 2011 @ 05:13:20 PM Script :

Then I can no longer view the forum, it is now blank. >_>
Reply With Quote
  #4  
Old 03-03-2011, 09:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Run repair/optimize on your tables. You can do this from tools.php or from whatever you use to access your database.
Reply With Quote
  #5  
Old 03-07-2011, 10:35 PM
AF_staff AF_staff is offline
 
Join Date: Nov 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

Just posting here to say thank you. Our forum's problem has been solved. Thanks again!~
Reply With Quote
  #6  
Old 03-07-2011, 10:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you got it resolved.
Reply With Quote
  #7  
Old 07-14-2014, 10:19 AM
undertable99's Avatar
undertable99 undertable99 is offline
 
Join Date: Oct 2012
Location: singapore
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks to this thread and its contributors, We just solve our style issues with it. Glad to be a part of VB community!
Reply With Quote
Благодарность от:
ozzy47
  #8  
Old 11-17-2014, 08:23 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will reinstalling the master style using the tools.php file revert any templates on customised styles?
Reply With Quote
  #9  
Old 11-17-2014, 10:03 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IIRC it should not, as those are stored as edited. Best thing would be to do a backup, then reinstall the master style. Just in case something blows up, you can restore the backup.
Reply With Quote
  #10  
Old 11-17-2014, 10:06 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ozzy47 View Post
IIRC it should not, as those are stored as edited. Best thing would be to do a backup, then reinstall the master style. Just in case something blows up, you can restore the backup.
Backup was going to be my first port of call. I have uploaded the tools.php to my admincp (its not admincp as I changed it for security) and when I upload tool.php to the folder and point the browser to it, I just get a blank page.

Does the install folder need to be uploaded too?
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:10 PM.


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.04359 seconds
  • Memory Usage 2,251KB
  • 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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete