PDA

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


sheppardzwc
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.

== INSTALL ==

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.

http://flambe.org/will/field.png

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>
</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!

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

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

lm3a.net
24 May 2009, 06:52
thanks,

Romanle
25 May 2009, 07:58
demo?plz

sheppardzwc
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/

http://flambe.org/will/musicprev.png

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

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

Mike1018
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.