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
Call the role
#11
Try adding these two functions to your usersc/includes/custom_functions.php

https://pastebin.com/qp8U5ZRp

Then you just call it by

Code:
<?php getRoles(1);?>

1 is the user id of the user you're trying to echo. In the weird event there aren't any permissions, it will just be blank.
  Reply


Messages In This Thread
Call the role - by shoropio - 09-03-2017, 03:54 AM
Call the role - by Brandin - 09-03-2017, 11:26 AM
Call the role - by shoropio - 09-03-2017, 02:16 PM
Call the role - by Brandin - 09-03-2017, 02:20 PM
Call the role - by Brandin - 09-03-2017, 02:21 PM
Call the role - by shoropio - 09-03-2017, 02:33 PM
Call the role - by karsen - 09-03-2017, 02:33 PM
Call the role - by mudmin - 09-03-2017, 02:34 PM
Call the role - by mudmin - 09-03-2017, 02:34 PM
Call the role - by shoropio - 09-03-2017, 02:42 PM
Call the role - by mudmin - 09-03-2017, 03:00 PM
Call the role - by Brandin - 09-03-2017, 03:28 PM
Call the role - by shoropio - 09-03-2017, 04:30 PM
Call the role - by dan - 09-03-2017, 07:03 PM
Call the role - by mudmin - 09-04-2017, 01:05 AM
Call the role - by shoropio - 09-04-2017, 02:45 AM
Call the role - by mudmin - 09-04-2017, 11:51 AM

Forum Jump:


Users browsing this thread: 12 Guest(s)