Osclass Support Forums
Osclass theme support => Gamma Osclass Theme => Topic started by: atba 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?
-
Do you mean just for that particular user or for everyone in general?
-
Yes, for one and only in your ad
-
?
-
Which one?
-
Only in ads that belong to the user himself
-
Then use this code:
<?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 } ?>
-
Excellent. What is necessary. Thanks