PDA

View Full Version : Comment plugin question



Wei Hong
April 5, 2014, 06:08 PM
Dear Flynax Developers,

Is there any way that I can move the comment section to the listing detail page instead of using a tab? And also, I want the guest to be able to see the comment but not able to leave any comment? Is it possible to do so?

Thank you and have a good day

Viktor
April 7, 2014, 05:13 AM
Hello Wei,

Of course it's possible. If you want I can show you here. If you know how to work in DB and with smarty. But if you are not sure you can write me in PM (with including ftp access) and I will do it for you.

Wei Hong
April 8, 2014, 05:20 AM
Hi Viktor,

Yes, would you please show the instruction here. :D

Thomas Yuan
April 8, 2014, 12:54 PM
I would be interested to know as well, thanks :)

Dmitry
April 8, 2014, 03:09 PM
Hello Guys,

>> Is there any way that I can move the comment section to the listing detail page instead of using a tab?

It is custom modification you need to change it in the code.

>> And also, I want the guest to be able to see the comment but not able to leave any comment? Is it possible to do so?

Yes, it is possible. admin panel > configurations > comments - Prevent not logged in users to post comments
Please check configurations for comment plugin.

Thanks.

Viktor
April 9, 2014, 03:53 AM
Hello Wei Hong and Thomas Yuan,

Short instruction:

go to ftp://plugins>>comments>>comment.block.tpl

find first div:

<div id="area_comments" class="tab_area hide">

and replace to:

<div>

Then you should remove Tab for comments. You should do it through database. Use phpMyAdmin or other for working with DB find table fl_hooks

find line name=listingDetailsBottom plugin=comment. Exactly this line because can be listingDetailsBottom but with other plugins. You should find fr comment.

Edit it and find code:


$tabs['comments'] = array(
'key' => 'comments',
'name' => $lang['comment_tab']
);


remove it and save.

And you can check it.

Wei Hong
April 9, 2014, 04:51 AM
Hello Guys,

>> Is there any way that I can move the comment section to the listing detail page instead of using a tab?

It is custom modification you need to change it in the code.

>> And also, I want the guest to be able to see the comment but not able to leave any comment? Is it possible to do so?

Yes, it is possible. admin panel > configurations > comments - Prevent not logged in users to post comments
Please check configurations for comment plugin.

Thanks.

Thank you. I found it in the admin panel for allowing guest to view comment

Wei Hong
April 9, 2014, 04:51 AM
Hello Wei Hong and Thomas Yuan,

Short instruction:

go to ftp://plugins>>comments>>comment.block.tpl

find first div:

<div id="area_comments" class="tab_area hide">

and replace to:

<div>

Then you should remove Tab for comments. You should do it through database. Use phpMyAdmin or other for working with DB find table fl_hooks

find line name=listingDetailsBottom plugin=comment. Exactly this line because can be listingDetailsBottom but with other plugins. You should find fr comment.

Edit it and find code:


$tabs['comments'] = array(
'key' => 'comments',
'name' => $lang['comment_tab']
);


remove it and save.

And you can check it.

Thanks, Viktor. I will try it when I got home.

Petrache Nicolae
June 21, 2014, 02:29 PM
Hello Wei Hong and Thomas Yuan,

Short instruction:

go to ftp://plugins>>comments>>comment.block.tpl

find first div:

<div id="area_comments" class="tab_area hide">

and replace to:

<div>

Then you should remove Tab for comments. You should do it through database. Use phpMyAdmin or other for working with DB find table fl_hooks

find line name=listingDetailsBottom plugin=comment. Exactly this line because can be listingDetailsBottom but with other plugins. You should find fr comment.

Edit it and find code:


$tabs['comments'] = array(
'key' => 'comments',
'name' => $lang['comment_tab']
);


remove it and save.

And you can check it.


Hello Viktor. I have a sugestion. This plugin should work together and only with the booking plugin, becouse it should be available only to the users who have made a reservation accepted and confirmed by the owner of the listing. Beyond this is is pretty useless becouse there is no way to prevent any morons to fill in bad comments even if they did not purchased/rented that item.

Viktor
June 23, 2014, 09:35 AM
Hello Petrache,

I think you want customization and it will take some hours and cost you extra.

Petrache Nicolae
June 23, 2014, 09:37 AM
Hello Petrache,

I think you want customization and it will take some hours and cost you extra.

No Viktor, was bearly a sugestion to set things properly.

Ameer Hassan
January 1, 2015, 08:13 PM
Hello Viktor,

i think it will be great if you add comment block to bottom of news page, so that visitor can comment on news and make site interactive :)
if yes i think it is very helpful for everyone here, what steps to add it to news block? :)

Ramu Palanisamy
March 20, 2019, 08:31 AM
Hello Wei Hong and Thomas Yuan,

Short instruction:

go to ftp://plugins>>comments>>comment.block.tpl

find first div:

<div id="area_comments" class="tab_area hide">

and replace to:

<div>

Then you should remove Tab for comments. You should do it through database. Use phpMyAdmin or other for working with DB find table fl_hooks

find line name=listingDetailsBottom plugin=comment. Exactly this line because can be listingDetailsBottom but with other plugins. You should find fr comment.

Edit it and find code:


$tabs['comments'] = array(
'key' => 'comments',
'name' => $lang['comment_tab']
);


remove it and save.

And you can check it.

Hello Viktor, Still this code will work our site?

Errol
January 18, 2020, 09:08 PM
Did this code work?
I would like to achieve same

Logmanov
January 19, 2020, 01:15 PM
Hello Wei Hong and Thomas Yuan,

Short instruction:

go to ftp://plugins>>comments>>comment.block.tpl

find first div:

<div id="area_comments" class="tab_area hide">

and replace to:

<div>

Then you should remove Tab for comments. You should do it through database. Use phpMyAdmin or other for working with DB find table fl_hooks

find line name=listingDetailsBottom plugin=comment. Exactly this line because can be listingDetailsBottom but with other plugins. You should find fr comment.

Edit it and find code:


$tabs['comments'] = array(
'key' => 'comments',
'name' => $lang['comment_tab']
);


remove it and save.

And you can check it.


Hello Viktor.

In this case the url of comments tab: #comments_tab remains active, how to remove or deactivate this url?

Thanks!

Viktor
January 20, 2020, 02:12 AM
Open file: ftp://plugins>>comments>>info_navigator.tpl and remove: '#comments' in 2 places.
Then open file: ftp://plugins>>comments>>rlComments.class.php find the method:
selectCommentsInBlock and remove: '#comments' in 3 places.
ajaxCommentAdd and remove: '#comments' in 3 places.

save and check again.

Logmanov
January 21, 2020, 11:38 PM
Thank you Viktor!