[Solved] Phoca Plugin Only Displaying Code

Phoca Download - download manager
frt
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jul 2011, 13:42

Re: Phoca Plugin Not Working

Post by frt »

I just did a quick test to make sure the plugin is even being called/used. I edited the phocadownload.php (in the \plugins\content\phocadownload folder), near the top as seen here:

Code: Select all

require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocadownload'.DS.'helpers'.DS.'phocadownload.php' );

echo 'boo'; //test actual loading...

class plgContentPhocaDownload extends JPlugin
and "boo" was echoed on the page where I have my phocadownload code embedded. Just no rendering of the phocadownload code into the actual file download view. :(
katay
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Jul 2011, 09:44

Re: Phoca Plugin Not Working

Post by katay »

I did it everything yesterday with all listed problems. Just to do following:

-install component
-install plugin
-install download button (recommended)

-everything must be public - category, folder, files (if it is for unregistered too)
-everything must be enabled

-put the link to file through phoca download button (it generates 100% code), because if you use copy/paste tag, something happen in editor/code an tag does not work.

-ofc if you use SEF, you have to create hidden menu item and link it to phoca file category you created

After that you win.

katay
Dragonbait
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Jul 2011, 17:57

Re: Phoca Plugin Not Working

Post by Dragonbait »

hmm didn't seem to work for me, even using the button to create the code it still just shows me the code.
I don't use SEF, and I have tried it on a clean install of joomla 1.7 with just a single public document all with no joy :(
katay
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Jul 2011, 09:44

Re: Phoca Plugin Not Working

Post by katay »

Hm, strange. I did it on my Joomla 1.6, may be there is bug with 1.7. I had some problems but as I describe, everything is fixes yet. Put the link with article where is wrong tag. I can take a look if there is same looking failure sa I had.
frt
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jul 2011, 13:42

Re: Phoca Plugin Not Working

Post by frt »

Same here. I've tried uninstalling/reinstalling all three parts. Everything is public, I use the button to generate the code, I tried writting it manually... I don't use SEF. I've tried disabling every other nonsystem plugin. I upgraded to J1.7 last night from 1.6.5 hoping that might help, but it didn't. Still just the code displayed in the article. :(
frt
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jul 2011, 13:42

Re: Phoca Plugin Not Working

Post by frt »

Another quick note. During all this, I've been using no editor. Just plain old text entry. So whether I typed it in or the button entered the code, it's clean. As mentioned before, I can see the code as it should be written... in the source of the rendered page on the front end...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Plugin Not Working

Post by Jan »

Hi, if the pure code of the plugin is installed, then mostly this means:

the Phoca Download Plugin (not the Phoca Download Button Plugin) is not installed properly or it is not enabled in Plugin manager.
Jan
If you find Phoca extensions useful, please support the project
frt
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jul 2011, 13:42

Re: Phoca Plugin Not Working

Post by frt »

:? Everything has been uninstalled, cleaned up (verified folders/sql tables, etc were gone), reinstalled... Everything has been enabled. And yet the code is simply displayed in the rendered article page instead of displaying the desired file download view.

Best of luck to the rest of ya, I give up. :(

\\m//
mardink
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 30 Jul 2011, 21:49

Re: Phoca Plugin Not Working

Post by mardink »

Hi, I had the same problem.
I downloaded the plugin version 2.0.1, but it downloaded the wrong one. Make sure you click the correct version 2.0.1 and that you also get this version. Somehow the links to the files are mixed up.

Now I have the correct one. Go to download in the menu and click on the link file name and not the download button. When clicking the download button you get the old version and not 2.0.1. That was the reason it didn't work for me.

Martijn
frt
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jul 2011, 13:42

Re: Phoca Plugin Not Working

Post by frt »

:D
THANK YOU! Yes, those links could use some clarity. :x
Post Reply