Osclass Support Forums
Osclass plugin support => SMS Payments Plugin => Topic started by: abhkhan on March 23, 2018, 07:38:13 AM
-
Currently, the provided code to show promote button is showing the button to all users.
How to make this button only shown to users who posted that listing. Other viewers shouldn't see this button, as the listing product owner only wants to promote the listing.
-
@abhkhan
You can wrap button into code:
<?php if(osc_item_user_id() > 0 && osc_item_user_id() == osc_logged_user_id()) { ?>
....button
<?php } ?>
-
@abhkhan
You can wrap button into code:
<?php if(osc_item_user_id() > 0 && osc_item_user_id() == osc_logged_user_id()) { ?>
....button
<?php } ?>
Thanks, but you missed the semicolon ( ;) :)
<?php ; } ?>
-
@abhkhan
I did not, it should not be there.