Back to vBulletin 3.6 Template Modifications

YouTube Video Avatars for specified usergroups
Mod Version: 1.00, by 4x4 Mecca

This modification is in the archives.
vB Version: 3.6.4 Rating: (5 votes - 5.00 average) Installs: 100
Released: 25 Jun 2007 Last Update: 25 Jun 2007 Downloads: 671
Not Supported Template Edits Is in Beta Stage  

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.

http://www.4x4mecca.com/misc/YouTubeAvatars.htm

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 http://www.4x4mecca.com/forum/hang-out/2607-one-more-wall.html#post19789.

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>&nbsp;</td>
			</if>
Replace with
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>&nbsp;</td>
			</if>
			</if>
</if>
Be sure you replace all fieldXX with your actual field number!

Click installed!
Nominate for MOTM!

Download

This modification is archived, downloads are still allowed.

File Type: %1$s YouTube Avatar.zip (207.4 KB, 650 downloads)

Screenshots

Click image for larger version
Name:	YouTube Avatar 1.jpg
Views:	1809
Size:	28.1 KB
ID:	66073   Click image for larger version
Name:	YouTube Avatar 2.jpg
Views:	622
Size:	32.0 KB
ID:	66074   Click image for larger version
Name:	YouTube Avatar 3.jpg
Views:	564
Size:	69.2 KB
ID:	66075   Click image for larger version
Name:	YouTube Avatar 4.jpg
Views:	381
Size:	41.6 KB
ID:	66076  


vblts.ru supports vBulletin®, 2022-2024