*

kriskoyk

  • *****
  • 304 posts
Disable function for offline user
« on: January 24, 2021, 12:42:19 AM »
How can I do this operation: <? Php bo_mgr_pass_form ($ item_id); ?> and she: <? php bo_mgr_edit_delete_links (); ?> not visible to logged in users? They do not need them anyway.

Marked as best answer by frosticek on January 24, 2021, 05:06:23 PM
*

MB Themes

Re: Disable function for offline user
« Reply #1 on: January 24, 2021, 08:26:17 AM »
@kriskoyk
You wrap the code into block:
Code: [Select]
if(osc_is_web_user_logged_in()) {
  ... something visible to logged-in users...
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 304 posts
Re: Disable function for offline user
« Reply #2 on: January 24, 2021, 01:52:58 PM »
This setting makes it visible to logged in users. For those who are not connected, how can it not be visible?

*

MB Themes

Re: Disable function for offline user
« Reply #3 on: January 24, 2021, 03:05:25 PM »
If something is visible to logged only, it will not be visible for non-logged.
You can reverse condition using ! operator
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 304 posts
Re: Disable function for offline user
« Reply #4 on: January 24, 2021, 04:07:57 PM »
I put this  (osc_is_web_user_operator_in) but it does not work



The only thing that works is this:

<? Php if (osc_is_web_user_logged_in ()) {?>
<? php bo_mgr_edit_delete_links (); ?>
<?php } ?>
but only appears in logged  users, while I want the opposite.
« Last Edit: January 24, 2021, 04:16:21 PM by kriskoyk »

*

MB Themes

Re: Disable function for offline user
« Reply #5 on: January 24, 2021, 04:16:41 PM »
!osc_is_web_user_logged_in
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 304 posts
Re: Disable function for offline user
« Reply #6 on: January 24, 2021, 04:29:11 PM »
perfect!!! Thanks