Forums / All Other Contributions/Addons / Media Manager MP3 Player Support Thread

Media Manager MP3 Player Support Thread

Locked

Started by flipperry on 12 Mar 2010, 7:17 PM · Views: 7,995

Results 1 to 20 of 29
This thread is locked. New replies are disabled.
12 Mar 2010, 7:17 PM
#1
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Media Manager MP3 Player Support Thread

This is for anyone that has problems or questions about the Media Manager MP3 Player module from the add-on section.

Flip Perry
S~Scents

13 Mar 2010, 2:48 PM
#2
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Download the "Media Manager MP3 Player" module! You will have to go to Premium Beat's Website to download the Single-Track Player, but I will help anyone who doesn't understand how to set this up. If you would like help setting up another FLASH MP3 player, I will try to help with that, too.

Here are the install instructions:

Installation instructions for Media Manager MP3 Player
BACK UP YOUR DATABASE!!!

Go to: http://www.premiumbeat.com/flash_resources/free_flash_music_player/single_track_flash_mp3_player.php and download the free single-track mp3 player ZIP folder. (You can also look at the FAQ section on this site for this player, but customization information is at the bottom of these installation instructions.)
Unzip this folder on your computer, then follow these instructions.

Changed files: includes/templates/YOUR_CUSTOM_TEMPLATE/templates/tpl_modules_media_manager.php

  1. Upload the ALL of the following files from the Premium Beat ZIP folder to your store's media directory (ex: public_html/"STORENAME"/media/ or public_html/"STORENAME"/media/mp3/) THE EXACT SAME FOLDER (VERY IMPORTANT!) where you upload your music files for previews (It's best to upload all of the files supplied by the Premium Beat Zip folder, but these are the required files):
    PlayerLicense.doc
    playerSingle.swf
    swfobject.js

  2. Now rename the folder titled YOUR_CUSTOM_TEMPLATE to your custom template name.

  3. FTP (Upload) the "includes" folder to the same directory on your server, or use a file manager to upload the tpl_modules_media_manager.php file from includes/templates/YOUR_CUSTOM_TEMPLATE/templates/
    to the same path on your server.

  4. Open tpl_modules_media_manager.php in a text editor, locate the following two lines:

<script type="text/javascript" src="http://www.YOUR_DOMAIN.com/STORENAME/media/swfobject.js"></script>

and

