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

osmad

  • **
  • 11 posts
user online
« on: November 07, 2020, 08:31:09 AM »
how can i use this function in beta theme item page ?


         osc_user_is_online($user_id = '')

*

MB Themes

Re: user online
« Reply #1 on: November 07, 2020, 01:25:11 PM »
use osc_item_user_id() as parameter.
Returns true if user was online in last few minutes.
Otherwise return false
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

osmad

  • **
  • 11 posts
Re: user online
« Reply #2 on: November 08, 2020, 12:28:56 PM »
 <?php echo osc_user_is_online(osc_item_user_id())?> nothing happend

*

MB Themes

Re: user online
« Reply #3 on: November 08, 2020, 01:11:36 PM »
use osc_item_user_id() as parameter.
Returns true if user was online in last few minutes.
Otherwise return false

... returns true or false, nothing else.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

osmad

  • **
  • 11 posts
Re: user online
« Reply #4 on: November 11, 2020, 06:01:41 AM »
use osc_item_user_id() as parameter.
Returns true if user was online in last few minutes.
Otherwise return false

... returns true or false, nothing else.

I want to show user online or not in item page ?

can you help

*

mocody

  • ****
  • 139 posts
  • Only Marketing matters
Re: user online
« Reply #5 on: November 11, 2020, 07:15:04 AM »

Marked as best answer by osmad on November 23, 2020, 07:50:41 AM
*

MB Themes

Re: user online
« Reply #6 on: November 11, 2020, 07:51:28 AM »
use osc_item_user_id() as parameter.
Returns true if user was online in last few minutes.
Otherwise return false

... returns true or false, nothing else.

I want to show user online or not in item page ?

can you help

Code: [Select]
<?php if(osc_user_is_online(osc_item_user_id())) { ?>Online<?php } else { ?>Offline<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

osmad

  • **
  • 11 posts
Re: user online
« Reply #7 on: November 23, 2020, 07:51:00 AM »
Thanks