Hello,
I would like to ask if i can render the komento form in a different div than the komento comments list. For example, i would like the comments to be displayed in tabbed content where tab-1 would be the form and tab-2 would be the comments list. Or another example is that i would like the form to be displayed with a slide-down button and comments list in tabbed content. Are there any functions so i can call these 2 separately?

Thanks
11 replies
  • Mark replied on Thursday, July 28 2016, 12:28 AM
    Hello Christos,

    Hm, it actually depends on how / which extension the comments are being loaded on. If this is done with Joomla Articles, you'll probably need to hack the plugin to be able to "replace" certain codes with specific tags.
    Please do take some time to read through some of these links:

    http://stackideas.com/docs
    http://stackideas.com/support


    Our Social Media Pages:

    http://facebook.com/StackIdeas
    http://twitter.com/stackideas
  • Christos Spiliotopoulos replied on Thursday, July 28 2016, 01:09 AM
    Hello again I have purchased komento (professional). The comments would be loading on virtuemart.

    You can see test page here
    http://robinhood.gr/robinhood3/index.php/component/virtuemart/gaming/fallout-4-with-franchise-book-and-soundtrack-amazon-exclusive-detail?Itemid=414

    Also there is js conflict probably with my tabs. They are not working properly after publishing komento

    Can u help?
  • NIK FARIS replied on Thursday, July 28 2016, 10:18 AM
    Hello Christos,

    Seems like Komento has loaded twice on your page. Can you provide us your backend and FTP so that I can check on this issue? As for the requirement to have separate comment list and comment form, it is not possible with komento since Komento will get the comment system in one whole object (comment list and form) and display those on the page. However, I will have a look on your site if there is another way around. :)
    Best regards,
    Nick
  • Christos Spiliotopoulos replied on Thursday, July 28 2016, 04:00 PM
    Hi Nik

    joomal backend url:
    user: *******
    pass: *******

    FTP url: ftp.robinhood.gr
    user: *******
    pass: *******
    port: ***

    pls check except of the issue with js, also if i can separate the form pls
    thanks
  • NIK FARIS replied on Thursday, July 28 2016, 06:42 PM
    Hello Christos,

    I've fixed the Komento. These are the files that I modified to fix the issue just in case you need this in the future:
    ../components/com_komento/komento_plugins/com_virtuemart.php
    ../templates/theme605/html/com_virtuemart/productdetails/default.php

    As for the requirement to have comment form and comment list in a different tab, it is not possible. It will break the whole comment form.

    Hope this helps. :)
    Best regards,
    Nick
  • Christos Spiliotopoulos replied on Thursday, July 28 2016, 06:48 PM
    Hello Nik,

    thanks for the customization.

    As for the the comments form there is no possible way of rendering the comments list in tabbed content? is there any way to call the object 2 times?
  • NIK FARIS replied on Thursday, July 28 2016, 06:59 PM
    Hello,

    Correct me if I'm wrong, did you mean you want to load Komento in both tabs? If so, please replace the attached file in ../templates/theme605/html/com_virtuemart/productdetails/default.php :)
    Attachments:
    Best regards,
    Nick
  • Christos Spiliotopoulos replied on Thursday, July 28 2016, 07:12 PM
    Hello,
    i want the form to display above the tabs and the comments list in the second tab

    is it possible? I dont't want you to customize it (if u can it would be wonderful). I'm just asking if this will be possible because i purchased the extension for this reason
  • Mark replied on Thursday, July 28 2016, 07:36 PM
    Hello Christos,

    I just spoke with Nik about this and unfortunately that wouldn't be possible :( The reason is because all the scripts are contained within a single wrapper and moving the form out of the wrapper would also mean that everything has to be customized :(
    Please do take some time to read through some of these links:

    http://stackideas.com/docs
    http://stackideas.com/support


    Our Social Media Pages:

    http://facebook.com/StackIdeas
    http://twitter.com/stackideas
  • Christos Spiliotopoulos replied on Thursday, July 28 2016, 07:41 PM
    hello mark,

    thanks a lot for the support. Can you inform me in which file this wrapper is so i can test customization by myself?
  • NIK FARIS replied on Friday, July 29 2016, 10:20 AM
    Hello Christos,

    Here are the files and how they are generated:
    First, this is where Komento generate the Komento(Form and List) ../components/com_komento/komento_plugins/com_virtuemart.php. See the function onExecute, you will notice that I have assigned the whole $html into $article->komento so that we can call it in the template file. In you case, it will be this file ../templates/theme605/html/com_virtuemart/productdetails/default.php on line 506.

    How the $html been generated?
    Here is the tricky part. In this file: ../components/com_komento/helpers/helper.php, function commentify, it will generate the form as well as the comment list. On line 987, you will see, it calls comment/box.php file. If you go to this file, you will see a lot of files get called (../components/com_komento/themes/wireframe/comment/box.php). http://take.ms/Yi5sv I'll let you continue from here. :)

    Hope this helps.
    Best regards,
    Nick
Your time
Stack Ideas time
Support is
Offline
It's weekend!

It is currently a weekend from where we are at. Some answers may already be available on our documentation at http://stackideas.com/docs

Rest assured that we will get back to your posts as soon as the week starts!


Official support hour is:
Monday — Friday. 10:00 am - 7:00 pm
Our timezone:
Kuala Lumpur (GMT +8)