Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mp3 Player For User Profiles Details »»
Mp3 Player For User Profiles
Version: 1.1, by pein87 pein87 is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.x Rating:
Released: 12-12-2008 Last Update: 12-12-2008 Installs: 9
Uses Plugins Auto-Templates
Re-useable Code  
No support by the author.

I say that there was a demand for and mp3 player mod here on vbulletin.org. I used one from

http://www.myflashfetish.com/

You will need to sign up its free!!

Create a new profile field single-lline text box.

Make it editable by users and private, non-searchable. Save and then
Import the product and open the template:

memberinfo_block_music

and find:

PHP Code:
$userinfo[field15
And change to what ever yours is.
next tell your users to fill out there prefs to there mp3 player. Next tell them to copy the embed code. From there you will need to tell them to look for:

PHP Code:
<param name="flashvars" value="[color="red"][b]myid=16092906&path=2008/12/12&mycolor=222222&mycolor2=77ADD1&mycolor3=FFFFFF&autoplay=true&rand=0&f=4&vol=100&pat=10&grad=true[/b][/color]"/></object
They will need to copy the entire code inside the value="" I`ll highlight it in red fo you to see it.

Next open the template MEMBERINFO

next go to the bottom of that and look for

PHP Code:
$blocks[stats_mini]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors
Add in there $blocks[music] on a separate line so it looks like this:

PHP Code:
$blocks[mini]
$blocks[music
and save the template. Next follow the directions below to finish the install.

Tell them to add that entire code to there profile field and save it. This will add the mp3 player to there profile.


UPDATED:

Problem fixed!

you must do a fresh install of the product if you`ve already done it if not follow these instructions as well

Create another single text line user profile field and name it MP3 swf type.

Description: to show the version of mp3 player your using.

The rest is the same as above.

in template: memberinfo_block_music

Find:

PHP Code:
$userinfo[field16
Change 16 to the number of your profile field and save.

PHP Code:
<object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/[color="red"][b]mixpod.swf[/b][/color]" 
you must switch the mixpod.swf to what ever .swf version that is used.


The mp3 player features the ability to upload your own songs to be played on you profile.

Show Your Support

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

Comments
  #12  
Old 12-13-2008, 07:43 AM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry about that Will fix thanks for doing this for me. To answer your question yes I can do it for the video mod please give me some time to check the embed to that. I`ll also need to add the side to it as well. It is originally made for myspace and other site but i added it for vbulletin sites. I will update the instructions and work on the other mod. Thanks for installing.
Reply With Quote
  #13  
Old 12-13-2008, 08:09 AM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DawnsWebDesigns View Post
That did it. Thank you very much. What could I edit to get the player a lil more centered within the block?
Can you provide a pic or link for me to see it? You can always add more width or create a new css rule for the div that houses the embed an add margin or if its the most inner div add padding.
Reply With Quote
  #14  
Old 12-13-2008, 08:19 AM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pein87 View Post
Can you provide a pic or link for me to see it? You can always add more width or create a new css rule for the div that houses the embed an add margin or if its the most inner div add padding.
Thank you for creating this for me to install. And thank you for working on a video one.

Here's a link: http://www.dawnswebdesigns.com/forum/member.php?u=1

I'm pretty sure guests can see it. In the little My MP3 Player box my mp3 player is to the left. I'd like it to be more centered. I was thinking I should edit memberinfo_block_music & add <center> tags but it looks like you already did.

Code:
<div class="alt2 block_row block_footer">
	 <center><p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/$userinfo[field6]" height="311" width="230" style="width:230px;height:311px"><param name="movie" value="http://assets.myflashfetish.com/swf/mp3/$userinfo[field6]" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/><param name="flashvars" value="$userinfo[field5]"/></object></center>
	</div>
Any other ideas?
Reply With Quote
  #15  
Old 12-13-2008, 08:43 AM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes add a div after the first to. Next add an id to it called mp3.

copy and replace with the original template:

<!-- Mp3 player -->
<if condition="$userinfo[field15]">
<div id="snapvine" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('music')"><img id="collapseimg_music" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Mp3 player</span>
</h4>
<div class="block_content" id="collapseobj_music" style="">
<div class="alt2 block_row block_footer">
<div id="mp3">
<center><p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" height="311" width="230" style="width:230px;height:311px"><param name="movie" value="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/><param name="flashvars" value="$userinfo[field15]"/></object></center>
</div>

</div>
</div>
</if>
<!-- / Mp3 player -->

Next go to the skins you added it to in styles manager and select all style options. Go near the bottom and find additional css rules add this.

#mp3 {
text-align: center;
}

if this is not working try playing with the size of the mp3 its self in the memberinfo_block_music Thats how i originally made mine. Your very welcome glad you like it the video mo should be out in the next few days lol i`m on vacation lol.
Reply With Quote
  #16  
Old 12-13-2008, 09:10 AM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pein87 View Post
Yes add a div after the first to. Next add an id to it called mp3.

copy and replace with the original template:

<!-- Mp3 player -->
<if condition="$userinfo[field15]">
<div id="snapvine" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('music')"><img id="collapseimg_music" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Mp3 player</span>
</h4>
<div class="block_content" id="collapseobj_music" style="">
<div class="alt2 block_row block_footer">
<div id="mp3">
<center><p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" height="311" width="230" style="width:230px;height:311px"><param name="movie" value="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/><param name="flashvars" value="$userinfo[field15]"/></object></center>
</div>

</div>
</div>
</if>
<!-- / Mp3 player -->

Next go to the skins you added it to in styles manager and select all style options. Go near the bottom and find additional css rules add this.

#mp3 {
text-align: center;
}

if this is not working try playing with the size of the mp3 its self in the memberinfo_block_music Thats how i originally made mine. Your very welcome glad you like it the video mo should be out in the next few days lol i`m on vacation lol.
I added your codes. It brought my group membership & recent visitor boxes up into the mp3 player box. So I went back in & added another </div> & it took them back out. But it's still not centering. That's ok though. It's no biggie. I'm just grateful for this feature. Go enjoy your vacation.
Reply With Quote
  #17  
Old 12-13-2008, 09:21 AM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I`ll play with it over my break and see what i can do, the other mod will be done very soon but for now I must leave see ya.
Reply With Quote
  #18  
Old 12-13-2008, 09:22 AM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I got it. I had to edit the height & width.

Code:
<center><p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" height="311" width="230" style="width:230px;height:311px">
I went back to: http://www.myflashfetish.com & re-got my code. From there I got the height & width of the player to edit these to. Suddenly...it's centered. Yay!!! Thank you. Now please go have a nice vacation before your fellow vacationers, if any, get upset.
Reply With Quote
  #19  
Old 12-21-2008, 01:30 PM
popular popular is offline
 
Join Date: Jun 2007
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get a blank box that seems to have an empty flash file does anyone know why?
Reply With Quote
  #20  
Old 01-09-2009, 05:12 AM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by popular View Post
i get a blank box that seems to have an empty flash file does anyone know why?
Here:
Quote:
And change to what ever yours is.
next tell your users to fill out there prefs to there mp3 player. Next tell them to copy the embed code. From there you will need to tell them to look for:

PHP Code:
Code:
<param name="flashvars" value="myid=16092906&path=2008/12/12&mycolor=222222&mycolor2=77ADD1&mycolor3=FFFFFF&autoplay=true&rand=0&f=4&vol=100&pat=10&grad=true"/></object>
They will need to copy the entire code inside the value="" I`ll highlight it in red fo you to see it.
He had it wrong. I've actually fixed it...what's highlighted in red is the code you need.



My site still works even though I've just updated to 3.8.0.

And I still need this centering thing figured in. The code you gave us was for the size of your player. Adding centering tags didn't work for some reason. I had to go in & change the size of the player then it was centered. But I don't think members will be able to "go in" & change the size of their players. Any help?
Reply With Quote
  #21  
Old 01-09-2009, 05:47 AM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pein87 View Post
Yes add a div after the first to. Next add an id to it called mp3.

copy and replace with the original template:

<!-- Mp3 player -->
<if condition="$userinfo[field15]">
<div id="snapvine" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('music')"><img id="collapseimg_music" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Mp3 player</span>
</h4>
<div class="block_content" id="collapseobj_music" style="">
<div class="alt2 block_row block_footer">
<div id="mp3">
<center><p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" height="311" width="230" style="width:230px;height:311px"><param name="movie" value="http://assets.myflashfetish.com/swf/mp3/$userinfo[field16]" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/><param name="flashvars" value="$userinfo[field15]"/></object></center>
</div>

</div>
</div>
</if>
<!-- / Mp3 player -->

Next go to the skins you added it to in styles manager and select all style options. Go near the bottom and find additional css rules add this.

#mp3 {
text-align: center;
}

if this is not working try playing with the size of the mp3 its self in the memberinfo_block_music Thats how i originally made mine. Your very welcome glad you like it the video mo should be out in the next few days lol i`m on vacation lol.
I'm looking over this again & I didn't add this: "Yes add a div after the first to. Next add an id to it called mp3." I simply copied & replaced everything between here:
<!-- Mp3 player --> & here: <!-- / Mp3 player --> plus added the additional css. Could you please show me an example of what you mean? What do I add & where do I add it? It might be the thing that fixes this centering issue?
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 04:54 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.04837 seconds
  • Memory Usage 2,346KB
  • 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
  • (3)bbcode_code
  • (6)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete