Osclass Support Forums

Osclass plugin support => Backoffice Manager Plugin => Topic started by: kriskoyk on January 24, 2021, 12:42:19 AM

Title: Disable function for offline user
Post by: kriskoyk 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.
Title: Re: Disable function for offline user
Post by: MB Themes 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...
}
Title: Re: Disable function for offline user
Post by: kriskoyk 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?
Title: Re: Disable function for offline user
Post by: MB Themes 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
Title: Re: Disable function for offline user
Post by: kriskoyk 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.
Title: Re: Disable function for offline user
Post by: MB Themes on January 24, 2021, 04:16:41 PM
!osc_is_web_user_logged_in
Title: Re: Disable function for offline user
Post by: kriskoyk on January 24, 2021, 04:29:11 PM
perfect!!! Thanks