Integrate Comments into Ads Manager
AdsManager is one of the best Classifieds Marketplace Extension for Joomla. If you are using it for your website, then you may also need to have Comments Feature in it, which doesnt come in Ads manager from default. So,here is a small hack, where we will use jComments to get our job done.
Â
Open this file, /components/com_adsmanager/adsmanager.html.php And 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 />";
}
?>
Then just paste this below code after the above code in that file,
<?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);
}
?>





joomlaservices
joomlaservices
394295112
joomlaservices
+91-9853790816
joomlaservices

Comments