SWFObject("http://www.YOUR_DOMAIN.com/STORENAME/media/playerSingle.swf"

change YOUR_DOMAIN to the name of your domain and STORENAME to the name of your store's main folder
Note: If you upload the two files from step 1 to a subdirectory in /media/ you will change the above lines to something like:
"http://www.YOUR_DOMAIN.com/STORENAME/media/SUBDIR/swfobject.js"
and
http://www.YOUR_DOMAIN.com/STORENAME/media/SUBDIR/playerSingle.swf"
with SUBDIR being the name of your subdirectory (usually /mp3/).

  1. Now use your Admin > Extras > Media Manager to upload ONE clip per Collection, and assign ONE collection to each music-type product.

  2. DONE!

NOTE: This media player only plays one song (but the code in the tpl_modules_media_manager.php file makes it so that you can have a different song for different MUSIC-type products), and they have to be mp3! Sorry!

Extra Options:
"mymovie", "192", "67", "7", "#FFFFFF"); Change "#FFFFFF" to any hexadecimal value you want to change the background color (leave # sign and quotation marks intact)
so.addVariable("autoPlay", "no"); NOT RECOMMENDED, but you can make it so that the music starts playing automatically. Just change "no" to "yes". AGAIN THIS IS NOT RECOMMENDED!

Add these lines directly below the other "so.addVariable" codes:
so.addVariable("overColor","#000033") Change the overall color of the player.
so.addVariable("playerSkin","1") There are 5 different "Styles" that you can use, just change the skin number between "1" and "5"

If you have any problems or questions about this module, visit: http://www.zen-cart.com/forum/showthread.php?t=150366

For information about setting up music previews using the Media Manager, visit: https://www.zen-cart.com/tutorials/index.php?article=119
Media Manager can be found in your admin interface's "Extras" heading.

Uninstall:
Simply delete the files that you uploaded unless you deleted the tpl_modules_media_manager.php from your includes/templates/TEMPLATE_DEFAULT/templates/ folder. That's where the BACKUP comes in handy!

Have a great day!:D

Flip Perry
S~Scents

24 Mar 2010, 2:45 AM
#3
wmys avatar

wmys

New Zenner

Join Date:
Nov 2009
Location:
AB, Canada
Posts:
5
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Thanks very much for posting this. I have followed your directions as far as they go. My question is - how can the player with the song be made to show in a sidebox? Instructions would be very helpful!:yes:

24 Mar 2010, 6:44 PM
#4
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

I'll look into it and get back to you....
There is a side-box add on that could be used ("flash hacks") but I couldn't get that one working on my site, so that's why I went with this one. I will see what I can do about getting this player to work in the side-boxes so that it only shows up on Music-product pages.

Flip Perry
S~Scents

24 Mar 2010, 8:04 PM
#5
wmys avatar

wmys

New Zenner

Join Date:
Nov 2009
Location:
AB, Canada
Posts:
5
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

flipperry:

I'll look into it and get back to you....
There is a side-box add on that could be used ("flash hacks") but I couldn't get that one working on my site, so that's why I went with this one. I will see what I can do about getting this player to work in the side-boxes so that it only shows up on Music-product pages.

Thanks for any help you can offer. I actually want it to show up on an all-pages sidebox. My client's site is www.doodyhunters.com. He is featured in a radio spot and he would like it to be playable from a sidebox. I know it is possible with premiumbeat because I saw it on a zen website and it functioned exactly as I want it to - a player skin and a click-to-play.

Maybe it's as simple as using embed code - but I don't know. :unsure:

24 Mar 2010, 8:18 PM
#6
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Welllll, in that case there is an admin-editable sidebox add-on that you could use.

I don't know what to do about multiple songs, I couldn't get that working... but the premium beat sample embed code should be all you need. Open it in a text editor, like notepad, and where it says "songpath" put the URL to the radio player???? (This would have to be the URL that would be used to link to the player on the radio website...) Then copy/paste the sample embed code into the editable sidebox.

Another option could be the blank sidebox add-on...

You could rename everything (editable_sidebox and blank_sidebox) so that it says music_sidebox (including ALL instances in the file names AND within the files themselves). Global-replace "blank" or "editable" with "music"
as well as "BLANK" or "EDITABLE" with "MUSIC"

CAPS are important!

Let me know if this helps.

Flip Perry
S~Scents

1 Jun 2010, 9:20 PM
#7
avpservices avatar

avpservices

New Zenner

Join Date:
Sep 2006
Posts:
1
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Are there any example sites where this add on module is working?

I've set everything up on my site per the instructions but the samples just the default way to play a music sample. No error messages or anything.

Zen Cart version 1.3.9b Site is http://ddoubleumusic.com

Thanks.

2 Jun 2010, 4:41 AM
#8
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

avpservices:

Are there any example sites where this add on module is working?

I've set everything up on my site per the instructions but the samples just the default way to play a music sample. No error messages or anything.

Zen Cart version 1.3.9b Site is http://ddoubleumusic.com

Thanks.

It WAS working on our shopping cart, but we upgraded to the newest version (1.3.9c) and now it's not working...:no:
:blink:
I will have to work with this and see if I can get it to work on the new 1.3.9 series... I will keep you posted.:huh:

It should still work on the 1.3.8 series, though...

I made it so that there is still the default way of playing the sample songs so that if for some reason, like now, the player doesn't show up. That way your customers can still preview the songs.

Flip Perry
S~Scents

4 Jun 2010, 6:26 PM
#9
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

I am working on this dilema, any ideas would be greatly appreciated!

Flip Perry
S~Scents

5 Jun 2010, 3:20 PM
#10
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

:clap: OK, so here's the "fix" that I was able to find with DrByte's help...

In your media folder, there is a new .htaccess file (1.3.9a and later)...
Open it (BACKUP FIRST) in an editor...
Go to this line...

<FilesMatch "(.*\.(mp3|mp4|swf|avi|mpg|wma|rm|ra|ram|wmv)$)" >

and change it to:

<FilesMatch "(^swfobject.js$|^playerSingle.swf$|.*\.(mp3|mp4|swf|avi|mpg|wma|rm|ra|ram|wmv)$)" >

There are two "FilesMatch" lines. One has only ".*" and it denies everything that is not listed in the other line (the one above). Make sure you go to the line with file type extensions.
All you are doing is adding the specific file names (safer than just file types because hackers love these file types) to the allowed files.

Let me know if there are any other problems.:smile:

And now you can see this module in action on our shopping cart... Here

Flip Perry
S~Scents

5 Aug 2010, 12:01 AM
#11
hellblinki avatar

hellblinki

New Zenner

Join Date:
Aug 2010
Posts:
6
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Almost got it working.
I'm using v1.3.9e
the player loads, but doesn't seem to connect to the .mp3, the meters wiggle but no audio and nothing in the infobar.
Your player looks a little different from mine.
I tried all the players on the Premium Beat website, same result.
I changed the name of each player to playerSingle.swf after uploading.
none of the players available for download at PB have that name.
So, I'm wondering if you have an earlier version of the player?
or maybe I'm completely off-base!

Which brings me to this Question.
Assuming I can get it working, what needs to change to use another player? Would you just change the javascript portion of the tpl_modules_media_manager.php?

Thanks!!

5 Aug 2010, 4:08 AM
#12
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

  1. What are the original file names in each of the players that you have downloaded?
    eg. Player Single: playerSingle.swf, swfObject.js...

  2. Where are you uploading the files to, including your .mp3 files? Which directory?

  3. Can you post a link to your site showing me what the player is doing? I might be able to help you out more if I can see it...

  4. The embed code is different for each of the players. I have only been able to get the single players to work on the music-type product description pages, but you can play around with the code to try to figure out how to get the multi-players to work... just make sure you have a back up of your original media manager files!!!

Thanks for your interest in this Add On!

Flip Perry
S~Scents

5 Aug 2010, 2:03 PM
#13
hellblinki avatar

hellblinki

New Zenner

Join Date:
Aug 2010
Posts:
6
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

  1. The .zip from Premium Beat is no longer as described in your install guide. (unless I'm missing something!)
    swfobject.js is not part of the package,
    the sampleEmbedJavascript.html that comes with the package links to an external version.
    I found v2.2 of swfobject.js elsewhere and put it in the media folder.
    Check out what's available at PB now.
    http://www.premiumbeat.com/flash_music_players/
    The first three players are called OriginalMusicPlayerPlaylist.swf, OriginalMusicPlayerPlaylist.swf, and OriginalMusicPlayer.swf

2.I'm putting everything in the "media" folder

  1. Tried some different things this morning and can't get the player to show up at all now
    http://www.weirdhead.com/WeirdCatalog/index.php?main_page=product_music_info&cPath=3&products_id=13

  2. I like the thin player at PB and the small players at these two links
    http://www.alsacreations.fr/dewplayer
    http://flash-mp3-player.net/
    I'm really just hoping to have a play button that works so folks can preview files.
    looks like part of your Embed code is talking to the player and some is pulling the link to the media from the php?
    (I don't know much about code!)

Thanks!
A-

5 Aug 2010, 5:34 PM
#14
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

You're right, the files in the flash player have changed... Sorry about that.:(
If you want the same player that I have, let me know (PM me and I can send you the files).
If you want to get a flash player from a different site, like the ones in your post, let me know and I will try to help you with the code. I'm not a programmer, but I just kind of played with the code to get mine working, so hopefully I can do the same for you.

Remember that I have only done single players for the product-type pages, but I have a multi-player on an EZ Page here. The setup for this multi-player is completely different from the single players because the multi-players "call" a playlist, where the single players only call one song. That's why I haven't quite been able to use a multi-player for product previews.

Just so you know, the embed codes for the different players have certain "specs" that are completely different. These are the size, color, "skin" number, etc. DON'T rename all of the players to playerSingle, just change the name in the code (if you need help with this part, let me know).

I looked at the source code of your site (from the link in your post) and the player is still being "called" but it's just not showing up... What did you do? You said that it was showing up, just not playing, and then you changed a few things, and now it won't show up at all? Did you move any of the files? Did you change the .htaccess file (see previous post)? At least your customers can still click on the link to preview the songs (I did that with the code on purpose, just in case for some reason the player doesn't show up).

Flip Perry
S~Scents

5 Aug 2010, 8:54 PM
#15
hellblinki avatar

hellblinki

New Zenner

Join Date:
Aug 2010
Posts:
6
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Groovy,
My store isn't live yet, I'm still putting things together!
I'm into a mini player on the Product page,
I'll PM you about getting one of these other players working and we'll post the results to the forum...

13 Aug 2010, 2:51 PM
#16
nolsowski avatar

nolsowski

Inactive

Join Date:
Aug 2010
Posts:
324
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Does this module work for the player that has multiple songs on it? I just downloaded the other day the player (before I seen this) and am having trouble getting it to show on my site. I thought I did everything right but all you can see is the code.
frompropertorocker.com/index.php?main_page=page&id=2
Codes and I just don't mix so if anyone has any help for me I will be so grateful! :)

1 Sep 2010, 6:30 PM
#17
jennied avatar

jennied

New Zenner

Join Date:
Sep 2010
Posts:
17
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Hi

I could use some help with this. I just created a new thread about it before I found this support thread. I have tried to integrate this into a new installation of Zencart (v 1.3.9f) but can't get it to work.

I have now changed the .htaccess file as well but that didn't help. I've tried to link direct to the url which contains the js file and adjust file names accordingly.

The test page is here

http://www.radiationsun.co.uk/shop/test-category/album-1

Really would appreciate any help as very stuck now and it would be great if I could get over this and onto the next hurdle!!

Thanks

1 Sep 2010, 7:03 PM
#18
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

nolsowski:

Does this module work for the player that has multiple songs on it? I just downloaded the other day the player (before I seen this) and am having trouble getting it to show on my site. I thought I did everything right but all you can see is the code.
frompropertorocker.com/index.php?main_page=page&id=2
Codes and I just don't mix so if anyone has any help for me I will be so grateful! :)

Unfortunately, I have not been able to get this to work. Maybe someone in the commercial help wanted section might be able to help out, but I'm not actually a programmer. Sorry.

Flip Perry
S~Scents

1 Sep 2010, 7:10 PM
#19
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

JennieD:

Hi

I could use some help with this. I just created a new thread about it before I found this support thread. I have tried to integrate this into a new installation of Zencart (v 1.3.9f) but can't get it to work.

I have now changed the .htaccess file as well but that didn't help. I've tried to link direct to the url which contains the js file and adjust file names accordingly.

The test page is here

http://www.radiationsun.co.uk/shop/test-category/album-1

Really would appreciate any help as very stuck now and it would be great if I could get over this and onto the next hurdle!!

Thanks

I looked at the code that your site's trying to pull up... I'm officially confused. I see that it's trying to pull up two different (but the same) players for both of the songs, but I have only been able to get one player to work at a time, and that was only the single players.
Unfortunately, Premium Beat has changed the .zip files, and so I don't know how to get the new ones working...:(

Do you have ALL of the files in the same folder? Did you change the .htaccess IN THAT FOLDER?

I don't know what else to do...

Flip Perry
S~Scents

1 Sep 2010, 7:15 PM
#20
flipperry avatar

flipperry

New Zenner

Join Date:
Feb 2009
Posts:
79
Plugin Contributions:
0

Re: Media Manager MP3 Player Support Thread

Hellblinki:

Groovy,
My store isn't live yet, I'm still putting things together!
I'm into a mini player on the Product page,
I'll PM you about getting one of these other players working and we'll post the results to the forum...

Sorry, Hellblinki.
I haven't been able to get any of the other players to work. I don't understand the codes for them.
I looked at the license information for the player that I have, and it says that it can't be redistributed, in part or in whole... :(
I tried...

We are probably going to need a REAL programmer's help to get the players working now... I'm not a programmer, just someone who played around with the code a little bit, and tried to share the outcome.:cry:

Flip Perry
S~Scents