View Full Version : Mini Mods - Default Avatar
GeekyDesigns
09-12-2009, 10:00 PM
This plugin will make a default avatar show for all users if the user does not have an avatar. This works in the postbit, profiles, and members list. It uses the image "images/misc/unknown.gif" by default, which is used in several locations for the same purpose, and works on vB 3.7+ and vB4. This is editable in the Admin CP under vBulletin Options -> User Picture Options -> Default Avatar Image Location.
Updates:
1.0 - 3.5 release by Zachery - unsupported.
2.0 - Initial 3.7+ release.
2.0.1 - Slight bugfix relating to users disabling avatar display. This setting does not affect avatars on the profile or memebers list by default, so this addon should not take it into account for those pages.
2.0.2 - Added a setting to control the location of the image. See the updated description for details.
This works for vBulletin 4.0 as well as 3.7+. vB4 thread located here (https://vborg.vbsupport.ru/showthread.php?t=227947).
Link14716
09-13-2009, 06:35 AM
I suppose I'll snag the first reply. It could come in handy someday down the road.
So along with myself there are four other excited members...
YEAH!!! WE RULE!!!!
Zachery
09-13-2009, 07:02 AM
So along with myself there are four other excited members...
YEAH!!! WE RULE!!!!
I totally cannot tell if you're being sarcastic or not.
It's a Good Mod and I use it.
This is good and I use it on every site I design. Good job!
There you go. Thank you for your efforts. Go Zachery! (I said it!)
Robru
09-13-2009, 07:41 AM
Thank you for this revison :)
euantor
09-13-2009, 08:29 AM
Thanks or this :)
MagicThemeParks
09-13-2009, 11:21 AM
On a past default avatar mod that I used it didn't include all locations. Does this one cover all locations that the avatars are used? If it does, this rock! :)
Zachery
09-13-2009, 11:37 AM
On a past default avatar mod that I used it didn't include all locations. Does this one cover all locations that the avatars are used? If it does, this rock! :)
Yes, members list, postbit, profile.
Hasann
09-13-2009, 01:21 PM
Im waiting long a while for this :D
Kolbi
09-13-2009, 05:23 PM
There are the advantages towards ZH - No avatars (https://vborg.vbsupport.ru/showthread.php?t=165563)?
Link14716
09-13-2009, 06:59 PM
There are the advantages towards ZH - No avatars (https://vborg.vbsupport.ru/showthread.php?t=165563)?
Works on profile page, works on the members list without forcing it to display avatars when you disabled them. I'd say this "disadvantage" if there would be one is I did not add a setting to change the path of the file - mainly because unknown.gif is already used elsewhere for the same purpose.
This is basically just an upgrade and bug-fix of Zachery's version that I put together and made work correctly.
Shaheen
09-13-2009, 07:48 PM
Thanks :) lucky got a space on first page :D
Link14716
09-13-2009, 09:58 PM
I just did a slight update to this plugin:
"2.0.1 - Slight bugfix relating to users disabling avatar display. This setting does not affect avatars on the profile or memebers list by default, so this addon should not take it into account for those pages."
Not too large of a bug, but something that just wasn't consistent. Just re-upload the new product.xml and allow overwrite to upgrade.
princeedward
09-14-2009, 08:53 AM
do we have options to disable this or not? anyway thanks for this great and useful mod...;)
MagicThemeParks
09-14-2009, 09:56 AM
Works great! Thanks! :up:
Link14716
09-14-2009, 10:23 AM
do we have options to disable this or not? anyway thanks for this great and useful mod...;)
Just disable the product in the product manager. :)
Llandy
09-14-2009, 10:37 AM
Very nice, works like a charm.
segwayon
09-14-2009, 11:01 AM
We had been using an earlier default avatar mod which as someone said only uses one avatar location. Before uploading your XML, I edited it to point to our own custom default avatar, and it seems to be working fine. There ought not be any problems pointing to a different image file, no?
Kolbi
09-14-2009, 11:05 AM
Does this hack need many ressources?
Link14716
09-14-2009, 11:50 AM
We had been using an earlier default avatar mod which as someone said only uses one avatar location. Before uploading your XML, I edited it to point to our own custom default avatar, and it seems to be working fine. There ought not be any problems pointing to a different image file, no?
Nope, just remember that you'd have to do it again if there was another update released. Of course, this is one of those addons small enough that I can say that I am confident that it won't need another release.
Does this hack need many ressources?
Nope. Very simple plugins of 3-4 lines each. Just simple conditional statements.
Michael.A
09-14-2009, 04:55 PM
thank you..
---------- installed
---------- Nominate
----------- Rated 5 stars
SᴩiDᴇЯ
09-15-2009, 11:09 PM
Can this be modified so i can use .png files instead of .gif files?
I have made a custom unknown avatar but it has to be in png format, due to the rarity of my skin, as it is the only one of it's kind in the world.........:D
Link14716
09-16-2009, 12:16 AM
I just pushed out another update to this - 2.0.2: "Added a setting to control the location of the image. See the updated description for details."
The option in question is located in the Admin CP under vBulletin Options -> User Picture Options -> Default Avatar Image Location. If you want to change it from the default image to something else, that will be where you should do it.
Link14716
09-16-2009, 12:16 AM
Can this be modified so i can use .png files instead of .gif files?
I have made a custom unknown avatar but it has to be in png format, due to the rarity of my skin, as it is the only one of it's kind in the world.........:D
As of the latest update that I just uploaded, yes. See the above post.
SᴩiDᴇЯ
09-16-2009, 01:41 AM
Thank you works great 100%.
segwayon
09-16-2009, 03:16 AM
It updated like a charm. I wasn't sure how the default icon location would work, so before uploading and installing the 2.02 update I edited the icon file name and path to match my criteria. I like that it now lists the option in the AdminCP for the default icon, so it can easily be changed at will. Thanks!
TimberFloorAu
09-17-2009, 01:58 AM
Superb :up:
princeedward
09-17-2009, 06:23 AM
Link14716 ...Hi! and how about creating same like this mod but for our Profile Picture Image now...coz' some members also don't have profile picture image and now nothing show to our Profile Page....
thanks for the update and best regards
:p:up:
ChopSuey
09-17-2009, 06:29 AM
Link14716 ...Hi! and how about creating same like this mod but for our Profile image now...coz' some members also don't have profile image and now nothing show to our Profile Page....
thanks for the update and best regards
:p:up:
Maybe the ZH - No Avatar works different than this.
It shows on most pages i believe.
Link14716
09-17-2009, 08:13 AM
Maybe the ZH - No Avatar works different than this.
It shows on most pages i believe.
This works on all pages that "ZH - No Avatar" works on plus member profiles.
It doesn't work with profile pictures, but that's not the point of the product. Not a bad idea for consideration for either an option for this product or another mini product.
princeedward
09-17-2009, 09:09 AM
Maybe the ZH - No Avatar works different than this.
It shows on most pages i believe.sorry for misunderstanding but i mean the profile picture image here...and not the avatar
:p
Zachery
09-17-2009, 04:52 PM
Maybe the ZH - No Avatar works different than this.
It shows on most pages i believe.
We (Geeky Designs) are going though our old addons and updating them as we think is nessary. Nothing more.
Link14716
09-17-2009, 09:45 PM
We (Geeky Designs) are going though our old addons and updating them as we think is nessary. Nothing more.
That's not what he was talking about, Zak. :p
Zachery
09-18-2009, 03:25 PM
That's not what he was talking about, Zak. :p
Silly me then.
princeedward
09-19-2009, 01:55 PM
just like i asked before...maybe you genious guys from GeekyDesigns can make another mod same like this for our Profile Picture..if it's possible?
btw..thanks guys once again for this wonderful mod...
:p:up:
adamdavidconn
09-19-2009, 02:28 PM
Hello
I really like this mod, but I have 1 request.
Would it be possible to be able to define which usergroups (through usergroup id's i guess) the default avatar works with. Such as only allowing the default avatr to work with usergroups 1,2,3 etc.
djwins
09-21-2009, 05:36 AM
Suggestion: If a user has no avatar (and is displaying the default avatar), when he clicks on his own avatar, it should take him to profile.php?do=editavatar
MagicThemeParks
09-21-2009, 10:29 AM
djwins, I was going to suggest just the same thing! Would be a great addition! :)
jimsflies
09-29-2009, 07:11 PM
It would be nice if you could specify different default avatars by user group. Are there any mods that currently do that?
-=Leb=-
10-01-2009, 09:59 PM
good job :)
yamahapaul
10-01-2009, 11:43 PM
very cool mod :up:
princeedward
10-02-2009, 08:19 AM
:rolleyes: hmmm...i guess nobody want from developer and 2 Supporters / CoAuthors to reply all questions and suggestions here...right?
i wonder whats the real meaning exactly of Supported?
just askin ...
:p
Zachery
10-03-2009, 11:43 AM
:rolleyes: hmmm...i guess nobody want from developer and 2 Supporters / CoAuthors to reply all questions and suggestions here...right?
i wonder whats the real meaning exactly of Supported?
just askin ...
:p
Is it broken or not working as described? If so we'll provide support.
helltonic
10-04-2009, 04:57 AM
Thanks
mgcom
10-05-2009, 09:40 PM
works fine but not on the arcade ?
Any help
cheers
Link14716
10-05-2009, 11:28 PM
works fine but not on the arcade ?
Any help
cheers
The arcade would be out of the scope for this product unfortunately. I haven't looked at the arcade's code to know if it has hooks or not in the proper places, but it'd more than likely take a code modification to the arcade to change its behavior.
realdx
10-08-2009, 10:34 PM
would be nice having a random avatar assigned to every new user.. :)
imported_silkroad
10-12-2009, 01:46 PM
This would be a much more useful mod if we could specify default avatars for various user groups. One default avatar for the entire site is not very useful, IMHO.
Looking forward to a future version adds more value.
DeanLag
10-19-2009, 04:21 PM
I have installed add-on Avatar On Navbar (https://vborg.vbsupport.ru/showthread.php?p=1902116)and this mod at www.mysite.com (http://www.mysite.com) and it was working fine.
Now I have installed vBadvanced and my vBulletin forum has been moved to www.mysite.com/forums (http://www.mysite.com/forums)..................... Now I am having a problem.
i.e;
Image Source URL has been changes to the following and I dont know how to fix it as I don't have much knowledge of coding, Please help.
http://mysite.com/forums/http://mysite.com/forums/images/misc/noavatar.gif
Admin CP under vBulletin Options -> User Picture Options -> Default Avatar Image Location.
Replace it with images/misc/noavatar.gif. If its already that, change it to forums/images/misc/noavatar.gif
DeanLag
10-19-2009, 11:05 PM
Copy paste what you put in the field.
matthewhotdude
10-20-2009, 07:27 PM
This would be a great mod, if it would randomize the default avatar
Waqas Anwar
10-23-2009, 10:20 AM
Yah it is a great add-on :up::up:
anicetune
10-25-2009, 10:14 PM
I've downloaded the XML file, but I'm not sure where in my vBulletin database to put it?
MagicThemeParks
11-01-2009, 02:30 PM
I've been using this great mod, but I noticed that the default avatar is not resizing correctly in the profiles (see "Friends" block on right in link below). How can I get this sized correctly?
Magic Kingdom Forum Profile (http://www.magicthemeparks.com/mk/forum/member.php?u=1)
Link14716
11-01-2009, 09:31 PM
The default avatar on the friend's block is actually not done by this addon, it's done by default. Disable the product and notice that it'll still show there. Not sure how to get it to resize it properly, but that's out of the scope of this addon.
One way I can think of is to resize the current unknown.gif, and then reupload the full-sized version as a different name. Then, change the "default avatar location" setting provided by this product.
MagicThemeParks
11-01-2009, 09:43 PM
I noticed earlier when a member who hadn't selected their avatar placed a comment that the default avatar was again larger than the 'normal' after installing this mod. So, both the friend block and the 'visitor message' are not within the scope of this addon.
I'll attempt your fix as long as everything will work for me as it should :)
Link14716
11-16-2009, 12:14 AM
Downloaded updated to include the vB4 thread as the "homepage" of the product and added a version check URL. Nothing else changed. The same product will function on both vB3 and vB4.
segwayon
11-16-2009, 02:06 AM
I've downloaded the XML file, but I'm not sure where in my vBulletin database to put it?
The product XML files for these mods are usually uploaded via the AdminCP's "Plugins and Products" / "Manage Products" / "Add-Import Product" feature. Hasn't anyone assisted you with this yet?
yamahapaul
11-16-2009, 06:42 PM
This would be a much more useful mod if we could specify default avatars for various user groups. One default avatar for the entire site is not very useful, IMHO.
I prefer this myself, as it encourages users to be individual, unique and to personalise their avatar..... just an opinion..:o
LB1981
11-16-2009, 07:04 PM
Thanks for this mod
Palace55
11-24-2009, 03:50 PM
Thanks for this modification, it has been installed on my forums! :)
netcommander
12-07-2009, 01:26 PM
Hello
i've used this hack and i've uninstall via admincp and i've upgrade 4.0 and i see this error
Database error in vBulletin 4.0.0 Beta 5:
Invalid SQL:
SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,
icon.title as icontitle, icon.iconpath,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
editlog.reason AS edit_reason, editlog.hashistory,
postparsed.pagetext_html, postparsed.hasimages,
sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
,blog_user.entries
FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 19 AND postparsed.languageid = 11)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 19 AND sigparsed.languageid = 11)
LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)
LEFT JOIN blog_user AS blog_user ON (blog_user.bloguserid = post.userid)
WHERE post.postid IN ()
ORDER BY post.dateline;
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 ')
ORDER BY post.dateline' at line 29
Error Number : 1064
Request Date : Sunday, December 6th 2009 @ 09:40:16 PM
Error Date : Sunday, December 6th 2009 @ 09:40:16 PM
Script : http://www.xxxxx.com/forum/showthread.php/108585-luetfen-yardym-fx5500
Referrer :
IP Address : 66.249.xx.xx
Username :Guest
Classname : vB_Database
MySQL Version :
how can I fix this problem
Link14716
12-07-2009, 02:35 PM
Hello
i've used this hack and i've uninstall via admincp and i've upgrade 4.0 and i see this error
how can I fix this problem
This hack could not cause that error. I haven't seen that error before.
If you uninstalled it, it certainly isn't running anymore, and it makes no database changes. Furthermore, even if you kept it installed, it works just the same on vB4 as it does on vB3.
I don't know the cause of your error or how to resolve it, only that it isn't caused by this mod.
Zachery
12-07-2009, 11:48 PM
Taht error message is from a thread that has no data. You've run impex.
netcommander
12-08-2009, 08:05 AM
hmm how can fix this error Zachery ?
what can I do with impex ?
Thanks for all answer
SİMAR
12-16-2009, 01:00 PM
thanks man
carolc
01-30-2010, 10:11 PM
This works very nicely, thanks.
Is it possible for you to get this to work with the PhotoPost Gallery? If not, can you PM me an example of the conditional statements you used and I can see if I can figure out something similar to add to my gallery?
Thanks
xDazedx
02-03-2010, 04:23 PM
Thanks for the great Mod
Halfhidden
03-24-2010, 10:34 AM
This works very nicely, thanks.
Is it possible for you to get this to work with the PhotoPost Gallery? If not, can you PM me an example of the conditional statements you used and I can see if I can figure out something similar to add to my gallery?
Thanks
I would also be delighted to learn how Photopost could also benefit from this mod.
As it is at the moment those without avatars in the forum have a standard one but when in Photopost it vanishes.
jimsflies
04-28-2010, 02:01 AM
...
ahheng
04-30-2010, 12:52 PM
Thanks for this great mod. installed. :)
Zachery
07-09-2010, 04:59 AM
I would also be delighted to learn how Photopost could also benefit from this mod.
As it is at the moment those without avatars in the forum have a standard one but when in Photopost it vanishes.
None of us (geekydesigns) people have access to photopost. Personally not a big fan of their licensing model, so unfortunately I do not forsee any intergration on that level.
Halfhidden
07-09-2010, 11:57 AM
None of us (geekydesigns) people have access to photopost. Personally not a big fan of their licensing model, so unfortunately I do not forsee any intergration on that level.
I understand, in fact I've heard pretty much the same response from a lot of big scripting companies. Thanks anyway :cool:
Zachery
07-09-2010, 11:37 PM
I understand, in fact I've heard pretty much the same response from a lot of big scripting companies. Thanks anyway :cool:
I'm sure if you go over to photoposts website you can find my posts on the subject. Best of luck!
odln018
07-12-2010, 01:17 PM
Is there a way you can set a default avatar for a specific group? I'm using 3.8.x
Zachery
07-15-2010, 07:48 PM
NOt without modifications, right now this is pretty much all or nothing.
pein87
08-04-2010, 05:45 AM
worked perfectly
thanks + installed on narutosoul.com
Blueracer66
08-10-2010, 06:10 PM
Thanks for this! This is the second mod I have installed since I started using vBulletin (again)! Installed!
likaweb
11-17-2010, 12:06 AM
Thanks:
Perfect in Vbulletin 3.8.6
ComoEstaEso-com
02-23-2011, 11:46 PM
Quick and easy installation... much better than before.
THANK YOU! :D
bigmonay2k
02-24-2011, 02:34 PM
thanks mate
Derwin
04-24-2011, 03:09 PM
GREAT MOD! I just installed this in vb 4.x, and it works like a charm.
Thank you!
ricardoNJ
05-31-2012, 02:54 AM
Nice.
irfan72
07-02-2012, 09:01 AM
Thanks for sharing...
i like it :)
sofrehkhune
08-01-2013, 01:47 AM
thank's man 4 this owesome and usefull mod
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.