The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Permissions for pages
#3
Ahh. I see what you're saying. You only want a particular element of the page to be shown if you are an admin. That is very similar to the way we do the menus.

Whatever you want to "hide" for non admin users, wrap the entire thing in this statement...

Code:
<?php if (checkMenu(2,$user->data()->id)){
//Your php/html code here
Code:
}  ?>


  Reply


Messages In This Thread
Permissions for pages - by kampfaffe - 09-22-2016, 01:49 PM
Permissions for pages - by brian - 09-22-2016, 04:53 PM
Permissions for pages - by mudmin - 09-22-2016, 10:19 PM
Permissions for pages - by kampfaffe - 09-23-2016, 08:49 AM
Permissions for pages - by mudmin - 09-23-2016, 11:11 AM
Permissions for pages - by kampfaffe - 09-23-2016, 02:39 PM
Permissions for pages - by mudmin - 09-24-2016, 11:31 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)