Slogan LiveZilla Live Help

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);
  }
?>

Comments

Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
button_logo_portfolio
button_quote
button_testimonials

Subscribe Tutorials

Enter your email address:

Paypal Donation

Enter Amount:

Subscribe Joomla Tutorials Newsletter

Name:

Email:


Enter your email address: