Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: PonyGallery ML
Pages: [1]   Go Down
  Print  
Author Topic: PonyGallery ML  (Read 26926 times)
0 Members and 1 Guest are viewing this topic.
knowyourself
Guest
« on: April 05, 2008, 22:23:23 »

I would like to use jcomments with PonyGallery ML?
Logged
studee
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #1 on: June 28, 2008, 10:50:22 »

I would like to use jcomments with PonyGallery ML?


tat will be so great to have Beautiful jcomment with pony gallery ml !!

i second this thought

Dee
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #2 on: August 30, 2008, 00:22:43 »

Please, specify actual version of this component and its homepage url... PonyGallery ML and JoomGallery its one product or not?
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
chicagoogle
Guest
« Reply #3 on: October 30, 2008, 00:22:31 »

Please, specify actual version of this component and its homepage url... PonyGallery ML and JoomGallery its one product or not?

home page http://joomgallery.net/

as i know PonyGallery is almost the same as JoomGallery (JoomGallery is modified PonyGallery)
Logged
smart
Administrator
Hero Member
*****

Karma: 188
Offline Offline

Gender: Male
Posts: 1883



WWW
« Reply #4 on: October 30, 2008, 04:26:09 »

1. Open file sub_viewdetails.php find lines:

Code: (php)
if ( $ag_showcomment && !$slideshow ) {
    HTML_ponygallery2::ShowCommentsHead($allowcomment);
  if ( $ag_showcommentsarea == 2 ) {
    HTML_ponygallery2::ShowCommentsArea($allowcomment);
    HTML_ponygallery2::BuildCommentsForm($allowcomment);
  } else {
    HTML_ponygallery2::BuildCommentsForm($allowcomment);
    HTML_ponygallery2::ShowCommentsArea($allowcomment);
  }
}

and replace with

Code: (php)
global $mainframe;
$comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
      require_once($comments);
      echo JComments::showComments($id, 'com_ponygallery', $imgtitle);
}

2. Open file ponygallery.php find lines:

Code: (php)
    $database->setQuery("DELETE
        FROM #__ponygallery_comments
        WHERE cmtpic=$uid");

and replace with:

Code: (php)
    $database->setQuery("DELETE
        FROM #__jcomments
        WHERE object_id=$uid and object_group='com_ponygallery'");

3. Open file ponygallery.html.php find lines:

Code: (php)
          # Check how many comments exist
          $database->setQuery("SELECT cmtid
              FROM #__ponygallery_comments
              WHERE cmtpic='$row1->id'");
          $comments_result = $database->query();
          $comments = mysql_num_rows($comments_result);

and replace with

Code: (php)
global $mainframe;
      $comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
      if (file_exists($comments)) {
        require_once($comments);
        $comments = JComments::getCommentsCount($id, 'com_ponygallery');
      } else {
        $comments = 0;
      }

Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: PonyGallery ML
 
Jump to: