The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
YouTube Video Avatars for specified usergroups Details »» | |||||||||||||||||||||||||||
YouTube Video Avatars for specified usergroups
Developer Last Online: Jun 2013
Hello, what this mod does is allows users to have a "Video Avatar" if they are a member of the usergroup you specify.
Installation instructions are attached. See screen shots below to get an idea of what it looks like. UPDATE! I recorded a video of me installing it on a blank board. The video should help anyone having trouble. There are a couple extra things like me closing my password manager that you should ignore, but the video will show you what to do. Installation Video Instructions You can change the height and width of the video by changing the attributes in the code. It requires one template edit, 2 if you use both postbit styles. It requires one profile field. I am new to the modding still, and my instructions here aren't great, but you can see it in action here. UPDATE! To Display them in your user profiles open the memberinfo template find Code:
<if condition="$show['avatar']"> <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td> <else /> <td> </td> </if> Code:
<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[fieldXX]"> <td> <object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[fieldXX]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[fieldXX]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object> </td> <else /> <if condition="$show['avatar']"> <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td> <else /> <td> </td> </if> </if> </if> Click installed! Nominate for MOTM! Show Your Support
|
Comments |
#42
|
||||
|
||||
Thanx for the help 4x4 Mecca - but it still didn't align correctly for some odd reason.
Could be something to do with default avatar? I'm not entirely sure - but I thank you for the help anyway - It really is a nice modification - Would love to get this to work for "premium" Members. Jacquii. |
#43
|
|||
|
|||
I will search all the templates for the word "avatar" and see how it would be to implement this in other locations. When I do that, I will mark the thread updated.
|
#44
|
|||
|
|||
J - Can you create me an admin account with permissions to edit templates?
|
#45
|
||||
|
||||
Thanks for the memberinfo template addition, works well!
|
#46
|
|||
|
|||
No problem. If you see avatar anyhwere else, let me know. I see it on the members list, but that's php which is a little out of my reach.
|
#47
|
||||
|
||||
hey 4x4 mecca tried the template edit for the membersinfo and it doesnt appear to work, would it be due to the custom code u created for me
Quote:
|
#48
|
|||
|
|||
Yeah, change $post to $bbuserinfo and see if that works
|
#49
|
||||
|
||||
from the code you supplied or from the code specifically for me?
and what $post should i change thanks dave |
#50
|
|||
|
|||
from the code I I gave you
|
#51
|
||||
|
||||
got it working replaced the first line of the code to
<if condition="$post['membergroupids'] == 9 AND $post[field6]"> also complete schoolboy error and missed that i had to replace the [fieldXX] with 15 again thanks for the help 4X4 mecca |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|