Phoca Gallery Plugin does not work in module

Phoca Gallery plugins - plugins for Phoca Gallery extension
zocha
Phoca Member
Phoca Member
Posts: 23
Joined: 12 Nov 2008, 14:25

Phoca Gallery Plugin does not work in module

Post by zocha »

Hello,

I use com_phocagallery_v2.1.0_RC with plg_phocagallery_v2.1.0 on Joomla 1.5.7. On Phoca Gallery Plugin - Switch (Swap) Image site I've found plugin code in two parts. I've put one of them into one article and the other into second article. Then I've put the second article (with category view) into module with mod_newsflash. The first article with plugin works just fine but instead of table with thumbnails in the module I've got plugin code visible. Is it possible to make it work? I just need to have full image in main content pane but thumbnails in other place (module).

Thanks in advance,
Łukasz Indeka
Łukasz Indeka
Joomla VirtueMart
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Phoca Gallery Plugin does not work in module

Post by caro84g »

Hi,

I wonder seriously if it's possible to have some plugin code executed when an article is displayed in the newsflash module. Have you tried this with other plugins?

Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
zocha
Phoca Member
Phoca Member
Posts: 23
Joined: 12 Nov 2008, 14:25

Re: Phoca Gallery Plugin does not work in module

Post by zocha »

Hi,

I haven't. I've found on Joomla! Discusion Forums, than that works in J1.0 but probably not in 1.5. :(

So if you're right, is there any chance to have module only with chosen category thumbnails? I haven't found such a module. Best for me would be module (or 3 separate modules: Categories, Images and Switch Image) with settings exactly like in Displaying Phoca Gallery Plugin document.

Then I could put parts of gallery anywhere on my page.

Best regards,
Łukasz Indeka
Łukasz Indeka
Joomla VirtueMart
User avatar
caro84g
Phoca Hero
Phoca Hero
Posts: 1369
Joined: 11 Feb 2008, 17:52
Location: Holland
Contact:

Re: Phoca Gallery Plugin does not work in module

Post by caro84g »

Hi,

As far as I know there isn't such a module available out of the box. You could take a look at the Random Image Module and see whether you could modify it to your needs. I think it needs some hacking, but it might be possible.

Good luck!

Carolien
Please ask your support questions in the forums and not via PM - I delete those PM's
Backup before you do any major change to your website (and test first)
zocha
Phoca Member
Phoca Member
Posts: 23
Joined: 12 Nov 2008, 14:25

Re: Phoca Gallery Plugin does not work in module

Post by zocha »

Hi,

Thank you for your help Carolien.
caro84g wrote:You could take a look at the Random Image Module and see whether you could modify it to your needs.
I've got Random Image Module and it looks optimistic - theoretically I should only change onhoover or/and onclick methods (if I understand it correctly). But I'm scared of the number of variables in the code - I feel lost. :(

Thanks again,
Łukasz
Łukasz Indeka
Joomla VirtueMart
zocha
Phoca Member
Phoca Member
Posts: 23
Joined: 12 Nov 2008, 14:25

Re: Phoca Gallery Plugin does not work in module

Post by zocha »

Hello,

I've managed to do it! :D

I'm attaching the modified file mod_phocagallery_random_image.php. Maybe somebody else could use it. If you want, you could also include it on your page as a separate module. I've left changed values in CSS code (client wanted very small thumbnails with very thin frame).

Usage:
  • Put PhocaGallery plugin into article. Set it as "Switch Image".
  • Put modified mod_phocagallery_random_image module anywhere on your page
  • Now on hoovering over thumbnail in module, the plugin content should change.
Example (the page I've changed it for): OKNOpleX

Best regards,
Łukasz Indeka
Łukasz Indeka
Joomla VirtueMart
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Plugin does not work in module

Post by Jan »

Great, thank you for this module, I will take a look at it and give it to download site...

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