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 |
#22
|
|||
|
|||
Thanks Jacquii, I'll work on that today or tomorrow, I have family in town, so I'm pretty busy.
|
#23
|
|||
|
|||
Dave, what are you making the video avatar user groups for. I mean what decides who gets put in it. If it's something like length of time or posts, I could probably work something. I don't user secondary user groups so I'm not sure how they work.
|
#24
|
||||
|
||||
Quote:
i made a video avatar usergroup and added it to me as a aditional user group but this didnt work(see Screen Shot) would i have to make up another user group for video avatars enabled for each group i want it to be effective on eg 1 for admin 1 for moderators 1 for registered users or could i do it using this method with alterations in the template change?? i hope this is clear as i love this mod and want to restrict the use to people in the video avatars group only hope u understand and can achieve this thanks for the help dave |
#25
|
||||
|
||||
better screen shot for u
|
#26
|
|||
|
|||
Thanks dave, I understand what 2ndary user groups are, i just didn't get how you were going to choose who went in there. I will see if I can do it that way.. keep an eye on this thread.
|
#27
|
||||
|
||||
this is my working version.... see what you can do with this..
|
#28
|
|||
|
|||
Dave, change
Quote:
Quote:
Where 9 is the additional usergroup ID and 6 is your field number. That will work |
#29
|
|||
|
|||
jacquii, let me know if this works.
replace this Quote:
with this Quote:
|
#30
|
||||
|
||||
Quote:
**tipoboy clicks nominate** |
#31
|
|||
|
|||
great mod installed with no problems.
I have one question though... Is there a way to restrict Video Avatars to only users with a certain number of post or greater? Example: User1 reaches 100 post then Video Avatars show. User2 with less than 100 post his video avatar does not show. Let me know if this is possible? Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|