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
Download button in file view not working
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button in file view not working
If you find Phoca extensions useful, please support the project
-
cohenu
- Phoca Member

- Posts: 28
- Joined: 30 Jan 2010, 14:22
Re: Download button in file view not working
the HTML is the same I don't changed it...
its work for you ?
its work for you ?
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button in file view not working
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
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
Jan
If you find Phoca extensions useful, please support the project
-
cohenu
- Phoca Member

- Posts: 28
- Joined: 30 Jan 2010, 14:22
Re: Download button in file view not working
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?
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?
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button in file view not working
Hi, your URL is not SEO ready, you need to paste it to JRoute method, e.g.
Jan
Code: Select all
$link = some link;
echo JRoute::_($link);If you find Phoca extensions useful, please support the project
-
cohenu
- Phoca Member

- Posts: 28
- Joined: 30 Jan 2010, 14:22
Re: Download button in file view not working
sorry I don't know where to put it, can you explain
?
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button in file view not working
Hi, if you have coded a link in your code, you need to paste to your coded link.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
cohenu
- Phoca Member

- Posts: 28
- Joined: 30 Jan 2010, 14:22
Re: Download button in file view not working
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
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
- Jan
- Phoca Hero

- Posts: 49138
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Download button in file view not working
You will customize the code - from button to linkhow can I tell the component to ignore the agreement and get the 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

- Posts: 28
- Joined: 30 Jan 2010, 14:22
Re: Download button in file view not working
ok I will try to work on it and if I find a solution I will post it here, Thanks a lot 