09-10-2016, 10:28 AM
As mentioned here: http://userspice.org/forums/topic/verify...#post-2055
It is currently possible to override "pages" but it is not possible to override scripts which are brought into other pages by means of require_once() or the related include*() and require*() functions...
I believe that by changing the require_once() calls from absolute to relative:
instead of
and then making judicious use of (presumably configured in init.php during installation) you could make these over-ridable.
Of course the disadvantage is the code becomes a bit less readable and you will suffer a bit of a performance hit (I would guess negligible).
It is currently possible to override "pages" but it is not possible to override scripts which are brought into other pages by means of require_once() or the related include*() and require*() functions...
I believe that by changing the require_once() calls from absolute to relative:
Code:
require_once('header.php');
instead of
Code:
require_once($us_url_root.'users/includes/header.php');
and then making judicious use of
Code:
include_path
Of course the disadvantage is the code becomes a bit less readable and you will suffer a bit of a performance hit (I would guess negligible).