PDA

View Full Version : Profile Enhancements - Awesome Flash Music Player For Members Profile


socialteenz
05-22-2011, 10:00 PM
Lets get it started :D

WHAT DOES THIS DO?

This will add a music player to your members profile.


Go into your Admin CP->>>>user profile fields->>>>Add new user profile field

Profile Field Type: Single line text box
Title: Flash Music Player
Description:This will add a music player to your members profile.

Field Required: No
Field Editable by User Yes
Then Style Manager>>>Your Style>>>Edit Templates>>>Member Info Templates>>>MEMBER INFO

Find:

$template_hook[profile_right_first]Below add:



<center><tbody><tr>
<if condition="$userinfo['fieldx']"><td class="alt1" style="font-family: Verdana; font-size: 10pt">
<b>My Music Player</b>

<!-- FLASH MUSIC PLAYER -->
<script src="$vboptions[bburl]/embed/swfobject.js" type="text/javascript"></script>

<div id="player"></div>

<script type="text/javascript">
var so = new SWFObject('$vboptions[bburl]/embed/player.swf','mpl','170','20','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&amp;file={vb:raw userinfo.fieldx}&volume=100&autostart=true');
so.write('player');
</script>

<!-- FLASH MUSIC PLAYER -->
</td>
</tr>
</tbody></center>

Replace the field x with your field number


You can disable the Auto play option by changing this line.

so.addParam('flashvars','&amp;file={vb:raw userinfo.fieldx}&volume=100&autostart=false');
*********************
INSTALLATION INSTRUCTIONS
***********************
1 - Upload the folder embed to the forum root

Preview:https://vborg.vbsupport.ru/external/2011/05/14.png

provided by Extreme Sporters (http://www.extremesporters.com/forum.php)
4.x.x version here (https://vborg.vbsupport.ru/showthread.php?threadid=264078)

Please click Mark as Installed if you are using this hack. Feel free to click on the Support Developer link and donate any amount you feel is appropriate.

socialteenz
05-23-2011, 03:54 PM
Reserved*****

FreshFroot
05-24-2011, 03:31 AM
Looks really neat will have to try it out :D

socialteenz
05-24-2011, 09:53 AM
Looks really neat will have to try it out :D

Glad you like it :) Post your results, also click mark as installed if you are using this mod :)

lsti
06-11-2011, 02:45 PM
Thank you. Great job :)