Hi,
i think the "jDownloads Content Plugin" have 2 Bugs or missing options.
EDIT As there were two bugs reported, this post has been split in two posts one per bugsee
http://www.jdownloads.com/forum/index.php?topic=8516 for the second one
First one:the jDownloads Content Plugin use the Layouts from "Downloads" right?
In the Layout from "Downloads" the Placeholder "{sum_jcomments}" working perfect.
But in the jDownloads Content Plugin is this missing.
It's replace - but with nothing.
in the /plugins/content/jdownloads/jdownloads.php is the code
// view sum comments
if ($jlistConfig['view.sum.jcomments'] && $jlistConfig['jcomments.active']){
// check that comments table exist - get DB prefix string
$prefix = $db->getPrefix();
// sometimes wrong uppercase prefix result string - so we fix it
$prefix2 = strtolower($prefix);
$tablelist = $db->getTableList();
if (in_array($prefix.'jcomments', $tablelist ) || in_array($prefix2.'jcomments', $tablelist )){
$db->setQuery('SELECT COUNT(*) from #__jcomments WHERE object_group = \'com_jdownloads\' AND object_id = '.$files[$i]->file_id);
$sum_comments = $db->loadResult();
if ($sum_comments >= 0){
$comments = sprintf(JText::_('COM_JDOWNLOADS_FRONTEND_JCOMMENTS_VIEW_SUM_TEXT'), $sum_comments);
$l_Template = str_replace('{sum_jcomments}', $comments, $l_Template);
} else {
$l_Template = str_replace('{sum_jcomments}', '', $l_Template);
}
} else {
$l_Template = str_replace('{sum_jcomments}', '', $l_Template);
}
} else {
$l_Template = str_replace('{sum_jcomments}', '', $l_Template);
}
missing.
But the Code not really work :(
Nyx