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: Problem with Jcomment and PUArcade
Pages: [1]   Go Down
  Print  
Author Topic: Problem with Jcomment and PUArcade  (Read 10299 times)
0 Members and 1 Guest are viewing this topic.
jillmandy
Guest
« on: January 12, 2009, 04:43:46 »

I looked at the site and the code they advise to find is not there.  This is the code we are to look for:

if ($comments == 1 && file_exists($mainframe->getCfg('absolute_path'). "/mambots/content/jom_comment_bot.php"))

I don't have this code or anything similar.

Any help would be appreciated.  I really would love for this to work...Smiley
Logged
intro
Guest
« Reply #1 on: January 31, 2009, 18:59:04 »

 Cheesy   Huh this is the way for new version of pu arcade:
I was entegrated puarcade 2.3 (the new version) with j comments the way is here,

find the this code at (....components/com_puarcade/puarcade.html.php):
Code:
Code:
   if ($config->comments == 1) {
        if (!defined ('_JEXEC')) {
            $pathtojomcomment = $mainframe->getCfg('absolute_path'). "/mambots/content/jom_comment_bot.php";
        } else {
            $pathtojomcomment = $mainframe->getCfg('absolute_path'). "/plugins/content/jom_comment_bot.php";
        }
        if (file_exists($pathtojomcomment)) {
            $query = "SELECT COUNT(*) from #__jomcomment where `option`='com_puarcade' AND `contentid`='$game->id' AND `published`='1'";
            $database->setQuery($query);
            $count = $database->loadRow();
        ?>
            <img src="<?php echo $mainframe->getCfg('live_site'); ?>/components/com_jomcomment/templates/default/images/comments.gif" border="0" alt="" />
            <a href="javascript:unhide('comments');" title="View Comments">
                <?php echo PU_ADD_COMMENT;?> (<?php echo $count[0]; ?>)
            </a>
            <div class="pu_comments" id="comments">
        <?php 
            
include($pathtojomcomment); 
            echo 
jomcomment($game->id"com_puarcade"); 
        
?>

            </div> <!-- end comments -->


replace this code

Code:
if ($config->comments == 1) {
 
        if (!defined ('_JEXEC')) {
 
            $jcomments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
 
        } else {
             $jcomments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
       
 
        }
       if (file_exists($jcomments)) {
    require_once($jcomments);
    $obj_id = $game->id;
    $obj_title = $game->gamename;
    echo JComments::showComments($obj_id, 'com_puarcade', $obj_title);
      }
 
 
    }
?>

for example site look here http://bilinmeyenler.org/component/puarcade/?gid=11

and activate the jomcomment from adminisrator panel settings
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Problem with Jcomment and PUArcade
 
Jump to: