Hi Everyone. I have jcomments installed and am using the developer of jaggyblog's plug-in for jcomments. Everything works fine until I post a comment. The new comment does not automatically show up and the refresh comments button and link do not work. I only see the new comment after the whole page is refeshed via the browser button.
Here is the error I get in firebug:
"Fatal error: Call to undefined function _finditem() in /home/mysitename/public_html/components/com_jaggyblog/router.php on line 41"
Here is the line of code on line 41:
$postItem = _findItem($needles,$catid);
And here is the code within the jaggyblog plug-in jcomments:
<?php
class jc_com_jaggyblog extends JCommentsPlugin {
function getObjectTitle( $id ) {
// Data load from database by given id
$db = & JCommentsFactory::getDBO();
$db->setQuery( "SELECT title FROM #__content WHERE id='$id'");
return $db->loadResult();
}
function getObjectLink( $id ) {
// Itemid meaning of our component
$_Itemid = JCommentsPlugin::getItemid( 'com_jaggyblog' );
// url link creation for given object by id
$link = JRoute::_( 'index.php?option=com_jaggyblog&task=viewpost&id='. $id .'&Itemid='. $_Itemid );
return $link;
}
function getObjectOwner( $id ) {
$db = & JCommentsFactory::getDBO();
$db->setQuery( 'SELECT created_by, id FROM #__content WHERE id = ' . $id );
return $db->loadResult();
}
}
?>
Any help or direction at all would be very appreciated!
Thanks in advance,
Doug