The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Avatars for usergroups
I don't know if this exists, but I would really like to know if I can make avatars for specific usergroups only. The problem is that with my paid upgraded users, they are able to have an avatar as part of that upgrade, but when the subscription runs out, we have to manually remove avatars, which is a pain with so many upgraded members. So does something exist somewhere? If not, it would be great in the permissions to add a field 'Can display avatars'
I have the upload an avatar option off for all usergroups, because we actually make the avatars for our members and then upload them ourselves. I'm using the latest version of VB. |
#2
|
||||
|
||||
1. Without going into vB's avatar permissions and Usergroup avatar option, I'd create a custom field that is private, only the Admin can see and edit. This custom field is single text box style and named "Custom Avatar". With a conditional I'll set the Usergroup with avatar permissions to override all displayes of avatars, only available for that group. So when the subscriptions ends and the user goes back to a Usergroup without avatar permission the avatar will not display. Though, the text box field will still have the link to the avatar but it won't matter since it is hidden from their profile options in User CP.
The conditional in the postbit or postbit_legacy should be like: Code:
<if condition="is_member_of($bbuserinfo, x) AND $post['fieldy']"> $post['fieldy'] <else /></if> Where y is replace it with the custom field ID. ------------------------ 2. Or if you want to use vB's default avatar options you can try: In postbit or postbit_legacy find: Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Code:
<if condition="is_member_of($bbuserinfo, x) AND $show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> ----------------- One of these options should work. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|