Phoca download plugin

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
Maros
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 23 Mar 2018, 11:03

Phoca download plugin

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca download plugin

Post 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
If you find Phoca extensions useful, please support the project
Maros
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 23 Mar 2018, 11:03

Re: Phoca download plugin

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca download plugin

Post by Jan »

Hmm, did you take a look at the javascript console?

Jan
If you find Phoca extensions useful, please support the project
Maros
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 23 Mar 2018, 11:03

Re: Phoca download plugin

Post by Maros »

Maros
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 23 Mar 2018, 11:03

Re: Phoca download plugin

Post 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,
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca download plugin

Post 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
If you find Phoca extensions useful, please support the project
Maros
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 23 Mar 2018, 11:03

Re: Phoca download plugin

Post by Maros »

ver. 3.06
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48343
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca download plugin

Post by Jan »

So you should update to 3.1.3.

Jan
If you find Phoca extensions useful, please support the project
Post Reply