Integration of JComments to AdsManager
|
AdsManager — Joomla classifieds component was written based on MarketPlace source code. in spite of the development of the component is finished in April, it is still the popular meaning to create the classifieds board under Joomla. The JComments component integration to classifieds board will allow all users to leave the comments to the classifieds.
- Open file /components/com_adsmanager/adsmanager.html.php
- Find the following lines:
<?php if ($unique == 1) { ?>
<div class="back_button">
<a href='javascript:history.go(-1)'>
<?php echo ADSMANAGER_BACK_TEXT; ?>
</a>
</div>
<?php
} else {
echo "<br />";
}
?>
and insert the following code after:
<?php
global $mosConfig_absolute_path;
$comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
require_once($comments);
echo JComments::showComments($row->id, 'com_adsmanager', $row->ad_headline);
}
?>
See also:
|