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



UserSpice
Common Modifications - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: Common Modifications (/showthread.php?tid=271)

Pages: 1 2 3 4


Common Modifications - plb - 01-22-2017

Which DB.php mod are you referring to?


Common Modifications - Gandoff - 10-19-2017

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.


Common Modifications - Brandin - 10-21-2017

@Gandoff: I just completed this in 4.3 alpha...we should be going to beta soon.