Page 1 of 1

Phoca Gallery and mod_newsflash

Posted: 27 Jul 2010, 20:52
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?

Re: Phoca Gallery and mod_newsflash

Posted: 31 Jul 2010, 14:06
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

Re: Phoca Gallery and mod_newsflash

Posted: 31 Jul 2010, 17:50
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?

Re: Phoca Gallery and mod_newsflash

Posted: 01 Aug 2010, 14:38
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