The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
ok, couldn't get the e-mail working but by trial and error I've traced the problem to the first SQL query. If I put it into plain SQL like...
Code:
UPDATE user AS user SET customtitle = 0 WHERE customtitle = 2 AND user.usergroupid IN (SELECT usergroupid FROM usergroup where (genericpermissions & 2048) = 0) Quote:
Does that give any clues? |
#12
|
|||
|
|||
Hmm running MySQL 4.1.8nt myself, but the functions used in there are nothing new i think. I copied your sql statement back into my sql manageer and it worked like a charm. Strange.
Hmm MySQL documentation not clear on this, but it might be that the IN statement not work like expected in your version of mysql (http://dev.mysql.com/doc/mysql/en/Co...s.html#IDX1235) Try changing the line: PHP Code:
PHP Code:
http://dev.mysql.com/doc/mysql/en/AN...ubqueries.html |
#13
|
|||
|
|||
Still doesn't work mate, says there's an error near "(SELECT usergroup.usergroupid ".
I can see what the SQL is trying to do, is there a way to move the logic out into the PHP maybe? |
#14
|
|||
|
|||
Give me a litle time, will try to rewrite it tonight (CET)
|
#15
|
|||
|
|||
Ok a new attempt. Should work on all mySQL version now.
Replace the file and try again. |
#16
|
|||
|
|||
Mate you're a star, that worked perfectly!
Cheers! :banana: |
#17
|
|||
|
|||
Thanks for the feedback.
Since more people seem to be looking for this, i might change it to include also membergroups and release it as a mini mod. |
#18
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|