Osclass Support Forums
Osclass plugin support => Backoffice Manager Plugin => Topic started 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.
-
@kriskoyk
You wrap the code into block:
if(osc_is_web_user_logged_in()) {
... something visible to logged-in users...
}
-
This setting makes it visible to logged in users. For those who are not connected, how can it not be visible?
-
If something is visible to logged only, it will not be visible for non-logged.
You can reverse condition using ! operator
-
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.
-
!osc_is_web_user_logged_in
-
perfect!!! Thanks