vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Changing default style (https://vborg.vbsupport.ru/showthread.php?t=86811)

FFArmageddon 04-23-2003 04:38 AM

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

Tony G 04-23-2003 05:02 AM

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.

FFArmageddon 04-23-2003 03:16 PM

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

FFArmageddon 04-23-2003 09:24 PM

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

Tony G 04-24-2003 01:22 AM

Is the new style's id 1? That would make it default. It must be styleid=1 to be default.

FFArmageddon 04-24-2003 04:19 AM

how do you chnage a style id?

Tony G 04-24-2003 06:23 AM

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.

FFArmageddon 04-24-2003 02:55 PM

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

Brad 04-24-2003 09:51 PM

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 :)

FFArmageddon 04-24-2003 11:36 PM

omg you are a life saver!

Many thanks to you and tony :)


All times are GMT. The time now is 09:20 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.01124 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete