Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MP3 Player in Profile (Non-Flash, QuickTime/Windows Media) Details »»
MP3 Player in Profile (Non-Flash, QuickTime/Windows Media)
Version: 1.00, by sheppardzwc sheppardzwc is offline
Developer Last Online: Nov 2019 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.8.x Rating:
Released: 05-21-2009 Last Update: Never Installs: 14
Template Edits
 
No support by the author.

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!

Screenshots

File Type: png musicprev.png (6.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-23-2009, 05:46 AM
00skull00's Avatar
00skull00 00skull00 is offline
 
Join Date: Jan 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i can't see DEMO... pls....
Reply With Quote
  #3  
Old 05-23-2009, 02:44 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you post a demo link or screenshot?
Reply With Quote
  #4  
Old 05-24-2009, 04:52 AM
lm3a.net's Avatar
lm3a.net lm3a.net is offline
 
Join Date: May 2009
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks,
Reply With Quote
  #5  
Old 05-25-2009, 05:58 AM
Romanle Romanle is offline
 
Join Date: Jan 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

demo?plz
Reply With Quote
  #6  
Old 06-13-2009, 03:07 AM
sheppardzwc sheppardzwc is offline
 
Join Date: Dec 2008
Location: South Carolina
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/

Reply With Quote
  #7  
Old 06-17-2009, 12:33 PM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How many links will this allow.
Reply With Quote
  #8  
Old 06-20-2009, 06:24 PM
sheppardzwc sheppardzwc is offline
 
Join Date: Dec 2008
Location: South Carolina
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Preech View Post
How many links will this allow.
It allows one link in one profile field.
Reply With Quote
  #9  
Old 12-28-2009, 11:21 PM
Mike1018's Avatar
Mike1018 Mike1018 is offline
 
Join Date: Dec 2009
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09625 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete