View Full Version : Default Avatar - How and help
adamdavidconn
09-19-2009, 01:49 PM
Hello.
I would like to implement defult avatars (so when user has no avatar, image x is used). My requirements was it also to work with only some usergroups.
I read this (http://www.vbulletin.com/forum/showthread.php?t=106143) tutorial, by a Vbull team member. I am using postbit, and when I do so, this happens:
http://img514.imageshack.us/img514/1663/problemw.jpg
The RBC logo should be to the left of the Username. How would I go around correcting this.
Thanks
Adam
Lynne
09-19-2009, 03:15 PM
Take a look at the code for the default postbit and see how they position the avatar and then do the same thing with the default avatar.
adamdavidconn
09-22-2009, 08:00 PM
Thanks, I now have it configured correctly.
Now, I am asking another question. How would I restrict the default avatar to certain usergroups (ie Usergroups 2,57 have a default avatar if no avatar, the others dont)
I tried adding <if condition="is_member_of($vbulletin->userinfo, 2, 5, 7)"> before the else avatar code, and </if> after.
The problem is that this dose not restrict it to those usergroups, rather usergroups 2,5,7 are the only ones who see default avatars.
How would I implement what I want (avatars only to usergroups 2,5,7)
theFM
09-22-2009, 08:57 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=223078" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=223078</a>
here is a mod which can be of any help to you
Lynne
09-22-2009, 09:11 PM
If it's in the postbit, and you are talking about the usergroup of the person who made the post (as opposed to the usergroup of the person viewing the posts), then you would do:
<if condition="is_member_of($post, 2, 5, 7)">
If that doesn't work, try $post['usergroupid'])
adamdavidconn
09-22-2009, 09:12 PM
THank you
But I have already installed and tried that mod. (its currently disabled
The reason I am not using it is because it does not have a usergroup feature (such as only working on x usergroups)
I tried the code version, becasue I though the if condition would work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.