The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Folder "usersc" - 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: Folder "usersc" (/showthread.php?tid=478) |
Folder "usersc" - Kighlander - 02-25-2017 Dear US Community. My installation of US now works very fine. All basic functions I need are running correctly. Now I want to modify many files which are located in the folder "users". In the documentation you say I only have to copy the file to modify in the folder "usersc", an then it will load automaticly. In my case I got only fatal errors, e.g. "init.php is missing" or when I copy the "init.php" in the "userc"-folder phe parser called "error in init.php" For example: I copied the file "edit_profile.php" in the folder "usersc", i get following message: and after copying the file "init.php" in the same folder this message is coming: Where must I fix the files, that the site is running correctly ? Greets Kighlander Folder "usersc" - mudmin - 02-25-2017 So a lot of the magic of UserSpice happens from the init.php file and therefore userspice can't magically locate that file on its own, so you need to have a direct link to it. So when you copy edit_profile.php to usersc instead of users you have to change that line at the top that says something like require_once('init.php'); to require_once('../users/init.php'); In other words, you have to tell it to back up one directory to the root, then go forward into the users folder and get init.php Folder "usersc" - mudmin - 02-25-2017 Oh and leave init.php in the users folder. Everything expects it there. Folder "usersc" - JUG - 03-01-2017 What about custom.css? File is located both in users and usersc folder, but changes only apply for custom.css under users folder? (4.2.1e) Folder "usersc" - mudmin - 03-01-2017 So there is the one in users for compatibility reason, but if you want to use the one in usersc you include it in usersc/includes/navigation.php and it will be loaded last and therefore override all previous css. Sorry. I know that's not clear at all. Folder "usersc" - JUG - 03-01-2017 Ahh ok, I see it. It was missleading, because custom.css from users folder is loaded with every page. Didn't know it was for compatibility reasons. Thank you! |