Direct Download via menu item not working

Phoca Download - download manager
cjmicro
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Jul 2009, 00:49

Direct Download via menu item not working

Post by cjmicro »

I have a download file that i can access directly with this link:

https://www.tbmakeover.org/rules-info-2 ... over-rules

I need this to be a short-url, so i set up a hidden menu item using system links, but it then gives a 404 error. How can i link directly? I need the downloads to be counted!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Direct Download via menu item not working

Post by Jan »

Hi, if the link to the file is a direct link, it cannot be counted, because there script is not running (to count the hit), the file is just downloaded by the server without running the script which can count the download (see similar topics in this forum)

What do you mean with "short-url". There is either a link to standard download with count function or the direct link without count option. :idea:

Jan
If you find Phoca extensions useful, please support the project
cjmicro
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Jul 2009, 00:49

Re: Direct Download via menu item not working

Post by cjmicro »

I can paste the URL in a browser window and download, which will count on the file count. But I cannot set up a menu item that points to that URL.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Direct Download via menu item not working

Post by Jan »

Yes, there is no such option to make a link direct to download. The way can be copying the URL and paste it as menu link (URL type) but this means doing it for all items :-( and there will be no short menu alias version :-(


Jan
If you find Phoca extensions useful, please support the project
cjmicro
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Jul 2009, 00:49

Re: Direct Download via menu item not working

Post by cjmicro »

Yes, that's what I am trying to do make it a menu item as a system URL link but it does not work it give me a 404 error. 😕
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Direct Download via menu item not working

Post by Jan »

Hi, then this is much more a question on Joomla! CMS developers as making menu item in such form is completely outside Phoca Download component and it cannot influence it. Really hard to say, I don't have any experiences with making direct links in menu items :idea: :-(

Jan
If you find Phoca extensions useful, please support the project
cjmicro
Phoca Member
Phoca Member
Posts: 12
Joined: 20 Jul 2009, 00:49

Re: Direct Download via menu item not working

Post by cjmicro »

I got it to work with a redirect. So. Site.com/xyz.com redirects to th eohoca download file link. It counts the downloads and this worked! Thank you!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47865
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Direct Download via menu item not working

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply