The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Query Question
This time, I need a query to change everyone's "cookieuser" field to 1. Many are set to 0, which disables their ability to join my chatroom.
|
#2
|
||||
|
||||
Code:
ALTER TABLE `user` CHANGE `cookieuser` `cookieuser` SMALLINT(6) DEFAULT '1' NOT NULL; Code:
UPDATE `user` SET `cookieuser` = '1' WHERE `cookieuser` = '0'; Enjoy )O( Cloudrunner )O( |
#3
|
||||
|
||||
Many thanks for your assistance. Also, do you know what exactly this column for? I'm not sure what the cookieuser thing is all about. Will there a problem if I were to alter the table like this?
|
#4
|
||||
|
||||
This column is to set whether the users are using cookies to browse the board or not.
They can change that column in their user CP if they so choose. |
#5
|
|||
|
|||
Be sure to remove it from the user CP and registration templates, too (or make it a hidden field).
|
#6
|
||||
|
||||
Good idea.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|