The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Query to remove signatures that have links in them for vb4
I just used this to batch remove signatures that have links in them. 95% of them were spam accounts anyway:
Code:
UPDATE usertextfield SET signature=NULL WHERE signature LIKE '%url%'; This will probably work for vb3 as well, but I haven't tested it. |
Благодарность от: | ||
puertoblack2003 |
#2
|
||||
|
||||
And a slightly more complex query if you want to remove signatures from a specific user group:
Code:
UPDATE usertextfield AS ut INNER JOIN user AS u ON ut.userid = u.userid SET signature=NULL WHERE ut.signature LIKE '%url%' AND u.usergroupid = 2; |
Благодарность от: | ||
tbworld |
#3
|
|||
|
|||
How do I just remove ALL signatures from the Registered usergroup?
|
#4
|
||||
|
||||
Quote:
Code:
UPDATE usertextfield AS ut INNER JOIN user AS u ON ut.userid = u.userid SET signature=NULL WHERE u.usergroupid = 2; I haven't tested this, I would run it as a SELECT statement first to make sure that you are getting the right data, like this: Code:
SELECT * FROM usertextfield AS ut INNER JOIN user AS u ON ut.userid = u.userid WHERE u.usergroupid = 2; |
#5
|
||||
|
||||
Quote:
PHP Code:
But that should work fine if you're using phpmyadmin |
Благодарность от: | ||
ForceHSS |
#7
|
||||
|
||||
Ah, much cleaner. Is signature supposed to be an empty string vs null?
|
#8
|
||||
|
||||
Doesn't matter
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|