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 |
#82
|
||||
|
||||
Good job it take me 2 minutes done permission mods, supers, admins only
thanx again |
#83
|
|||
|
|||
Thanks alot ChU v2, I appreciate your help!
|
#84
|
|||
|
|||
|
#85
|
|||
|
|||
Quick install, super easy and fun! Great job
|
#86
|
||||
|
||||
Quote:
Somehow I cant get this to work. Here is my POSTBIT template: Code:
<if condition="in_array($post['usergroupid'], array(6,23)) OR in_array($post['membergroupids'], array(6,23)) AND $post[field21]" > <div class="smallfont"><br> <object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field21]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field21]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object> </div> <else /> <if condition="$show['avatar']"> <div class="smallfont"> <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> </div> </if> </if> Can it be that the myspace profile rewrite is messing with this hack? (Since it parses youtube videos through custom profile fields as well) Can someone help? |
#87
|
||||
|
||||
Hi all
Hack will not work with MEMBERINFO template vb 3.7.0 Beta3 Different Codes Please be advised Regards |
#88
|
||||
|
||||
That's why it's in the 3.6 section.
|
#89
|
||||
|
||||
I marked as installed ,I will wait till its a littl more mature
|
#90
|
|||
|
|||
This Is Great.................thanks
|
#91
|
|||
|
|||
Installed and working on VBulletin 3.6.8 PL2
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|