Note!

Where we are it is now the weekend; so there might be a slight delay in our reply. Thanks for understanding!

Integration of Komento with custom components

  • Resolved
    Friday, August 03 2012, 08:14 PM
    Posted by Parth Lawate
    0
    Hi ,
    I want to Integrate of Komento with my custom components com_blogd,
    For that i create komento_helper.php file in /path/components/com_blogd/ that i attach it.

    In view that want add comment i include that file and call onExecute method on class object.
    require_once( JPATH_ROOT . DS . 'components' . DS . 'com_blogd' . DS . 'komento_helper.php');
    $kobj=new KomentoComBlogd;
    $kobj->onExecute($res, 'test', 'entry');

    But that do not show on page.
    Please give me the way how i can show comment in my own view of component

    Attachments:


    Subscribed Products:

Accepted Answer

  • Selected answer for this question
    Thursday, August 16 2012, 05:24 PM
    Posted by Jason Rey - #permalink
    1
    Hi Parth,

    I've made a few modification on the file komento_plugin.php and also found some minor bug in Komento along the way. Komento is now appearing properly on your site and the bugs that I've found will be fixed on the next release.
    • versiontin - more than a month ago
      Dear Jason,

      It seems that the integration is not as simple as http://stackideas.com/docs/komento/integrations/creating-your-own-integration-files.html describes. The function commentify() fails as soon as it comes to [code type="xml"]if( !$config->get('enable_komento') ) [/code]. The function getConfig() looks for the setting in komento_configs table. Is there any further and complete instruction?

      Thanks a lot.
    • Jason Rey - more than a month ago
      Hi,

      As long as you have the integration plugin file properly placed, you will have to go to the backend Komento->Integration->Select your component to enable it. This is necessary even for those supported plugin that comes in the box.
    • versiontin - more than a month ago
      ...I cannot see my component is listed in the integration page. However, I found that the documents contain some error. The option 1 where to place the plugin file should be "/path/components/com_yourcomponent/komento_plugin.php", not "/path/components/com_yourcomponent/komento_helper.php".
    • Jason Rey - more than a month ago
      It is supposed to be komento_plugin.php. It is a minor spelling mistake we made and will be fixed in the next release.
    • versiontin - more than a month ago
      Looking forward to your new release. :) BTW, I found the magic bug in helper.php. Again, komento_plugin.php was mis-spelled as komento_helper.php. Now, the commentify() works smoothly.

27 responses Add a reply

Your Response

Please login to reply

You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.

Register Now →

Please Login Forgot your password?