Integration of JComments to MarketPlace
|
The MarketPlace — component of classified ads with support of unlimited categories quantity, possibility to delete or edit of user's own items and many others usefull features. The JComments integration to this component will allow all users to leave the comments to classifieds.
- Open file /components/com_marketplace/show_ad.php
- Find the following lines:
echo "<tr>";
echo "<td class='small' align='center'>";
echo "<br>";
echo "<br>";
include($mosConfig_absolute_path.'/components/com_marketplace/footer.php');
echo "</td>";
echo "</tr>";
and insert before that lines the following code:
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo "<tr>";
echo "<td class='small' align='center'>";
echo JComments::showComments($ad_id, 'com_marketplace', $ad_headline);
echo "</td>";
echo "</tr>";
}
See also:
|