Page 3 of 4
Re: Download button in file view not working
Posted: 04 Feb 2010, 14:10
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
Re: Download button in file view not working
Posted: 04 Feb 2010, 16:53
by cohenu
the HTML is the same I don't changed it...
its work for you ?
Re: Download button in file view not working
Posted: 04 Feb 2010, 17:48
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
Re: Download button in file view not working
Posted: 04 Feb 2010, 19:03
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?
Re: Download button in file view not working
Posted: 05 Feb 2010, 17:38
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
Re: Download button in file view not working
Posted: 05 Feb 2010, 20:34
by cohenu
sorry I don't know where to put it, can you explain

?
Re: Download button in file view not working
Posted: 08 Feb 2010, 17:14
by Jan
Hi, if you have coded a link in your code, you need to paste to your coded link.
Jan
Re: Download button in file view not working
Posted: 08 Feb 2010, 21:59
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

Re: Download button in file view not working
Posted: 09 Feb 2010, 10:31
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
Re: Download button in file view not working
Posted: 09 Feb 2010, 23:42
by cohenu
ok I will try to work on it and if I find a solution I will post it here, Thanks a lot
