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
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Call the role - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Call the role (/showthread.php?tid=715)

Pages: 1 2


Call the role - mudmin - 09-03-2017

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.


Call the role - Brandin - 09-03-2017

Did you opt to skip or not skip level 1 in this function @Mudmin?


Call the role - shoropio - 09-03-2017

Fail Sad Fatal error: Call to undefined function echoPerm() in /storage/sdcard0/pws/www/usersc/includes/custom_functions.php on line 11


Call the role - dan - 09-03-2017

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.




Call the role - mudmin - 09-04-2017

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


Call the role - shoropio - 09-04-2017

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.


Call the role - mudmin - 09-04-2017

Glad it works. I haven't forgotten about the invisible recaptcha. We'll get that sorted as well.