This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

atba

  • ****
  • 104 posts
Hide some elements on your ad page
« on: August 28, 2021, 11:44:45 AM »
Hello. Can you tell me how to hide some elements if the user is on the page of his ad?

*

MB Themes

Re: Hide some elements on your ad page
« Reply #1 on: August 28, 2021, 12:20:58 PM »
Do you mean just for that particular user or for everyone in general?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

atba

  • ****
  • 104 posts
Re: Hide some elements on your ad page
« Reply #2 on: August 28, 2021, 01:56:05 PM »
Yes, for one and only in your ad
« Last Edit: August 28, 2021, 08:42:56 PM by atba »

*

atba

  • ****
  • 104 posts
Re: Hide some elements on your ad page
« Reply #3 on: August 28, 2021, 08:43:08 PM »
?

*

MB Themes

Re: Hide some elements on your ad page
« Reply #4 on: August 29, 2021, 10:28:41 AM »
Which one?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

atba

  • ****
  • 104 posts
Re: Hide some elements on your ad page
« Reply #5 on: August 30, 2021, 09:53:50 PM »
Only in ads that belong to the user himself

Marked as best answer by frosticek on September 01, 2021, 02:11:43 PM
*

MB Themes

Re: Hide some elements on your ad page
« Reply #6 on: August 31, 2021, 07:44:14 AM »
Then use this code:
Code: [Select]
<?php if(osc_is_web_user_logged_in() && osc_item_user_id() == osc_logged_user_id()) { ?>
  block shown to listing owner
<?php } else { ?>
  block shown to everyone else
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

atba

  • ****
  • 104 posts
Re: Hide some elements on your ad page
« Reply #7 on: September 01, 2021, 01:05:08 PM »
Excellent. What is necessary. Thanks