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 |
#62
|
|||
|
|||
Yes, the way this is designed to work is allow only the usergroups you want to have video avatars, but ALL usergroups, even unregistered should be able to see it.
|
#63
|
||||
|
||||
That's good news, but what about Morrus his comment?Is this a bug? And if so; do you have a fix?
|
#64
|
||||
|
||||
Quote:
HTML Code:
<if condition="in_array($post['usergroupid'], array(5,6,7,22,48)) AND $post[field8]"> <td class="alt2"> <object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field8]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field8]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object> </td> <else /> <if condition="$show['avatar']"> <td class="alt2"> <br /><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> </if> <div class="smallfont"> to: <td class="alt2"> with the respective closing tag </td> and it works fine. |
#65
|
||||
|
||||
Can you please post a link to where this can be seen in action?
|
#66
|
||||
|
||||
<a href="http://lurkingmastermind.com/forums/showthread.php?t=8262" target="_blank">http://lurkingmastermind.com/forums/...ead.php?t=8262</a>
|
#67
|
||||
|
||||
Quote:
|
#68
|
||||
|
||||
is there any way to make the user profile field option hidden to groups who are not allowed to use the video avatar feature?
|
#69
|
||||
|
||||
No, it's a link to a thread which shows the video avatar in action, which is what was requested by the previous poster, and is what was supplied by me.
|
#70
|
||||
|
||||
where is the video avatar? the only moving avatar I see is a gif image
|
#71
|
||||
|
||||
I see lots of posts with youtube vids in them, but not as avatars.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|