-
AuthorPosts
-
itgl72 Friend
itgl72
- Join date:
- March 2008
- Posts:
- 230
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 41
- Thanked:
- 10 times in 1 posts
April 10, 2008 at 4:47 pm #127444I was looking at making a hack in the code to make my JomComment work with the RSGALLERY comment system.
It tells me on THIS PAGE to find a piece of code on /com_rsgallery2/templates/semantic/display.class.php and add something after it.
Thats all well and good except it doesnt match what their instructions say and I can only deduce that perhaps this was a RE-CODED version of display.class.php by JA?
Is this correct?
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
April 11, 2008 at 3:56 am #245131in modified Rs gallery2 of JA, you must edit at this file :
-Comment.php(componentscom_rsgallery2templatesja_semantichtml)
if ( $rsgConfig->get("displayComments") ) {
?>
<?php
$this->_showComments();
?>
<?php
}itgl72 Frienditgl72
- Join date:
- March 2008
- Posts:
- 230
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 41
- Thanked:
- 10 times in 1 posts
April 24, 2008 at 5:21 pm #246719Hmmmmm, this doesnt look exactly the same to me. Perhaps your coding knowledge can offer more inside.
You say the modified RS gallery2 of JA has me editing the file file Comment.php at the following location: (componentscom_rsgallery2templatesja _semantichtml)
The code in question that you said I need is in comment.php:
if ( $rsgConfig->get("displayComments") ) {
?>
<?php
$this->_showComments();
?>
<?php
}
It doesnt exactly match the instuction here as there is extra code there I do not recognize:
To integrate Jom Comment with RSGallery2, you would first need to edit the file JOOMLA/components/com_rsgallery2/templates/semantic/display.class.php . Then, look for the following block of codes which should be at around line 381 onwards,if ( $rsgConfig->get("displayComments") ) {
$tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
$this->_showComments();
$tabs->endTab();
}Modify it so that it would look as below,
if ( $rsgConfig->get("displayComments") ) {
/** 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 **/$tabs->startTab(_RSGALLERY_COMMENTS, 'Comments' );
$this->_showComments();
$tabs->endTab();
}
Since this is your modified version, can you point me further into the correct direction on where to change what? The code above that I need installed is listed in this message (and link in original post) so if its possible, please do teach.
Thanks
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by itgl72 16 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum