Search

We have 2 guests and 1 member online
PROBLEM WITH MP3 DOWNLOADS AND PREVIEW PATHS PDF Print E-mail
 

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

Views : 3111    

Favoured : 120

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 3 of 3 comments

page error after instalation

By: giri (Guest) on 10-03-2010 19:33

page error after instalation

By: giri (Guest IP 59.177.104.142) on 10-03-2010 19:33

After instling the component I face the proble, page don't open warning,,,'Warning: include_once(/home/delhimal/ public_html/kerakeli.com/ components/com_maian15/inc/ functions.php) [function.include-once]: failed to open stream: No such file or directory in /home/delhimal/public_html/ kerakeli.com/modules/ mod_maianaio/helper.php on line 29 
 
Warning: include_once() [function.include]: Failed opening '/home/delhimal/public_html/ kerakeli.com/components/ com_maian15/inc/functions.php' for inclusion (include_path='.:/usr/lib/php: /usr/local/lib/php') in /home/delhimal/public_html/ kerakeli.com/modules/

 

» Report this comment to administrator

» Reply to this comment...

Error setup maian

By: goldbeautiful (Guest) on 03-03-2010 13:29

Error setup maian

By: goldbeautiful (Guest IP 125.212.156.168) on 03-03-2010 13:29

I setup package component maian , it have error 
Error Code:Fatal error: Maximum execution time of 30 seconds exceeded in C: wampwwwMusic_Newlibrariesjooml afilesystemfolder.php on line 427. 
Help

 

» Report this comment to administrator

» Reply to this comment...

Further Clarifications

By: David Thomson (Guest) on 22-01-2010 02:05

Further Clarifications

By: David Thomson (Guest IP 38.114.82.92) on 22-01-2010 02:05

When I loaded Maian, the default path was set to //home//user//track. You need to explain that the "user" is a variable and needs to be replaced with the actual user name of the web site account. Also, what's with the double //? Shouldn't it be  
/home/"user"/track ? 
 
Also, I tried the above fixes and still when I try uploading tracks I get the error, "An error occured could not upload file." 
 
Are other settings required in the php.ini to allow uploading files below the public_html directories?

 

» Report this comment to administrator

» Reply to this comment...

Display 3 of 3 comments



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



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