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



UserSpice
Don't Touch the Core - 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: Don't Touch the Core (/showthread.php?tid=123)



Don't Touch the Core - mudmin - 04-11-2016

One of the things that can help make UserSpice more upgradeable is if we can resist touching the core files that are inside of the users folder. Thanks to a suggestion by AstroPos, I made a little snippet inside the userspice header that basically lets you customize userspice files where they won't be overwritten by updates. The feature will be fleshed out over time, but the gist of the way it works is:

Say you want to mod or create your own account.php instead of the one userspice uses.

Put YOUR account.php in the custom folder. When any link sends you to our account.php file, it will automatically redirect to yours if it exists. We're going to overhaul and simplify the headers and the menus before officially releasing 4.1, but you can play with it and watch the feature develop in UserSpice 4.1 Alpha 2 and later.



Don't Touch the Core - jmac - 10-10-2016

Hi,

I recently have come across userspice and have been playing around with version 4.1.3. In regards to not changing the core files, where is the best place to develop my site? should I just develop in the root directory or should I be using the usersc folder for all of my development or should I only use this folder for customizations to the userspice core?

Just trying to pick up the best practice for ease of update for future releases.

In regards to ease of update and following the patching paths, do I need to apply patches in the order they were released or will new patches include existing patches?

Cheers,

John




Don't Touch the Core - mudmin - 10-16-2016

Sorry I missed this post. I thought I replied to it.

You definitely want to apply patches in order in case two modify the same file...you want to make sure you have the latest.

Personally, I develop most of my project in the actual root of userspice and then add subfolders as needed. I only use usersc when I need a custom version of a userspice file.