Download button in file view not working

Phoca Download - download manager
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button in file view not working

Post by Jan »

Hi, I mean customizing the code (PHP/HTML) so the button in File View will be changed to some URL. With standard link I mean an URL which is not button.

Jan
If you find Phoca extensions useful, please support the project
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

Re: Download button in file view not working

Post by cohenu »

the HTML is the same I don't changed it...
its work for you ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button in file view not working

Post by Jan »

Hi, but you need to change it to yourself solution.

It means, for now there is used button in File View - this is imoprtant because of license agree. If you don't need the button + license agree behavour and you need the link which can link with _blank attribute, you need to do customization on your site of the File View :( This cannot be added to Phoca Download as default as then this will stop other feature working :-(


Jan
If you find Phoca extensions useful, please support the project
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

Re: Download button in file view not working

Post by cohenu »

ok I tried with license and still not working I think its something with the url's

this is my url before I click on download : http:// localhost/site/downloads/file/11-icq
after I click on download the url is: :
http:// localhost/site/index.php?option=com_phocadownload&view=file&id=11:icq&Itemid=3

what do you think it is?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button in file view not working

Post by Jan »

Hi, your URL is not SEO ready, you need to paste it to JRoute method, e.g.

Code: Select all

$link = some link;
echo JRoute::_($link);
Jan
If you find Phoca extensions useful, please support the project
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

Re: Download button in file view not working

Post by cohenu »

sorry I don't know where to put it, can you explain :? ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button in file view not working

Post by Jan »

Hi, if you have coded a link in your code, you need to paste to your coded link.

Jan
If you find Phoca extensions useful, please support the project
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

Re: Download button in file view not working

Post by cohenu »

Sorry again I don't understand ...

lets say I have this link - http://ftp.icq.com/pub/ICQ7/install_icq7.exe in External URL Link,

how can I tell the component to ignore the agreement and get the link ?

Where I need to change it ?

I don't use the agreement at all and by the way if I enable the agreement it not work too,

Please help me man I really need it :(
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download button in file view not working

Post by Jan »

how can I tell the component to ignore the agreement and get the link ?
You will customize the code - from button to link

Where I need to change it ?

components\com_phocadownload\views\file\tmpl\default.php

But I didn't du such modification, so I cannot explain it exactly as I don't know it exactly :(

Jan
If you find Phoca extensions useful, please support the project
cohenu
Phoca Member
Phoca Member
Posts: 28
Joined: 30 Jan 2010, 14:22

Re: Download button in file view not working

Post by cohenu »

ok I will try to work on it and if I find a solution I will post it here, Thanks a lot :)
Post Reply