Page 1 of 1

Phoca download plugin

Posted: 23 Mar 2018, 14:07
by Maros
Hi,
I have an an issue about Joomla /Phoca download plugin. I wanted to insert "File link" into an article but it didn´t succeed.
I try to decribe this proces.
- Insert new Articel
- write "Name of articel"
- Click at the button "Phoca download file"
- Choose the file
- Click "Insert code"
and now, in the same window appeared "Joomla admin site" instead of closing the window and inserting the code into the articel.

The following code wasn´t inserted too the article: {phocadownload view=file|id=NNN|target=s} .

Information about system : Joomla ver.3.8.5
PHP : 7.0


Thanks a lot for your ideas.

Re: Phoca download plugin

Posted: 26 Mar 2018, 00:35
by Jan
Hi, this seems like the link is broken or the javascript function which is used to add the link is broken :idea:

Which version of both plugins do you use? (button and content). Can you paste the screenshot of the popup?

When you click on the link, do you get any javascript error in javascript console? ( https://www.phoca.cz/documents/16-jooml ... -conflicts )

Jan

Re: Phoca download plugin

Posted: 26 Mar 2018, 10:28
by Maros
Hi Jan,
thank you for your reply.
Phoca download, Phoca download plugin, Phoca download button plugin are same ver. 3.06
There are screenshots :
https://drive.google.com/open?id=1712S5 ... Hf2QqW4VeP

Re: Phoca download plugin

Posted: 26 Mar 2018, 11:38
by Jan
Hmm, did you take a look at the javascript console?

Jan

Re: Phoca download plugin

Posted: 26 Mar 2018, 19:53
by Maros

Re: Phoca download plugin

Posted: 27 Mar 2018, 06:00
by Maros
Dear Jan,
I have looked for solution on the internet and it was found.
In file view.html.php ../administrator/components/com_phocadownload/views/phocadownloadlinkfile/

Line ( 121) was changed
$this->assignRef('tmpl', $tmpl);
instead of:
$this->assignRef('tmpl', $this->t);

Now, it seems that my problem was fixed.
But, what do you think about this ?
Maros,

Re: Phoca download plugin

Posted: 30 Mar 2018, 11:03
by Jan
Hi, which version of Phoca Download do you run. There is no more $tmpl, because it was changed to $this->t and it does not need to be assigned more because $this->t is valid in output file. :idea:

Jan

Re: Phoca download plugin

Posted: 31 Mar 2018, 10:39
by Maros
ver. 3.06

Re: Phoca download plugin

Posted: 02 Apr 2018, 16:53
by Jan
So you should update to 3.1.3.

Jan