Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Mods for 3.6.x Thread, YouTube Video Avatars for specified usergroups in Mods; YouTube Video Avatars for specified usergroups Hello, what this mod does is allows users to have a "Video Avatar" if ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3729


Reply
LinkBack Thread Tools Display Modes
YouTube Video Avatars for specified usergroups
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
22-09-2008, 10:43 PM
 
YouTube Video Avatars for specified usergroups


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:
PHP 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:
PHP 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!
Attached Files
File Type: zip YouTube Avatar.zip (207.4 KB, 0 views)
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Mods for 3.6.x Thread, YouTube Video Avatars for specified usergroups in Mods; YouTube Video Avatars for specified usergroups Hello, what this mod does is allows users to have a "Video Avatar" if ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3729


Bookmarks

Tags
avatars, usergroups, video, youtube


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert MTS/M2TS Video to Popular Video and Upload to Youtube ? jefflin Software and Programs 1 08-05-2009 03:43 AM
Flash Headers, Footers, and Avatars for vBulletin Developer Articles 4 01-05-2009 11:19 AM
YouTube FLV to MP4 Video Converter cathkun Software and Programs 3 28-03-2009 04:56 AM
80 Animated Avatars Developer Web Application 0 03-09-2008 10:02 PM