Back to vBulletin 3.8 Template Modifications

MP3 Player in Profile (Non-Flash, QuickTime/Windows Media)
Mod Version: 1.00, by sheppardzwc

vB Version: 3.8.x Rating: (1 vote - 5.00 average) Installs: 14
Released: 23 May 2009 Last Update: Never Downloads: 1
Not Supported Template Edits  

While there are many profile enhancements to add another site-hosted MP3 Player/Playlist, this modification will just add an MP3 player to your profile that uses a normal http://www.xxx.com/xxx.mp3 link to embed and host. You can upload files to your own site and let your users add them themselves, or you can allow a staff member to preapprove them and add them for you.

== INSTALL ==

1. Navigate to User Profile Fields, and add a new Single-Line textbox.

Code:
Title: MP3 Player URL
Description: Type in your fully qualified MP3 link to enable music to appear on your profile!
Default Value: N/A
Field Required: No
Field Editable by User: (SEE *1 AT THE END OF THE POST)
Private Field: Yes
Field Searchable on Member's List: No
Show On Member's List: No
Once you are redirected to the "manager," scroll and find your field. Note the number your field is.



2. Navigate to your MEMBERINFO template, and add this under $blocks[stats_mini]:

HTML Code:
        <!-- Music MP3 -->
<if condition="$userinfo[XXX]">
<div id="$id" class="tborder content_block">
    <h4 class="thead block_title">
        <a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
        <a name="$id"></a>
        <span class="block_name">Music</span>
    </h4>
    <div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<p align="center">
<EMBED TYPE="AUDIO/MPEG" SRC="$userinfo[XXX]" HEIGHT=14 WIDTH=239 AUTOSTART=TRUE>
</p>
</div></div>
</div>
</if>
<!-- / Music MP3 -->
***REPLACE the "XXX's" with your field number you found above, matching something like: fieldX with X as a number.***

3. All done!

== NOTES ==

*1 - If you would not like your users to be able to enter any MP3 URL they like, set this option to No. You will have to have someone that has access to "Edit a User" in the AdminCP to add the link in for them, for the box to show up. If you don't care, then your user can go to UserCP > Edit Your Details or wherever you placed the option to enable it.

Enjoy!

Download

No files for download.

Screenshots

Click image for larger version
Name:	musicprev.png
Views:	398
Size:	6.2 KB
ID:	100486  

Similar Mods

Add-On Releases MP3 Player in Profile vBulletin 3.7 Add-ons
Integration with vBulletin Embed Mp3 Player in Profile vBulletin 3.6 Template Modifications

vblts.ru supports vBulletin®, 2022-2024