08-25-2016, 07:02 PM
Hmmm. I'm trying to think through that. I tend to think you're right on the first idea. Put all those things as subfolders.
One of the things to remember is that userspice is really tolerant of how you organize your stuff, as long as it knows where to look. As long as that z_us_root.php file is in the root of your userspice folder, it can get to everything else via a relative path from there.
It also doesn't really make much of a difference if you use the userspice headers etc as long as the path to the init.php /helpers file is correct and you add that line that says
Beyond that, userspice is really pretty good about keeping it all sorted out. Since 4.1 it stores the paths of the files in the database, so that gives you a ton of flexibility.
One of the things to remember is that userspice is really tolerant of how you organize your stuff, as long as it knows where to look. As long as that z_us_root.php file is in the root of your userspice folder, it can get to everything else via a relative path from there.
It also doesn't really make much of a difference if you use the userspice headers etc as long as the path to the init.php /helpers file is correct and you add that line that says
Code:
<?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?>
Beyond that, userspice is really pretty good about keeping it all sorted out. Since 4.1 it stores the paths of the files in the database, so that gives you a ton of flexibility.