Back to vBulletin 3.8 Template Modifications

Awesome Flash Music Player For Members Profile
Mod Version: 1.00, by socialteenz

vB Version: 3.8.x Rating: (4 votes - 5.00 average) Installs: 8
Released: 23 May 2011 Last Update: Never Downloads: 46
Supported Template Edits Additional Files Re-usable Code Translations  

Lets get it started

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

Code:
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:

Code:
 $template_hook[profile_right_first]
Below add:

Code:
<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.

Code:
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:

provided by http://www.extremesporters.com/forum.php
http://www.vbulletin.org/forum/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.

Download

File Type: %1$s FlashMusicPlayer.zip (287.2 KB, 68 downloads)

Similar Mods

Profile Enhancements Awesome Flash Music Player For Members Profile vBulletin 4.x Template Modifications
Profile Enhancements LoudFusion Profile Music Player vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024