Page 2 of 2

Re: Problem using Phoca Download File Module with GDrive lin

Posted: 06 Mar 2014, 13:10
by Mentos
Is this file in PD 2? Because I can't find it

Re: Problem using Phoca Download File Module with GDrive lin

Posted: 08 Mar 2014, 20:33
by Jan
Hi, no, the file I have added is Phoca Download 3 file, this is the place where you can remove the checking.

Jan

Re: Problem using Phoca Download File Module with GDrive lin

Posted: 10 Mar 2014, 10:08
by Mentos
And in PD 2, how can I do it?

Re: Problem using Phoca Download File Module with GDrive lin

Posted: 11 Mar 2014, 19:31
by Mentos
I solved using this code in com_phocadownload/helpers/phocadownload.php from line 50

Code: Select all

$errorAllowed 		= preg_match("/PhocaError/i", $allowedMimeType);
$errorDisallowed	= preg_match("/PhocaError/i", $disallowedMimeType);
			
$errorAllowed 		= false;
$errorDisallowed 	= true;
But for the Feed RSS/Atom, the feed item link is not the download link but is is the category link. Is there a way for setting the download link?
Thanks

Re: Problem using Phoca Download File Module with GDrive lin

Posted: 11 Mar 2014, 19:41
by Jan
Hi, as written above, for PD this needs to be customized (as example how it works in PD 3, I have pasted the file here)

Jan

Re: Problem using Phoca Download File Module with GDrive lin

Posted: 12 Mar 2014, 10:17
by Mentos
Ok solved. I edited the com_phocadownload/views/feed/view.feed.php, replacing the code with the following:

Code: Select all

$link = JRoute::_( PhocaDownloadHelperRoute::getFileRoute( $valueDoc->id, $valueDoc->categoryid, $valueDoc->alias, $valueDoc->categoryalias, $valueDoc->sectionid ) );
				
$item->link 		= $link;
if you want the download link you should use instead:

Code: Select all

$link  = JRoute::_( PhocaDownloadHelperRoute::getFileRoute( $valueDoc->id, $valueDoc->categoryid, $valueDoc->alias, $valueDoc->categoryalias, $valueDoc->sectionid, 'download' ) );

Re: [SOLVED] Problem using Phoca D. File Module with GDrive

Posted: 17 Mar 2014, 01:31
by Jan
Ok, thank you for the guide.

Jan