vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Reset Style for all users? (https://vborg.vbsupport.ru/showthread.php?t=44074)

SiXXGuNNZ 09-29-2002 08:50 AM

Reset Style for all users?
 
I would like to know if there is a way, let's say, to change all the users style back to default. I use the what style's we are using hack, and reuploaded my styles. now it only shows the name of the theme I selected. I am wondering if I can run a query maybe to reset everyone back to default, and then let them choose a diff style so all users/style count is accounted for.

Dean C 09-29-2002 10:16 AM

run this query:

[sql]
UPDATE user SET styleid=x
[/sql]

where "x" is the styleid of the style your want to be assigned to all the users...

__________

*waits for the you need to go here to be a fully licensed member thingy from a mod lol*

- miSt

SiXXGuNNZ 09-29-2002 04:31 PM

thank you, worked like a charm :D

Dean C 09-29-2002 05:32 PM

your welcome :D

- miSt

yzztik 03-21-2003 06:22 PM

What if I deleted some styles but the database still says they are using that styleid even though it does not exist. It shows up in the what styles they are using as blank even though I think it automatically selects the next one for them.

What if I want to run a query to change every user in the db who has styleid x to styleid y?

filburt1 03-21-2003 06:31 PM

Quote:

09-29-02 at 06:16 AM Mist said this in Post #2
run this query:

[sql]
UPDATE user SET styleid=x
[/sql]

where "x" is the styleid of the style your want to be assigned to all the users...

__________

*waits for the you need to go here to be a fully licensed member thingy from a mod lol*

- miSt

He's licensed.

Some members might have to log out and log back in if they were cookied wiyh a styleid.

Chris M 03-21-2003 06:34 PM

For the query anyway, you might try (not too sure):

[sql]UPDATE user SET styleid=x WHERE styleid=y[/sql]
x=new styleid
y=old styleid

:)

Satan

Dean C 03-21-2003 07:01 PM

Look at the date of the post filburt ;)

filburt1 03-21-2003 07:21 PM

It's still something people need to know...sans the license of course :p

Dean C 03-22-2003 10:09 AM

Of course ;)

Smoothie 03-22-2003 06:35 PM

Quote:

Yesterday at 03:22 PM yzztik said this in Post #5
What if I deleted some styles but the database still says they are using that styleid even though it does not exist. It shows up in the what styles they are using as blank even though I think it automatically selects the next one for them.

What if I want to run a query to change every user in the db who has styleid x to styleid y?

I have the same problem, but how would you know what styles they were using if they were deleted?

yzztik 03-22-2003 06:53 PM

what I did was looked up the styleid for each of the remaining styles and note those down.

Then I used this hack [Who's Using Wich Style On One Page] to see which styles were being used and put the styleid number next to each of the ones that I knew. Since they are listed in numerical order, I then search the user table in phpmyadmin for the missing styles until I matched up each of the missing ones with a styleid. Then I ran the query to change those to the default.

Smoothie 03-22-2003 07:00 PM

Hell, too much work for me. I just updated all members to use styleid=1.

yzztik 03-22-2003 07:07 PM

I'd probably have a riot on my hands if I did that, so I took a bit of time to do this. It really didnt take that long. It was easier than it sounds.

Smoothie 03-22-2003 07:12 PM

Quote:

I'd probably have a riot on my hands if I did that
members on my board will get over it.


All times are GMT. The time now is 06:45 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.01279 seconds
  • Memory Usage 1,742KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete