mp3

This topic is: not resolved

This topic has 9 voices, contains 33 replies, and was last updated by  Devito 1219 days ago.

Viewing 4 posts - 31 through 34 (of 34 total)
Author Posts
Author Posts
August 15, 2008 at 9:27 am #173482

Dear Khalil thanks for the instructions, it really works !! and i allready tried to the previous data, it also works. Thank you very much. Just a little discomfort when you have to copy all the file in the Downloadables directory to the Previews directory rather takes many step because i’m using ftp from the cpanel. But It’s very OK. May be i have to buy ftp program that is better than the CPanel FTP.

My best regards,

NB:
Me and Devito in the mean while try to edit through the SQL panel, but still finding a way…

August 17, 2008 at 4:11 am #173483

Glad it worked out for you. Don’t forget to trim those audio files in the preview directory since those files can be easily downloaded by looking at the source code of the page.

As far as an ftp client, try using CoreFTP instead. It’s free.

http://www.coreftp.com

August 28, 2008 at 8:59 am #173484

I have tried everything everyone has suggested and have still not got it working.

I have started a new thread for simplicities sake -

http://www.instinct.co.nz/forums/topic.php?id=1645

Any help would really be appreciated.

Thanks

January 15, 2009 at 5:56 am #173485

Devito

Check this out… http://www.instinct.co.nz/forums/topic.php?id=596&page=2#post-13265

MP3 Player
Getting started…

1) Upload the Gold and MP3 mod & activate your gold api…

2) Create a new product – now you will notice a new button appearing at the bottom of the ‘product download’ box
…says… “Preview File: Choose file”…

3) Click that button and select your preview file to upload it…

…And that would be it… create your own 30 clips and just upload them with each new product…

MP3 – Example
Here is an example of the player… that will appear under your product title…
http://www.1pixelout.net/code/audio-player-wordpress-plugin/#examples

MP3 – Flashvars
How do I customize the colour scheme of my MP3 Player…

1) I found the best way to pick out a colour scheme was to install…
Audio Player WordPress plugin: http://www.1pixelout.net/code/audio-player-wordpress-plugin/
…and change the colour scheme (flashvar’s) live in there “settings” tab…

2) Insert that player into a post… now look at the source code and copy/paste the flashVars from there…
Note: remembering to de-activate the Audio plugin when your done…

3) Go to …plugins/ wp-shopping-cart/ gold_cart_files/ mp3_functions.php – around line 40…
changed from this…
name='FlashVars' value='playerID=2&soundFile=$mp3_path'

to something like this…

name='FlashVars' value='playerID=2&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x999999&rightbg=0x999999&rightbghover=0x006600&
righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x336600&track=0xFFFFFF&border=0x666666&
loader=0x999999&soundFile=$mp3_path'

See… http://www.macloo.com/examples/audio_player/options.html

MP3 – Background
How do I make the MP3 Players background transparent…
Go to …plugins/ wp-shopping-cart/ gold_cart_files/ mp3_functions.php – around line 47…
Just add… param name=’wmode’ value=’transparent’
Note: If your pages aren’t white you will want this transparency…

Troubleshooting

MP3 – Incorrect Mime Type
How do I correct the ‘mime type’… because my previews are not playing…
1) Open your WP database and browse ‘wp_product_files’
2) Check that the previews mime-type is “audio/mpeg” not “application/octet-stream” and not “text/plain”
3) If it is incorect or just blank… check to see if this is the issue by removing some code:
Go to …plugins/ wp-shopping-cart/ gold_cart_files/ mp3_functions/… ‘mp3_functions.php’
changed from this…
if(($file_data['preview'] != '') && ($file_data['preview_mimetype'] == 'audio/mpeg'))
to this…
if($file_data['preview'] != '')

Note: For some versions of the MP3 Mod the above fix disables the MP3 Upload feature… If this happens to you then simply undo the above fix and use one of these two fixes instead…
Fix 1) If your databases ‘mime type’ is blank or (incorectly) says ‘application/octet-stream’ then…
1a) Go to the file that deals with MimeType’s …wp-shopping-cart/ classes/ “mimetype.php”
1b) Scroll to line 94… and change… return ‘application/octet-stream’; to… return ‘audio/mpeg’… thats it…
Fix 2) If your databases ‘mime type’ says ‘text/plain’ then…
2a) Go to the file that deals with MimeType’s …wp-shopping-cart/ classes/ “mimetype.php”
2b) Scroll to line 216/217… and change ‘txt’ or ‘asc’ to ‘audio/mpeg’… thats it…

MP3 – Incorrect Directory Path
Top Tip: If you have downloaded the MP3 Mod after late 2008 or in 2009 than this is not for you!
How do I change the MP3 directory path if I have an old version of the MP3 mod which points to the wrong directory…
1) Go to …plugins/ wp-shopping-cart/ gold_cart_files/ mp3_functions/… ‘mp3_functions.php’
2) Check that all the paths are the ‘current’ preview locations… if they’re not just change the code…
from this…
Old Directory Path… /wp-content/plugins/wp-shopping-cart/preview_clips/$mp3.mp3
to this…
Current Directory Path… /wp-content/uploads/wpsc/previews/$mp3.mp3

MP3 – Add Preview files manually… Using your database…
1) Upload your preview (MP3) files to ‘…/wp-content/uploads/wpsc/previews’
2) Open your WP database and browse ‘wp_product_files’… find the product… and change it’s preview column to the name of the file you have uploaded…

MP3 – Add Preview files manually… Without using your database…
How do I manually upload my MP3 Previews without going into my database…
You can do this by copying the (hashed) files names of your full length MP3′s… Here is how it works:
When you uploaded the original mp3′s for your products, they get stored in the wspc/downloadables directory. The filenames are then changed to a hash name… see… http://www.md5generator.tk/ – There is a section of the mp3functions.php file that searches for a preview files based on the original hashed filename that is in the wspc/downloadables directory. For example:

1. Use FTP to look at your WSPC/Downloadables directory and find the last file which was added.
2. COPY that file from the WSPC/Downloadables to the WSPC/Previews directory.
3. Go into the e-Commerce plugin and find the last product that you added and the preview plugin should be there.

Now the goal here is to provide small snippets for your previews, so obviously you’ll want to trim the file you placed in that directory or use a preview you have already trimmed. Try this:

1) Download all of the hashed files in your wpsc/downloadable directory to your local machine…
2a) Trim” all of the mp3 files from that same directory… or…
2b) Have your MP3 Previews ready… and rename each one so that it shares the full length MP3 hashed file name.
3. Upload these modified files to the wspc/previews directory. When you load your products page you will now be able to see the preview files for each of your products as long as the hashed filenames are exactly the same.

For those who have Sox installed
Top Tip: If you have no idea how to install Sox and Lame than this is not for you!
That said, the other (additional) method is SoX… Basically the MP3 mod looks for a preview file based on the original hashed filename (of your full length mp3) that is in the wspc/downloadables directory… If it doesn’t find one it will look for an uploaded preview… So If you have Sox and Lame etc installed… when you come to upload your dowloadable (full length) mp3… SoX makes a preview out of it… keeping the same file name… Note: I have never tried this approach and have not installed all the components that are needed to make it work… ie… SoX and lame etc…

MP3 – Shadowbox
How do I preview my Image and my MP3 together… at the same time… using Shadowbox….
http://www.instinct.co.nz/forums/topic.php?id=1799

More…???…
See… http://www.instinct.co.nz/forums/topic.php?id=2284
See… http://www.instinct.co.nz/forums/topic.php?id=1083#post-4183
See… http://www.instinct.co.nz/forums/topic.php?id=2997#post-12776
See… http://www.instinct.co.nz/forums/topic.php?id=767#post-6355
See… http://www.instinct.co.nz/forums/topic.php?id=767#post-6135
See… http://www.instinct.co.nz/forums/topic.php?id=2997#post-12801
See… http://www.instinct.co.nz/forums/topic.php?id=767#post-6344
See… http://www.instinct.co.nz/forums/topic.php?id=1925#post-8051

Much respect to everyone who has contributed… :D

Viewing 4 posts - 31 through 34 (of 34 total)

You must be logged in to reply to this topic.