Phoca Gallery and mod_newsflash

Phoca Gallery plugins - plugins for Phoca Gallery extension
koppie7
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 27 Jul 2010, 20:43

Phoca Gallery and mod_newsflash

Post by koppie7 »

Hi,

I'm using Phoca Gallery plugin in my articles an this is working fine.
For example: on my frontpage is a article shown with this code:
{phocagallery view=category|categoryid=8|limitstart=0|limitcount=3|detail=8|type=1}
Working well.

Now, do I have a right menu in which I display a newsflash module.
The articles in this module do not display the images like above but only the text:
{phocagallery view=category|categoryid=8|limitstart=0|limitcount=3|detail=8|type=1}

Am I doing something wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery and mod_newsflash

Post by Jan »

Hi, Phoca Gallery Plugin is a content plugin, it means it works only in articles. If you need it will work in e.g. module position you need to install some extension which will allow it. Try to search JED - extensions.joomla.org

Jan
If you find Phoca extensions useful, please support the project
koppie7
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 27 Jul 2010, 20:43

Re: Phoca Gallery and mod_newsflash

Post by koppie7 »

Ok, that's clear.
But that means that if I use it in articles, the same article can only be shown in the newsflash module with the code visible which I use in the article. Or is there a way to prevent the code (which is eg.: {phocagallery view=category|categoryid=8|limitstart=0|limitcount=3|detail=8|type=1} )to be shown when the article is visible in the newsflash module.

If not, then this is maybe a usefull addon for the plugin. (don't show code in module)

I'm not a PHP-programmer, so I don't know if something like this is possible.
Maybe you do?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery and mod_newsflash

Post by Jan »

Hi, I have no experiences with the mod but the mod should run the plugin code and if it cannot run the plugin code then it should to know how to remove the code so the plugin code will be not displayed. If there is no such option, this needs to be customized for the module. so e.g. you will add something like that:

Code: Select all

$pattern 		= '/\{(.*)\}/Ui';
			$replacement 	= '';
			$documentOutput = preg_replace($pattern, $replacement, $documentOutput);
to the code so the not working plugin code will be not displayed. (where $documentOutput is the whole output of the module)

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