Integration of JComments to JPortfolio
|
JPortfolio — Joomla component to create portfolio section with categories of works examples. The JComments component integration allows all users to leave the comments to portfolio items.
- Open file /components/com_jportfolio/jportfolio.html.php
- Find lines:
echo $proj[0]->description.'<br />';
echo '</div>';
echo '</div>';
bottom();
echo '</div>';
and insert after:
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($proj[0]->id, 'com_jportfolio', $proj[0]->name);
}
See also:
|