Integration with JoomLeague would be very helpful
Try to ask about this the JoomLeague's developers? This would be more correct because in this case you will not needed to repeat modification every time new version JoomLeague released...
Any update to that (for joomleague)?
There is already a plugin on joomlegue site
<?php
/**
* @version $Id: comments.php 4905 2010-01-30 08:51:33Z and_one $
* @package Xxxx
* @copyright Copyright (C) 2008 Julien Vonthron. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Xxxx is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// Import library dependencies
jimport('joomla.event.plugin');
// load language file for frontend
JPlugin::loadLanguage( 'plg_system_xxxx', JPATH_ADMINISTRATOR );
class plgJoomleagueComments extends JPlugin {
public function plgJoomleagueComments(&$subject, $config = array())
{
parent::__construct($subject, $config);
}
/**
* adds comments to match reports
* @param object match
* @param string title
* @return boolean true on success
*/
public function onMatchReportComments(&$match, $title, &$html)
{
$app = JFactory::getApplication();
$comments = $app->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments))
{
require_once($comments);
$html = '<div class="jlgcomments">'.JComments::showComments($match->id, 'com_joomleague.matchreport', $title).'</div>';
return true;
}
return false;
}
/**
* adds comments to match preview
* @param object match
* @param string title
* @return boolean true on success
*/
public function onNextMatchComments(&$match, $title, &$html)
{
$app = JFactory::getApplication();
$comments = $app->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments))
{
require_once($comments);
$html = '<div class="jlgcomments">'.JComments::showComments($match->id, 'com_joomleague.nextmatch', $title).'</div>';
return true;
}
return false;
}
}
?>
So far so good... it works... but on jcomments admin backend we can't see any title/link for which match this comment was for

Any chance to have a title/link to the match in jcomment admin backend?