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 |
#32
|
||||
|
||||
couldnt you do this with usergroups??
add a new promotion and set it so that after the user posts 100 times then they're upgraded to a new usergroup then edit the template postbit + postbit_legacy see here https://vborg.vbsupport.ru/showpost....2&postcount=27 |
#33
|
|||
|
|||
Thanks tipoboy that worked perfect!
|
#34
|
|||
|
|||
followed the directions, but the video is not showing in postbit. I just get a blank area.
|
#35
|
||||
|
||||
Quote:
did you type in just the end part of the youtube address in the profile fied of your forum not the whole address to the video? for example if the address is: http://www.youtube.com/watch?v=XVT8rhtlj6w only enter XVT8rhtlj6w if you've done all this and still doesnt work then follow the instructions given again it took me 3 attempts to get it working lol |
#36
|
|||
|
|||
i got it thanks... i edited only postbit and not legacy
|
#37
|
||||
|
||||
TO 4X4 MECCA:
is there any way of allowing this to show in all instances of your avatar and not just the postbit and postbit_legacy? also is there any way of putting the video avatar selection box in to the "profile.php?do=editavatar" section of the usercp?? this would be great if it could be done thanks dave |
#38
|
||||
|
||||
Thanks for this mod Mecca, you can see your mod being used on my forum here:
http://www.areyouserios.com/new-feat...09.html?t=1709 I second the Edit Avatar UserCP idea |
#39
|
|||
|
|||
I'm new to installing mods, in fact this my second. I put both sets of code in both postbit and postbit_legacy, edited the FieldXX... I'm not getting the option in my User CP.
Only used the last part of the video URL after the "=" I don't know what I'm doing wrong. |
#40
|
||||
|
||||
it should be right t the bottom of the profile editor page
if its not there double check that you created the new profile field correctly. if this is all done and still doesnt work post back here |
#41
|
|||
|
|||
I got it to work. Thank you. Looks awesome.
Just a few things. The avatar isn't centered. It's fine if you have a YouTube video, but my user's avatar are left-aligned. It looks like crap. Anyway to fix that? And its not viewable in your profile or the homepage, only in threads. Not that big of a deal. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|