*

meaao

  • *
  • 3 posts
How can I hide comments
« on: March 14, 2023, 11:38:07 PM »
hi

Sorry, I use google translate

How can comments be hidden from users?

I want the comment to be seen only by the owner of the comment and also the owner of the item only and other users can not view it.

Is that possible?

*

MB Themes

Re: How can I hide comments
« Reply #1 on: March 15, 2023, 02:09:30 PM »
@meaao
If only owner of listing can see them, then noone else can comment, so does not make sense.
Comments section can be hidden Listings > Comments > Settings
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

meaao

  • *
  • 3 posts
Re: How can I hide comments
« Reply #2 on: March 15, 2023, 05:00:58 PM »
Thanks for your reply dear

What I mean is that the comment is seen only by the owner of the list, the person who commented on the list, and the supervisor of the site.

It is also a private message between the two parties only.

I want to amend this

<?php if( osc_reg_user_post_comments () && osc_is_web_user_logged_in() || !osc_reg_user_post_comments() ) { ?>

How can it be modified so that the content is seen only by the owner of the list and the person who commented on the list and the supervisor of the site.

*

MB Themes

Re: How can I hide comments
« Reply #3 on: March 16, 2023, 11:29:55 AM »
This could work:
Code: [Select]
<?php if(osc_logged_user_id() == osc_item_user_id()) { ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

meaao

  • *
  • 3 posts
Re: How can I hide comments
« Reply #4 on: March 18, 2023, 01:46:47 PM »
Thank you

This code did not work for what I want

Please help me find a solution

*

MB Themes

Re: How can I hide comments
« Reply #5 on: March 18, 2023, 08:41:18 PM »
It is just piece that grant access to owner of listing.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots