Search

We have 47 guests online
PROBLEM WITH MP3 DOWNLOADS AND PREVIEW PATHS PDF Print E-mail
 

By Arelowo Alao, on 14-10-2008 01:26

Views : 4552    

Favoured : 154

Published in : Frequently Asked Questions, FAQs

First off I've seen to many people who mess up when adding track and then complain about the system now working.  I just have two words for you Absolute and Relative.  Please keep this in mind when you are setting up your music store.  The mp3 Downloads must use the  Absolute path in the settings and the previews use the Relative path.  All the system does is concatenate what you have in your setting to what you have in the add and manage tracks.  To make it stupid simple take a look at the following:

MP3 downloads
Settings                |   Add New Tracks & Manage Tracks
"/home/user/mp3/ "+ "/subfolder/track.mp3 "

Previews
Settings                |   Add New Tracks & Manage Tracks
"/preview/ "+ "/subfolder/track.mp3 "

The append url will also give you a clue becuase it will genertate the following for each player:

http://www.example.com/preview/subfolder/track.mp3

 If you ask me for help and I do a view source on your webpage and see the following:

 /home/user/mp3//home/user/mp3/subfolder/track.mp3

I will point you straight to this F.A.Q.  Below i will go more indepth about setting up the paths.  If you don't understand what to do after reading this then this system is not for you.

-------------------------------------------------------------------------------------------------------------------------------------------------

Setting up mp3 download folder


To start the mp3 download paths can be stored outside of the public_html or htdocs folder.  Most host set up there user folders like so:

“/home/user/public_html”

If you want to store your mp3 downloads outside of the public_html folder then you would create a folder in the following location:

“/home/user/mp3-downloads-folder”

Once you create your folder you would add the path above to your components settings.

Setting up preview folder

The previews can be stored outside of the public_html depending upon how your server handles relative paths i.e. ../

I know that for some people this works but for most it does not.  That is why I suggest that previews are stored inside your joomla root directory.  You your joomla installation is locted at

"/home/user/public_html/joomla"


Then you would create folder for your previews at:

"/home/user/public_html/joomla/previews"

If you want to store your previews outside of the joomla root then use:

“../previews”.

This would assume your previews are located at:

"/home/user/previews


Storing previews outside the root folder works for some configurations but not all.



You would have to update your settings to reflect how you have set up your preview folders. You also have the option to append the url to the preview folder if the previews will not play in the browser for whatever reason.

Adding tracks


When you add tracks all you have to do is list the name of the mp3.  If they are in a subfolder then list the subfolder and track name. i.e /subfolder/track.mp3 or track.mp3

Previews are still not playing?
Do a view source on the page and go to where the flash players are generated. 




!-- Begin Flash Player -->

<object type="application/x-shockwave-flash" data="http://www.example.com/components/com_maianmusic/players/dewplayer-vol.swf?son=/mp3-preview/alao-02.mp3"

width="240" height="20" style="a:active, a:focus {outline: 0};"> 
    <param name="movie" value="http://www.example.com/components/com_maianmusic/players/dewplayer-vol.swf?son=/mp3-preview/alao-02.mp3" />
    </object>
<!-- End Flash Player -->

 



Take the url generated and see if you reach any of the mp3’s.  If not then you have done something wrong and you need to go back and correct your preview paths
 
In closing the previews are relative to the joomla index.php which is stored in the joomla root folder.  The mp3 downloads MUST list the absolute directory and when you add tracks you just list the trackname and/or subfolder.  If you don't you will get a FILE DOES  NOT EXIST!! Error

If your still have problems check the sticky at the top of the forum where users have posted there experiences.

Last update : 15-10-2009 20:24

   
Quote this article in website
Favoured
Print
Send to friend
Related articles
Save this to del.icio.us

Users' Comments  RSS feed comment
 

Average user rating

   (0 vote)

 

Display 5 of 10 comments

array strings

By: Raphael (Guest) on 15-06-2010 23:12

array strings

By: Raphael (Guest IP 66.49.239.236) on 15-06-2010 23:12

Hello, i am getting this error message in my editor dialog window on joomla for the maian mp3 module. I was wondering is anyone could help with this issue.. 
 
Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /html/Joomla/modules/ mod_maianaio/elements/ artist.php on line 33 
 
Warning: Invalid argument supplied for foreach() in 
/html/Joomla/libraries/joomla/ html/html/select.php on line 68

 

» Report this comment to administrator

» Reply to this comment...

Mr

By: Lawrence (Guest) on 10-06-2010 09:49

Mr

By: Lawrence (Guest IP 86.149.182.57) on 10-06-2010 09:49

I have Joomla installed on an IIS Server. This is what SOLVED my problem. see below 
 
Path to Installation Folder: E:IMSSiteAJoomla 
MP3 Folder Path: E:IMSSiteAJoomla/home/user/mp3 - the home/user/mp3 must be created manually on the web server 
MP3 Preview Folder Path: /home/user/mp3/preview 
You have to dump the MP3's into the locations 
 
I hope this helps someone

 

» Report this comment to administrator

» Reply to this comment...

Technical Director

By: Greg Dunn (Guest) on 13-05-2010 18:38

Technical Director

By: Greg Dunn (Guest IP 202.172.121.241) on 13-05-2010 18:38

I have looked at your instructions for paths very thoroughly and it does not work for me. 
1. I'm developing locally so my set up is potentially not like a normal ISP hosting service. 
2. I'm on a Mac. 
Now I have done a number of tests with this /home/user stuff to no avail. I have read about the directory hierarchy in OS X and placed my download directory in many places to no avail as there is no "home". There is no "user" [web account] path. The preview directory is no problem but the download directory is. I guess, as you say in your FAQ this component is not for me.

 

» Report this comment to administrator

» Reply to this comment...

Technical Director

By: Greg Dunn (Guest) on 13-05-2010 15:48

Technical Director

By: Greg Dunn (Guest IP 202.172.121.241) on 13-05-2010 15:48

I have looked at your instructions for paths very thoroughly and it does not work for me. 
1. I'm developing locally so my set up is potentially not like a normal ISP hosting service. 
2. I'm on a Mac. 
Now I have done a number of tests with this /home/user stuff to no avail. I have read about the directory hierarchy in OS X and placed my download directory in many places to no avail as there is no "home". There is no "user" [web account] path. The preview directory is no problem but the download directory is. I guess, as you say in your FAQ this component is not for me.

 

» Report this comment to administrator

» Reply to this comment...

I want to off news letter system

By: Aaryaman (Guest) on 15-04-2010 14:50

I want to off news letter system

By: Aaryaman (Guest IP 122.168.226.91) on 15-04-2010 14:50

Actually when i am goin to download song its asking name and email address. after putting both. its showing news letter system not install. i want to direct download without news letter system. please help me

 

» Report this comment to administrator

» Reply to this comment...

Display 5 of 10 comments



Add your comment
Name
E-mail
Title  
Comment
 
Available characters: 600
   Notify me of follow-up comments
   
   

More comments...



mXcomment 1.0.8 © 2007-2010 - visualclinic.fr
License Creative Commons - Some rights reserved
< Prev   Next >