JComments

Integration of JComments to JMovies media catalogue

JMovies — media catalogue component for Joomla. The offered to your attention integration allows visitors to leave comments to catalogue's items (for examples, films).

Instructions for JMovies 1.2.5

  1. Open file /components/com_jmovies/templates/default/show_detail_tpl.php
  2. Find the line:
    if ($cinConfig['showcomment']) jm_box_comments();
    and replace with:
      if ($cinConfig['showcomment']) {
        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_jmovies', $row->titolo);
        }
      }
  3. Open file /components/com_jmovies/jmovies.php
  4. Find the line:
    $database->setQuery("SELECT COUNT(cmtid) FROM #__jmovies_comments WHERE cmtpic =".(int)$row->id);
    $row->commenti = $database->loadResult();
    and replace with:
      global $mosConfig_absolute_path;
      $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
      if (file_exists($comments)) {
        require_once($comments);
        $commenti = JComments::getCommentsCount($row->id, 'com_jmovies');
      }

Instructions for JMovies 1.0

  1. Open file /components/com_jmovies/jmovies.html.php
  2. Find the line:
        if ($cinConfig['showcomment']) cinCommenti();
    and replace with:
            if ($cinConfig['showcomment']) {
        global $mosConfig_absolute_path;
        $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
        if (file_exists($comments)) {
          require_once($comments);
          echo JComments::showComments($rowcin->id, 'com_jmovies', $rowcin->titolo);
        }
      }
  3. Open file /components/com_jmovies/jmovies.php
  4. Find the lines:
        $database->setQuery("SELECT COUNT(cmtid) FROM #__jmovies_comments WHERE cmtpic =".(int)$rowcin->id);
        $database->query();
        $commenti = $database->loadResult();
    and replace with:
      global $mosConfig_absolute_path;
      $comments = $mosConfig_absolute_path . '/components/com_jcomments/jcomments.php';
      if (file_exists($comments)) {
        require_once($comments);
        $commenti = JComments::getCommentsCount($rowcin->id, 'com_jmovies');
      }

See also:

 
JoomlaTune