*

mwindey

  • *****
  • 475 posts
A question
« on: May 28, 2021, 02:08:40 PM »
I'm the lucky owner of the SMS plugin, but I just want to show it to the listing owner. I have already arranged that only logged in users can see the SMS payment method, but I would like to add the owner id from the listing.
If you can help me, it will be greatly appreciated.

my code now is:

<?php if(function_exists('sp_buttons')) if(osc_is_web_user_logged_in()) { { echo sp_buttons( osc_item_id() ); } ?>
<?php } ?>
« Last Edit: May 28, 2021, 02:18:49 PM by mwindey »

*

mwindey

  • *****
  • 475 posts
Re: A question
« Reply #1 on: May 28, 2021, 03:12:26 PM »
line 484 i did:

<?php if(function_exists('sp_buttons'))  if(osc_item_user_id() > 0 && osc_item_user_id() == osc_logged_user_id()) {  { { echo sp_buttons( osc_item_id() ); } ?>
<?php } ?>
  <?php ;  } ?>

*

MB Themes

Re: A question
« Reply #2 on: May 28, 2021, 03:49:42 PM »
This is correct code:
Code: [Select]
<?php 
  
if(function_exists('sp_buttons')) {
    if(
osc_item_user_id() > && osc_item_user_id() == osc_logged_user_id()) { 
      echo 
sp_buttonsosc_item_id() ); 
    } 
  }
?>

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 475 posts
Re: A question
« Reply #3 on: May 29, 2021, 11:01:03 AM »
Added and works fine... thank you for support.

*

MB Themes

Re: A question
« Reply #4 on: May 29, 2021, 02:53:37 PM »
@mwindey
Cool ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots