Page 1 of 1

Customization

Posted: 30 Mar 2010, 00:24
by Maoartland
Hi guys

I need some help...
I have done some customization to phocagallery to suit my design needs...
I use Jcomment, and i wanted to modify the layout where Jcomment appears to just have Jcomment, and no panels.

See here what i mean :

http://maoartland.com/index.php/photogr ... netes.html

I have modified default.php (view/category/tmpl) around line 497.

Original :
echo $pane->endPanel();
}

if ((int)$this->tmpl['displaycomment'] == 1) {
echo $pane->startPanel( JHTML::_( 'image.site', 'components/com_phocagallery/assets/images/icon-comment.'.$this->tmpl['formaticon'],'', '', '', '', '') . ' '.JText::_('Comments'), 'pgcomments' );


if (JComponentHelper::isEnabled('com_jcomments', true) && $this-

Modif:
echo $this->loadTemplate('rating');
echo $pane->endPanel();
}

if (JComponentHelper::isEnabled('com_jcomments', true) && $this-

Everything worked fine in local but got errors online:

Warning: Missing argument 1 for JPaneTabs::startPanel(), called in D:\www\maoartland.com\htdocs\components\com_phocagallery\views\category\tmpl\default.php on line 497 and defined in D:\www\maoartland.com\htdocs\libraries\joomla\html\pane.php on line 160

Warning: Missing argument 2 for JPaneTabs::startPanel(), called in D:\www\maoartland.com\htdocs\components\com_phocagallery\views\category\tmpl\default.php on line 497 and defined in D:\www\maoartland.com\htdocs\libraries\joomla\html\pane.php on line 160

Any idea how i could fix that?
Thanks in advance!

Re: Customization

Posted: 01 Apr 2010, 15:13
by Jan
Hi, check if the functions in JPane class get all the arguments they need, maybe there are missing some of them.

Jan