The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Common Modifications
#31
Which DB.php mod are you referring to?
  Reply
#32
I needed nested permissions so that I could create a parent/child relationship between permission groups. Once I did this, I realized that I had broken the users/helpers/us_helpers.php/securePage() routine. So, as I studied your code, I realized that I could easily override this function by adding my securePage() function to usersc/includes/custom_functions.php and wrapping the function users/helpers/us_helpers.php/securePage() in an if(!function_exists('securePage')) if block.

If you wrapped all of the functions (which I have done in my personal copy) in users/helpers/us_helpers.php with an if function_exists if block, this would easily allow developers to override your helper functions as needed and not have to worry about upgrading the base code in the future.

My two cents,
Gandoff.
  Reply
#33
@Gandoff: I just completed this in 4.3 alpha...we should be going to beta soon.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)