×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: joomla Comment integration in puarcade

joomla Comment integration in puarcade 15 years 9 months ago #2472

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
No! Don't add the code to the footer function. We need the $game object, but it is not available in the footer. Place the code in
function writeflashgame($game, $Itemid, $uname) {

just after:
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 jos_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 -->
        <?php
        }
    }
 
    // why is this here?
?>

place this code:
<!-- START joomlacomment INSERT -->
<div class="" style="">
<?php
	global $option;
	require_once(JPATH_SITE."/administrator/components/com_comment/plugin/$option/josc_com_puarcade.php");
?>
</div>
<!-- END OF joomlacomment INSERT -->
        <!-- Not sure what this closes out, or rather where this is being opened. -->
        </div>

Download the zip file attached to the post. This is the plugin for joomla 1.5(it will work only on joomla 1.5). I just tested and corrected few errors - it should work for you. Please report it back! com_puarcade.zip

joomla Comment integration in puarcade 15 years 9 months ago #2478

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0
Thank you very much Daniel, the code in its place, it works !!!!:)

and I put the 2 files in the zip file into / administrator / components / com_comment / plugin / com_puarcade:
- Josc_com_puarcade.class.php
- Josc_com_puarcade.php

I do not see the difference, sorry I am not a developer, can you explain the changes?

joomla Comment integration in puarcade 15 years 9 months ago #2479

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0
For information,
the code in its place, it works but with the template "JA_Purity" display is not OK
with others (example: rhuk_milkyway) is OK


joomla Comment integration in puarcade 15 years 9 months ago #2482

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Can you make a screenshot with Ja_purity?

joomla Comment integration in puarcade 15 years 9 months ago #2486

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0
This screenshot is with Ja_purity
you can see the menus at the bottom

joomla Comment integration in puarcade 15 years 9 months ago #2487

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I will need your site url, because I don't have such a problem with my installation.

joomla Comment integration in puarcade 15 years 9 months ago #2490

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0
By MP,
tank's

joomla Comment integration in puarcade 15 years 9 months ago #2493

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0
Here is the file that I changed (puarcade.html.php)

I added:
- <div style="clear:both"></div> (on line 864)
-

<!-- START joomlacomment INSERT -->
<div class="" style="">
<?php
global $option;
require_once(JPATH_SITE."/administrator/components/com_comment/plugin/$option/josc_com_puarcade.php");
?>
</div>
<!-- END OF joomlacomment INSERT -->
<!-- Not sure what this closes out, or rather where this is being opened. -->
</div>

(on line 862)

I hope you did not lose patience
tank's

joomla Comment integration in puarcade 15 years 9 months ago #2494

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0

joomla Comment integration in puarcade 15 years 9 months ago #2498

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
funny comments :)

<!-- Not sure what this closes out, or rather where this is being opened. -->
</div>

<!-- Not sure what this closes out, or rather where this is being opened. -->
</div>


If you are not sure what it closes out, why are you using it?

I've attached my puarcade.html.php file puarcade-a54381c5e0ae5302890af864d95ab5e8.zip

joomla Comment integration in puarcade 15 years 9 months ago #2503

  • tipworld
  • tipworld's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 23
  • Thank you received: 0
it's wonderfull ! :lol: everything works (comment and Display), I just added "clear: both" (<div class="" style="clear:both"> )

I have not understand everything, I speak French and my English is far from the best!

Thank you Daniel ;)

joomla Comment integration in puarcade 15 years 8 months ago #2843

  • docsujo
  • docsujo's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
To remove this two closing divs

<!-- Not sure what this closes out, or rather where this is being opened. -->
</div>

<!-- Not sure what this closes out, or rather where this is being opened. -->
</div>

you should cut this line (line 709)

<div class="pu_block_container">

and paste it between lines 719 and 720 in file puarcade.html.php.

joomla Comment integration in puarcade 15 years 8 months ago #2879

  • testeuse
  • testeuse's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I am sorry but it is not working for me, I have tried the first plugin downloaded in download section, then i replace the pu arcade file with the one you propose Daniel :
puarcade-a54381c5e0ae5302890af864d95ab5e8.zip

I choose jomcomment and nothing, i can't see the form for comment in pu arcade...

Which file do i have to use please?

Thank you for help

EDIT: I am sorry, it is working now, i don't really know why...SORRY

joomla Comment integration in puarcade 15 years 3 months ago #6005

  • Puckmeister
  • Puckmeister's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
hi there, opening an old topic :laugh:
i set up a new site with an arcade playground and i wanted to add joomlacomment to it. i use joomlacomment on the whole site and everything is function great.

i have the same problem than the others long time ago. i use the newest pu_arcade component (2.3.1) and the actual JoomlaComment 4 beta2.
i can't see any entryform beneath the games.

to search the error for myself ( i have very very sparse php knowledge :woohoo:)

in josc_com_puarcade.php i surrounded the echo josc_utils-line with the following
echo 'X';
echo JOSC_utils::execJoomlaCommentPlugin($comObject, $game, $params, true);
echo 'Y';
to see if the file will be used from the system or if the error is somewhere else.

displayed on the mainsite is only XY with nothing in between. so the file is used but theres no output. deeper in the system i can't look because i don't understand it.

would be great if you can help me!

best regards, Puckmeister

joomla Comment integration in puarcade 15 years 3 months ago #6056

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
please search the puarcade forum. There was an error in this version of puarcade and I explained it there how to fix it.

joomla Comment integration in puarcade 15 years 3 months ago #6063

  • Puckmeister
  • Puckmeister's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
hi, i came from there before i searched here :). i did everything you wrote and i tested what the others wrote too. the component is used but there is really no output. i can't find the error

best regards, puckmeister

joomla Comment integration in puarcade 15 years 3 months ago #6074

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081

joomla Comment integration in puarcade 15 years 3 months ago #6087

  • Puckmeister
  • Puckmeister's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
yes, i did

joomla Comment integration in puarcade 15 years 3 months ago #6090

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Please let me know what did you exactly do.
Normally you have to do this here:
1. enable the plugin in joomlacomments backend.
2. go to puarcade and enable comment support

3. because there is a bug in puarcade's code - make the changes I proposed on puarcades website.

joomla Comment integration in puarcade 15 years 3 months ago #6091

  • Puckmeister
  • Puckmeister's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
hm i think this is my problem:
1. enable the plugin in joomlacomments backend.

i didn't do this step, just the code changes and the activation in puarcade
THX! worx now :D
  • Page:
  • 1
  • 2
Time to create page: 0.158 seconds