Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • itgl72 Friend
    #127444

    I 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 Friend
    #245131

    in 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 Friend
    #246719

    Hmmmmm, 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

Viewing 3 posts - 1 through 3 (of 3 total)

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