RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : October 30 12:12:01 PM
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Features (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Comments and rating overall view
Advanced search
  « previous next »
Pages 1
Author
Topic: Comments and rating overall view  (Read 1127 times)
« on: August 08 07:54:47 AM »
Alexander Sidorenko Offline
Newbie
*
Posts: 6

View Profile Email

Hi!
It seems that RSGallery doesn't have ability to show how much comments or ratings have image in overall view. So I need to check every image from fron-end to see about new comments or ratings.
I suppose it would be useful to have rating/comments statistic in Manage Items section in back-end. Or some notification about new comments/ratings.
Logged
 
Reply #1
« on: October 28 06:54:53 PM »
Dennis Offline
Newbie
*
Posts: 3

View Profile Email

I believe JomComment is an excellent Commenting system that is used on so many websites that it would be nice to have just one commenting system.  it would be nice to see RSGallery more integrated with the website to include using the websites commenting and rating system (even if its something besides JomComment).

On Jom Comments website I found this article for RSGallery2 1.14 but of course the latest release of RSGallery2 is 1.16 and I'm not sure if it matters whether Joomla is 1.0.xx or 1.5.x but its worth a shot

  RSGallery2 version 1.14.3 (SVN 649)

    * Open up the file JOOMLA/components/com_rsgallery2/templates/semantic/display.class.php * Look for the following block of codes which should be at around line 381 onwards,

Code:
if ( $rsgConfig->get("displayComments") ) {
$tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
$this->_showComments();
$tabs->endTab();
}
</per>

Modify it so that it would look as below,

<pre>
if ( $rsgConfig->get("displayComments") ) {
global $mosConfig_absolute_path;
include_once($mosConfig_absolute_path . '/components/com_jomcomment/mambots.php');
$item = rsgInstance::getItem();
echo jomcomment($item->id, 'com_rsgallery2');
$tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
$this->_showComments();
$tabs->endTab();
}
« Last Edit: October 28 07:15:32 PM by Dennis » Logged
 
Reply #2
« on: October 29 09:30:04 PM »
piersol Offline
Newbie
*
Posts: 4

View Profile Email

I am attaching a file that when updated will embed jom_comment properly with rsg2. The directions above didnt work well for me using Joomla 1.5x

This attached file replaces the same file inside the semantic template folder. This is for RSGallery2 1.16

For other versions manually change the following:

if ( $rsgConfig->get("displayComments") ) {
         $tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
         $this->_showComments();
         $tabs->endTab();
      }

To:

if ( $rsgConfig->get("displayComments") ) {

$tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
/** Jom Comment Hacks **/
global $mosConfig_absolute_path;
include_once($mosConfig_absolute_path . '/components/com_jomcomment/mambots.php');
$item = rsgInstance::getItem();
echo jomcomment($item->id, 'com_rsgallery2');
/** End Jom Comment Hacks **/
//$this->_showComments(); COMMENT THIS LINE OUT OR DELETE IF NECESSARY
$tabs->endTab();
}
« Last Edit: October 29 09:32:45 PM by piersol » Logged
 
Print  Pages 1
« previous next »
Jump to: