View Full Version : Profile Enhancements - MP3 Player in Profile (Non-Flash, QuickTime/Windows Media)

22 May 2009, 22:08
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.


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

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: NoOnce 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]:

<!-- 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>
<div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}"><div class="alt1 smallfont block_row block_footer">
<p align="center">
<!-- / 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.


23 May 2009, 07:46
i can't see DEMO... pls....

23 May 2009, 16:44
Could you post a demo link or screenshot?

24 May 2009, 06:52

25 May 2009, 07:58

13 Jun 2009, 05:07
Gah, sorry for the lack of demo. Been away for awhile and this thread has gotten lost in the posts. I can't provide a demo - unless you register: http://www.toontownhall.com/forums/members/doctor/


17 Jun 2009, 14:33
How many links will this allow.

20 Jun 2009, 20:24
How many links will this allow.
It allows one link in one profile field.

29 Dec 2009, 01:21
Can't find, $blocks[stats_mini]: ANYWHERE in this template. Where is it by, so I can narrow it down for looking.