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
Common Modifications
#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


Messages In This Thread
Common Modifications - by brian - 09-15-2016, 04:31 PM
Common Modifications - by plb - 09-19-2016, 05:45 PM
Common Modifications - by mudmin - 09-19-2016, 06:00 PM
Common Modifications - by brian - 09-19-2016, 06:24 PM
Common Modifications - by plb - 09-19-2016, 07:15 PM
Common Modifications - by brian - 09-19-2016, 07:33 PM
Common Modifications - by plb - 09-20-2016, 02:47 AM
Common Modifications - by brian - 09-20-2016, 12:31 PM
Common Modifications - by brian - 09-22-2016, 05:59 PM
Common Modifications - by plb - 09-22-2016, 07:52 PM
Common Modifications - by brian - 09-22-2016, 08:09 PM
Common Modifications - by plb - 09-23-2016, 10:57 AM
Common Modifications - by brian - 09-23-2016, 11:01 AM
Common Modifications - by plb - 09-23-2016, 11:22 AM
Common Modifications - by brian - 09-23-2016, 11:26 AM
Common Modifications - by plb - 09-27-2016, 05:50 AM
Common Modifications - by plb - 09-27-2016, 05:54 AM
Common Modifications - by brian - 09-27-2016, 11:26 AM
Common Modifications - by brian - 09-27-2016, 11:28 AM
Common Modifications - by mudmin - 09-27-2016, 11:40 AM
Common Modifications - by plb - 09-27-2016, 11:57 AM
Common Modifications - by brian - 09-27-2016, 11:59 AM
Common Modifications - by mudmin - 09-27-2016, 12:01 PM
Common Modifications - by plb - 09-27-2016, 12:22 PM
Common Modifications - by mudmin - 09-27-2016, 02:14 PM
Common Modifications - by mudmin - 09-27-2016, 02:14 PM
Common Modifications - by mudmin - 09-27-2016, 02:14 PM
Common Modifications - by smugwimp - 10-10-2016, 08:48 AM
Common Modifications - by mudmin - 10-10-2016, 03:18 PM
Common Modifications - by Trioxin - 01-21-2017, 09:45 AM
Common Modifications - by plb - 01-22-2017, 09:30 AM
Common Modifications - by Gandoff - 10-19-2017, 10:42 AM
Common Modifications - by Brandin - 10-21-2017, 04:25 PM

Forum Jump:


Users browsing this thread: 15 Guest(s)