The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
SQL-querie that forces users to switch skin
Hi guys!
I want to run a MYSQL query that sets the default skin for ALL my users to ID 11 (for example). After that they are still allowed to change later but I want to have all my current users, using a particular skin. How can I do that? |
#2
|
|||
|
|||
The only way is do a while loop.
PHP Code:
|
#3
|
||||
|
||||
Quote:
But I am going to test your code out, thankyou! |
#4
|
|||
|
|||
No need for any coding, just run the following query:
[sql]UPDATE user set styleid = 11;[/sql] @harmor19 Do you have any idea what your code is doing? It will loop through each user registered on your board, then for each user it will set the styleid for all users. This not only don't make sense, it will for sure bring your server on it's knees for some time if you have a big userbase. |
#5
|
|||
|
|||
Well he wanted to set all his user styleid to "11" and that was the only way I knew how.
|
#6
|
||||
|
||||
Quote:
Thx! |
#7
|
|||
|
|||
Quote:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|