JComments

Integration of JComments to MDDGallery

MDDGallery — image gallery component for Joomla made by russian developer Dmitry Markov. Among the galleries features the possibility to make the connection between the gallery catgory and site item shoulde be noted. The offered integration allows visitors to leave comments to images.

  1. Open file /components/com_mddgallery/mddgallery.html.php
  2. Find lines:
      <tr>
      <td>
        <p class="imgname" ><?php echo $row->imgtitle ; ?></p>
        
        <p class="imgdesc" ><?php echo $row->imgtext ; ?></P>
      </td>
      </tr>
    and insert after the following code:
      <tr>
      <td>
        <?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_mddgallery', $row->imgtitle);
          }  
        ?>
      </td>
      </tr>

See also:

 
JoomlaTune