By Christos Spiliotopoulos on Wednesday, 27 July 2016
Posted in Technical Issues
Replies 11
Likes 0
Views 858
Votes 0
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
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.
·
Thursday, 28 July 2016 00:28
·
0 Likes
·
0 Votes
·
0 Comments
·
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?
·
Thursday, 28 July 2016 01:09
·
0 Likes
·
0 Votes
·
0 Comments
·
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.
·
Thursday, 28 July 2016 10:18
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Thursday, 28 July 2016 16:00
·
0 Likes
·
0 Votes
·
0 Comments
·
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.
·
Thursday, 28 July 2016 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
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?
·
Thursday, 28 July 2016 18:48
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Thursday, 28 July 2016 18:59
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Thursday, 28 July 2016 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
Thursday, 28 July 2016 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
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?
·
Thursday, 28 July 2016 19:41
·
0 Likes
·
0 Votes
·
0 Comments
·
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.
·
Friday, 29 July 2016 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post