![]() |
Add Video Or Mp3 To Play On Your Avatar
Add Video or audio player to you Avatar V1.1
vBB: 3.6x-3.7x Code: V1.1 Author : Friend01 date: juni.29.2008 demo: Video avatar mp3 Avatar Install: Easy < 10 min Templates chance: 1 and/or 2 postbit and/or postbit_legacy STEP1. 1. Upload the contents of the "upload" folder to you root forums. 2. Goto ACP >>User Profile Fields >>Add New User Profile Field Profile Field Type: Single-Line Text Box click: Continue --------------------------------------------------------------------- Title: TT-AV-Avatar Description: Paste the youtube video link or you mp3 link in the box below.<br /> Example: youtube link ( http://de.youtube.com/watch?v=yeCEOLan1h4 ).<br /> or you link to you mp3 file ( http://www.Examler.com/music/file.mp3 )<br /> leave this Box blank to show you normal Avatar. Max length of allowed user input: 500 Field Length: 50 Field Editable by User: yes Private Field: no Which page displays this option?: Edit Your Details click Save. ---------------------------------------------------------------------------- Goto ACP >>User Profile Fields>>User Profile Field Manager Take notice of the field number next to your new profile field. In the sample below it's TT-AV-Avatar >>>>>>> Name : field5 (field5 is on my forum). IMPORTANT! Replace all [field5] with the your forums field number! And Replace all link in Green color to you link! //////////////////////////////////////////////// STEP2. TEMPLATE CHANGES: Goto ACP >>Styles & Templates>>Style Manager selec you skin >> Edit Templates In template: postbit Find: Code:
<if condition="$show['avatar']"><td class="alt2"><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></td></if> Replace with: Code:
<if condition="$bbuserinfo['usergroupid'] != 1"> ------------------------------------------------------------------------------ Click Save. ------------------------------------------------------------------------------ In template: postbit_legacy Find: Code:
<if condition="$show['avatar']"> Delete this. ----------------------------------------------------- Find: Code:
<div id="postmenu_$post[postid]"> Code:
<if condition="$bbuserinfo['usergroupid'] != 1"> ---------------------------------------------------------------------------------- Click Save ---------------------------------------------------------------------------------- Final: Goto >> User CP>>>Edit Your Details to Add video link or mp3 link ----------------------End------------------------- :D Update 6.1.2008 : Hide TT-AV-Avatar from Guests The following template modifications will prevent guests (unregistered / not logged in) from seeing TT-AV-Avatar. in templastes postbit and/or postbit_legacy Find: Code:
<if condition="in_array($post['usergroupid'], array(2,5,6,7,12,14)) AND $post[field5]"> Code:
<if condition="$bbuserinfo['usergroupid'] != 1"> Code:
so.addVariable('searchbar','false'); Code:
</if> - Complete code With Hide TT-AV-Avatar from Guests. - Fix Error in IE -Fix probleme wen click drop down member menu on postbit_legacy.:) -----END----- :cool: |
i cant use this but its really cool man congrats.
|
Very, Very Good Install!!! an Nominate
|
Is it possible to define which usergroups can use this?
|
Seems like a good idea.
How could we limit this to certain user groups. or those with post count over say 1000 Problem I forsee, is the page load speed, on a busy forum. Seems like a great idea, but can only imagine the page speed is going to be sooooo slow... your page took 17 seconds to load, for the mp3 Slightly less for the youtube vid. The mp3, presumably.. is constructed from either ( hosted or hotlinked files ) which again.. could take for ever to load. Any stats please? |
realy nice idea ,,,, installleddddddddddddd
|
Quote:
Examle: array(5,6,7) this only for Group Mod,Admin and Smod Code:
<if condition="in_array($post['usergroupid'], array(2,5,6,7,12,14)) |
Looks great. Lets just hope this doesnt lag the page load too much. (It shouldnt as it doesnt load until you click on it)
|
Quote:
|
really nice
thanks for the hack |
Quote:
|
This is amazing, easy install also great mod. very unquie.
|
amazing job! ;)
anyway i've a question: if i've already a custom avatar selected it shows my avatar like a background of the video when this is paused ... right? also i've found an issue: check the attachment ... only in the first post i've got the video ... edit: just tried onto another (testing) board ... same issue ... :( |
thanks....just workin fine to my vb3.6.8. PL2 i wonder if we can add or make this work to
Profile Page Avatar or Profile Picture too... great... ;) |
Wow! amazing... Installed, but got a question, that NEWS STICKER that you have on the demo, where do you get it?
|
My biggest concern which the others have reflected and the coder has said nothing in response to is page load speed. As well as the number of queries being added.
|
Quote:
find: Quote:
Code:
<if condition="in_array($post['usergroupid'], array(2,5,6,7,9,12,14)) AND !$GLOBALS['FIRSTPOSTID'] AND $post[field5]"> |
@dvbusuario: something is changed ... now i got all the avatars, but the video is showed only in the first post like you said .... no i need the video onto all my posts is possible?
thanks ... |
Update 6.1.2008 : Hide TT-AV-Avatar from Guests
The following template modifications will prevent guests (unregistered / not logged in) from seeing TT-AV-Avatar. |
Please is there a way of restricting this to members with a minimum post count.
We do not have different usergroups based on post count. Any suggestions? |
Quote:
|
Quote:
best regards... ;) |
Quote:
By this do you mean create a whole new group? Not sure what you mean |
Quote:
|
Quote:
Quote:
|
I have problem
When you click on the name of a member Show the drop-down list of quick links behind Avatar look in the pic http://www.7lanet.com/up/out.php?i=6944_13.gif http://www.7lanet.com/up/out.php?i=6945_5555.gif |
Update: (6.3.2008)
- Complete code With Hide TT-AV-Avatar from Guests. - Fix Error in IE -Fix probleme wen click drop down member menu. |
Before adding video celebrate the avatar
https://vborg.vbsupport.ru/external/2008/07/32.gif After the addition of video https://vborg.vbsupport.ru/external/2008/07/32.gif |
Quote:
|
I'm Lookin to make my members avatar or profile pictures Bigger. help
|
this is awesomeeeeeeeeeeeeeeeeee thanks so much
|
Hey great mod but one question, i have done everything the instructions said to do but i only got this as the result https://vborg.vbsupport.ru/ any reasons?
|
How do I display this on MEMBERINFO, memberlist, groups, Blog and forum leaders?
|
Quote:
|
its not working good
he give me in a my avoter thuytinh.name see the attach please |
its fixed now
because the namd with file its change now see the attach the menu its behaned the video |
the thuytinh.name proplem its back
but that when if ih have 2 user change him avator to mp3 or video in first post he give me the avtor for other server or he give me any thing else and the other user he give him thuytinh.name please see the url or attach http://www.wa.ahba.in/showthread.php...049#post223049 |
This was working for me. I added it last night, but now today its not working. Anyone who has added a video avatar, it now says thuytinh.name in place of where the avatar is. Can anyone help? Thanks for any help that is given.
|
Quote:
Goto ACP >>Styles & Templates>>Style Manager selec you skin >>Common Templates. in: headinclude Add above: <script type="text/javascript" src="swfobject.js"></script> :up: |
are workinge with 3.8
|
All times are GMT. The time now is 05:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|