The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Unique Avatars Details »» | |||||||||||||||||||||||||
*** Staff note: The author of this modification has passed away in a diving accident. We wish his family all strength in dealing with this traggic issue. ***
Have you ever been frustrated by the fact that many of your users choose the same avatars from your pre-defined avatars? Now you can prevent users from selecting avatars that others are already using. Features
Installation (30 seconds)
VBulletin Options -> Unique Avatar Version History 1.0 - Initial release (02.06.2007) 1.1 - 1 minor bugfix (20.01.2008) See screenshots for further details. Show Your Support
|
Comments |
#32
|
|||
|
|||
JordanT - your issue is not the same as Andy's - the error message is totally different.
It looks like you are the first guy to use table prefixes, and I see a small mistake in the query, I'll work on a fix soon, but am still looking at Andy's issue. I'll update this thread with more info soon. |
#33
|
|||
|
|||
I'm also having trouble getting this mod to work. I would appreciate any help you can offer.
PHP version 4.4.7 MySQL version 4.0.23 Code:
Database error in vBulletin 3.6.7: Invalid SQL: SELECT avatar.avatarid, avatar.title, avatar.minimumposts, avatar.avatarpath, avatar.imagecategoryid, avatar.displayorder, count(1) FROM user , avatar WHERE user.avatarid = avatar.avatarid AND avatar.imagecategoryid = 3 AND minimumposts <= 8681 GROUP by avatar.avatarid UNION SELECT avatarid, title, minimumposts, avatarpath, imagecategoryid, displayorder, 0 FROM avatar WHERE avatarid not in (select distinct avatarid from user) AND imagecategoryid = 3 AND minimumposts <= 8681 ORDER by displayorder, title LIMIT 50,10; MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'select distinct avatarid from user) AND imagecateg Error Number : 1064 Date : Tuesday, June 5th 2007 @ 04:04:37 PM Script : http://megomuseum.com/community/profile.php?do=editavatar&categoryid=3&page=6 Referrer : http://megomuseum.com/community/profile.php?do=editavatar&categoryid=3&page=5 IP Address : ***.***.***.*** Username : ABMAC Classname : vb_database |
#34
|
|||
|
|||
Ok, so far we've had two people with error 1064 - reporting a syntax error. This is very strange, since the syntax seems to be correct. Please run a repair / optimise on your database to see if it corrects the issue. To be honest this is a stab in the dark, but I can't think what else would cause this.
The report of error 1146 is a bug which affects people with table prefixes. I've made some changes, but waiting for the guy who reported it to get back to me so I can get him to test it. ABMAC - please report back after running a repair/optimise |
#35
|
|||
|
|||
ABMAC - apparently subqueries (which this one is using) are only available in mysql 4.1 and up. You are running 4.0 - would you consider upgrading? Andy is running 4.1 and having the same issue, but the cause may be different.
|
#36
|
|||
|
|||
Ok, I've updated the XML file - it was not handling situations where people are using table prefixes. This will resolve JordanT's issue, but not the issue seen by ABMAC or Andy.
|
#37
|
||||
|
||||
just like to say thanks for your work trying to resole this matter
|
#38
|
||||
|
||||
ok installed on another site and get the same
as soon as i enable Force unique avatars? to yes i get the error runs fine as in the screen shot |
#39
|
|||
|
|||
Thanks, mfyvie, I'll see about getting MySQL 4.1 installed. Should I still run repair/optimise on my database? My board is fairly new and shouldn't have any problems yet.
|
#40
|
|||
|
|||
You don't have to, but it probably wouldn't hurt. I wasn't able to figure out Andy's issue, but he has no control over his mysql settings so we were limited in what we could do. Your issue should be fixed by an upgrade though.
I'm going to look at re-writing the query so that people with < mysql 4.1 can also use this mod, but it's not simple. |
#41
|
|||
|
|||
Thanks for fixing my problem. Much appreciated!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|