function commentCreate()
{
jimport('joomla.error.log');
$log = &JLog::getInstance('com_jfbconnect.comments.log.php');
$log->addEntry(array('comment' => 'New comment detected');
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$configModel = $jfbcLibrary->getConfigModel();
$href = JRequest::getVar('href');
$href = urldecode($href);
$title = JRequest::getVar('title');
$log->addEntry(array('comment' => 'URL: ' . $href . ', title: ' . $title);
// Assign alpha user points, if enabled
$this->rewardAlphaUserPoints($configModel->getSetting('social_alphauserpoints_enabled'), $href, 'comment');
// Check if admin email should be sent
if (!$configModel->getSetting('social_notification_comment_enabled'))
{
$log->addEntry(array('comment' => 'Comment notifications are disabled!');
exit;
}
//$commentId = JRequest::getVar('commentID');
// Comment is too unreliable to get immediately (almost never there), so not including it in email for now
//$comment = $jfbcLibrary->api('/comments/?ids='.urlencode($href));
$subject = JText::_('COM_JFBCONNECT_NEW_COMMENT_SUBJECT');
$body = JText::sprintf('COM_JFBCONNECT_NEW_COMMENT_BODY', $this->getPoster(), $title, $href);
$log->addEntry(array('comment' => 'Sending email');
$this->_sendEmail($subject, $body);
exit;
}
Each comment should generate those 3 strings. If they are generated, but an email isn't sent, it means that Joomla is likely having issues (though there's a little more logging we can add to verify that). If those lines aren't being generated, or only parts of them are, it means that our code isn't being called or completing for some reason.New comment detected
URL: site.com/link, title: Title of article
Sending email
That's a tough question. Joomla 1.5 is already past End of Life and is no longer being developed or even supported by Joomla.org. There was a security issue in Joomla 1.5.26 that was discovered late last year and only patched by the community ( see here to get an unofficial patch ). if other security issues are found, they may never be patched and it likely won't be as widely announced to make sure everyone knows to update.Our developer has quit. How long can I rely on using 1.5 before I upgrade? (It’s working fine for our needs).
The developer said it was a big job to upgrade to 2.5. Is this true, in general?
This seems to be like an issue with Facebook. We heard a separate report that the Like button (which has a comment box popup) isn't properly posting to Facebook either when used. We're looking into it right now.When I’m making a comment and check the box “Publish on Facebook” (at least that’s what mine says -- in Norwegian), the comment does NOT appear on my Facebook timeline. How can this be?
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.