Page 2 of 2

Re: Phoca Galerry Plugin with Joomla 3

Posted: 27 Jun 2013, 15:09
by twoface
I'm looking for problem by my own. So what I found:
in file plugins/content/phocagallery/phocagallery.php there are 5 lines: 1449 - 1454

Code: Select all

if (isset($image->extid) && $image->extid != '') {
// SIZE WILL BE NOT CORRECTED
$oImg	= JHTML::_( 'image',$image->extl, '', '', '', $image->title );
} else {
$oImg	= JHTML::_( 'image.site', str_replace ('phoca_thumb_m_','phoca_thumb_l_',$image->linkthumbnailpath), '', '', '', $image->title );
}
When I've removed these lines plugin started to work and image is shown in frontend. There is only additionale error printed:

Code: Select all

Warning: Division by zero in /administrator/components/com_phocagallery/libraries/phocagallery/image/image.php on line 206
I've checed up and there is such function in joomla 3.0 "JHTML::_( 'image" and it's used in phocagallery component so maybe its not imported or the arguments are wrong. Please help to make this lines work.

Re: Phoca Galerry Plugin with Joomla 3

Posted: 02 Jul 2013, 23:20
by Jan
Hi, I will write new plugin for Joomla! 3. For now I have really no idea how it will work and which methods will be added - and really cannot say how to change Joomla! 2.5 plugin to Joomla! 3 plugin as I didn't do it yet (Joomla! 2.5 and 3 are different systems inside so I will write new plugin or if I will overwrite the old one, there will be a lot of changes which of course I don't know for now as I didn't see the code yet)

https://www.phoca.cz/phoca-needs-your-help/

Jan