Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Problem with refresh link within Jaggyblog
Pages: [1]   Go Down
  Print  
Author Topic: Problem with refresh link within Jaggyblog  (Read 3227 times)
0 Members and 2 Guests are viewing this topic.
doug evans
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: July 16, 2011, 21:50:30 »

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:
Code:
$postItem = _findItem($needles,$catid);

And here is the code within the jaggyblog plug-in jcomments:
Code:
<?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
« Last Edit: July 17, 2011, 00:41:36 by doug evans » Logged
doug evans
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #1 on: July 17, 2011, 00:43:22 »

Okay, here is how I fixed it:

I just commented out the code:
Code:
//$postItem = _findItem($needles,$catid);
and everything still appears to work within the blog and Jcomment is working awesomely!

Doug
Logged
brodin
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #2 on: October 04, 2011, 16:09:57 »

Hi I am using the developer of jaggy blog’s plug-in for jcommets too. I also have the same problem while I make a new post. I tried a lot of things to fix this problem, but that got me nowhere. It’s annoying me that I can’t fix this. Also, as in your case, the refresh button won’t work for me too. And the error I get is the same as what u get. Any help on this problem would be very helpful. Can you help me to find hhgregg linkedin account.
« Last Edit: October 17, 2011, 19:34:26 by brodin » Logged

hello
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: October 07, 2011, 20:16:03 »

There this extension could be downloaded? Is it free? Give me more information and I'll try to help you.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Problem with refresh link within Jaggyblog
 
Jump to: