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
#12
Did you opt to skip or not skip level 1 in this function @Mudmin?
  Reply
#13
Fail Sad Fatal error: Call to undefined function echoPerm() in /storage/sdcard0/pws/www/usersc/includes/custom_functions.php on line 11
  Reply
#14
Sorry. I was in a hurry and only pasted one of the two functions. It definitely works. I will be home in a few hours and will paste the other one.

  Reply
#15
I'm sorry about that. Btw, dan and mudmin are the same person. I use a lower access level when I access this site from mobile.


Here are both functions together.
https://pastebin.com/N8fxJ2Xs
  Reply
#16
It works! i like this function @Mudmin, do not fence out the invisible recaptcha of the 4.3 please, thank you very much for the apollo at all.
  Reply
#17
Glad it works. I haven't forgotten about the invisible recaptcha. We'll get that sorted as well.
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)