Page 1 of 2

Results with phoca download search plug-in

Posted: 03 Sep 2012, 13:17
by miniil
Hi,

Is it possible to have the link on the file in the results list in place of the link to the category.

Thanks in advance.

Re: Results with phoca download search plug-in

Posted: 24 Sep 2012, 23:00
by Jan
Hi, this needs to be customized in the code (the category id is there, so this needs to be only outputed). :idea:

Jan

Re: Results with phoca download search plug-in

Posted: 19 Nov 2012, 20:19
by jasklein
Would this be difficult to do? I have the same issue. Seems like it would be the ideal way for the search to work for most users. Could somebody show how?

Re: Results with phoca download search plug-in

Posted: 25 Nov 2012, 21:30
by Jan
Hi, it should be easy but I didn't do this, so cannot really say :-(

Re: Results with phoca download search plug-in

Posted: 28 Nov 2012, 04:21
by jasklein
Jan wrote:Hi, it should be easy but I didn't do this, so cannot really say :-(
I see. Would anyone be able to do this or point me to someone who could. We need this but trying to avoid using a different component.

Re: Results with phoca download search plug-in

Posted: 29 Nov 2012, 15:42
by Mitsuhirato
Well, I stumbled over this too. Now I solved it.

In line 243 of phocadownload.php (you can find this file in plugins/search/phocadownload) I changed this line:
. ' "2" AS browsernav, c.id as catid, c.alias as catalias');
to
. ' "2" AS browsernav, c.id as catid, c.alias as catalias, a.filename as filename2'); //filename2 can be a name of your choice

I commented out Line 273 and put underneath the following code:
$listFiles[$key]->href = "http://yourserverip/yourjoomlasitename/ ... >filename2;

This should do it.

Re: Results with phoca download search plug-in

Posted: 08 Dec 2012, 21:19
by Jan
Ok

Re: Results with phoca download search plug-in

Posted: 09 Dec 2012, 22:18
by jasklein
Mitsuhirato wrote:Well, I stumbled over this too. Now I solved it.

In line 243 of phocadownload.php (you can find this file in plugins/search/phocadownload) I changed this line:
. ' "2" AS browsernav, c.id as catid, c.alias as catalias');
to
. ' "2" AS browsernav, c.id as catid, c.alias as catalias, a.filename as filename2'); //filename2 can be a name of your choice

I commented out Line 273 and put underneath the following code:
$listFiles[$key]->href = "http://yourserverip/yourjoomlasitename/ ... >filename2;

This should do it.
thank you so much

Re: Results with phoca download search plug-in

Posted: 06 Mar 2013, 16:22
by fariella
Hi, Is there a way to this without adding the url in the code.
I´m testing a site on a local server and I want to copy the code when i´m done. This code doesn´t work on a local server.
Thanks in advance.

Re: Results with phoca download search plug-in

Posted: 30 Aug 2013, 00:32
by jexplorer
Mitsuhirato wrote:Well, I stumbled over this too. Now I solved it.

In line 243 of phocadownload.php (you can find this file in plugins/search/phocadownload) I changed this line:
. ' "2" AS browsernav, c.id as catid, c.alias as catalias');
to
. ' "2" AS browsernav, c.id as catid, c.alias as catalias, a.filename as filename2'); //filename2 can be a name of your choice

I commented out Line 273 and put underneath the following code:
$listFiles[$key]->href = "http://yourserverip/yourjoomlasitename/ ... >filename2;

This should do it.
@Mitsuhirato You're a genius, thank you. Right on and worked like a charm.