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 |
#102
|
|||
|
|||
Hi, I love this hack I have been using it for about 2 weeks now but took it off recently. I would like to put it back up but I have a question. I noticed that only Admins are able to view the video as my avatar. Other like regular members don't see the video avatar they only see my old regular avatar. I think this is because I did not set the viewing permissions to everyone. I tried to edit it but I can't seem to find where to go to fix my problem. Could anyone help me?
Thank You |
#103
|
|||
|
|||
just perfect... works perfect.. you are great man.. thanks
instaled and motm |
#104
|
|||
|
|||
Quote:
|
#105
|
||||
|
||||
There really shouldn't be any reason it would do that. The permission array is only for those who can use the avatars, not see it. It could be possible that you had your if conditionals set up wrong, maybe wrapping it inside one farther up the code block.
|
#106
|
|||
|
|||
If I had that wrong then it wouldnt work at all. But this way I see it when Iam logged into my admin account but when I log into my regular members account it doesn't show up.
|
#107
|
||||
|
||||
Not necessarily. If you have it wrapped in a conditional that's permission based, then that would cause the same effect. I'm speculating of course. Post your template code like the others did and we may be able to see what's causing it. Often times its something small like a character out of place.
|
#108
|
||||
|
||||
sweet works good!
|
#109
|
|||
|
|||
Quote:
|
#110
|
||||
|
||||
Please upgrade this to vb 3.7.
|
#111
|
|||
|
|||
Quote:
Anyone plz ? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|