Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2003, 04:38 AM
FFArmageddon FFArmageddon is offline
 
Join Date: Aug 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing default style

Is their a way to change the default style? I tried to remove them all and then re-add the style I wanted as a new default first but it would not let me remove the current default style.

Please help, thanks in advance


EDIT: I tried to replace the current default style with the new one but I got this:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO templateset (templatesetid,title) VALUES (1,'New Default')
mysql error: Duplicate entry '1' for key 1

mysql error number: 1062

Date: Tuesday 22nd of April 2003 11:41:47 PM
Script: http://www.uff-forums.com/admin/style.php
Referer: http://www.uff-forums.com/admin/styl...tion=download&

"new default" is the title of the template set it used
Reply With Quote
  #2  
Old 04-23-2003, 05:02 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

You cannot remove the default style, there styledid=1 must stay. There isn't even an option in the CP to let that default style be removed.

As for your error, have you installed any hacks that affect the style admin pages etc. at all? I've never experianced that before.
Reply With Quote
  #3  
Old 04-23-2003, 03:16 PM
FFArmageddon FFArmageddon is offline
 
Join Date: Aug 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no I don't believe I have. But you are saying that there is no way to change the default style? Ugh.

I guess I will have the revert the default style to original and re-make the new default style
Reply With Quote
  #4  
Old 04-23-2003, 09:24 PM
FFArmageddon FFArmageddon is offline
 
Join Date: Aug 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uhm ok HUGE problem here

I deleted all styles on my board (somehow the default style also got errased) and re-uploaded one assuming it would be the new default. However the style for loged in users is still the noirmal vb default. But when I log in it is the style I uploaded

this is a huge problem., please help
Reply With Quote
  #5  
Old 04-24-2003, 01:22 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

Is the new style's id 1? That would make it default. It must be styleid=1 to be default.
Reply With Quote
  #6  
Old 04-24-2003, 04:19 AM
FFArmageddon FFArmageddon is offline
 
Join Date: Aug 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do you chnage a style id?
Reply With Quote
  #7  
Old 04-24-2003, 06:23 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

You can't, you need to overide a style which already has the styleid via the Download/Upload part of the Admin CP.

But if you upload something over the default scheme, it should work and become styleid=1.
Reply With Quote
  #8  
Old 04-24-2003, 02:55 PM
FFArmageddon FFArmageddon is offline
 
Join Date: Aug 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uh oh this poses a big problem.

The thing is, I deleted every single style and somehow the default style also got deleted so there were no styles. The default vbulletin style then became the default style. I re-uploaded one style hoping it would be default but it's ID was 16 and the VB stylle was still defaulr.

The VB default style is not listed in my admin cp either. I tried replacing vbulletin.style with what I wanted and that still didn't work...ugh
Reply With Quote
  #9  
Old 04-24-2003, 09:51 PM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Destin, the quickest way to fix this problem is to install my hack:

https://vborg.vbsupport.ru/showthrea...threadid=50491

Just make sure if you need support to ask in that thread and not here
Reply With Quote
  #10  
Old 04-24-2003, 11:36 PM
FFArmageddon FFArmageddon is offline
 
Join Date: Aug 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

omg you are a life saver!

Many thanks to you and tony
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 07: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.04443 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
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)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete