vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - MP3 Player in Profile (Non-Flash, QuickTime/Windows Media) (https://vborg.vbsupport.ru/showthread.php?t=214321)

sheppardzwc 05-21-2009 10:00 PM

MP3 Player in Profile (Non-Flash, QuickTime/Windows Media)
 
1 Attachment(s)
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.

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

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!

00skull00 05-23-2009 05:46 AM

i can't see DEMO... pls....

HMBeaty 05-23-2009 02:44 PM

Could you post a demo link or screenshot?

lm3a.net 05-24-2009 04:52 AM

thanks,

Romanle 05-25-2009 05:58 AM

demo?plz

sheppardzwc 06-13-2009 03:07 AM

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 06-17-2009 12:33 PM

How many links will this allow.

sheppardzwc 06-20-2009 06:24 PM

Quote:

Originally Posted by Preech (Post 1831251)
How many links will this allow.

It allows one link in one profile field.

Mike1018 12-28-2009 11:21 PM

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


All times are GMT. The time now is 07:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete