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','&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','&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.
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','&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','&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.