Back to vBulletin 4.x Template Modifications

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

vB Version: 4.x.x Rating: (14 votes - 5.00 average) Installs: 69
Released: 23 May 2011 Last Update: 10 Oct 2011 Downloads: 263
Not 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:
{vb:raw blocks.stats_mini}


Below add:

Code:
<!---Flash Music Player--->
<vb:if condition="$userinfo['fieldxx']">
<div class="block">
  <div class="visitors">
    <h5 class="blocksubhead smaller">My Profile Song</h5>
      <div class="blockbody">
        <div class="blockrow">
          <div class="meta">
             <li>
<center><tbody><tr>
                <td class="alt1" style="font-family: Verdana; font-size: 10pt">
<script src="{vb:raw vboptions.bburl}/embed/swfobject.js" type="text/javascript"></script>
<div id="player"></div>
<script type="text/javascript">
var so = new SWFObject('{vb:raw 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.fieldxx}&volume=100&autostart=true');
so.write('player');
</script>
</td>
            </tr>
            </tbody></center>
 </div>
 </div>
    </div> 
  </div>
</div>
<div class="underblock"></div>
</vb:if>
<!---Flash Music Player--->
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
2 - Edit the Member Info Template
3 - Go to Edit profile & Input your profile music in the field which you created.
You can use this song to check the player

Code:
http://k003.kiwi6.com/hotlink/k53i57h815/t_pain_feat_akon_u_got_me.mp3
Preview:


http://www.vbulletin.org/forum/showthread.php?p=2199399

provided by http://eminemtalk.com/

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 flashmusic.zip (286.9 KB, 234 downloads)

Similar Mods

Profile Enhancements LoudFusion Profile Music Player vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024