Phoca Galerry Plugin with Joomla 3

Phoca Gallery plugins - plugins for Phoca Gallery extension
twoface
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 Jun 2013, 15:41
Location: Poland
Contact:

Re: Phoca Galerry Plugin with Joomla 3

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Galerry Plugin with Joomla 3

Post 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
If you find Phoca extensions useful, please support the project
Post Reply