The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
users VS usrsc - 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: users VS usrsc (/showthread.php?tid=1000) |
users VS usrsc - AnasAZ - 03-13-2018 Hi, I read the following in the update page: All pages in the /users folder are now usersc compatible. Simply copy a file to usersc and edit way. Don’t edit our core files! I'm not sure I understood this correctly. I have modified join.php, Validate.php, _join.php and some other files, so this is not the right way! I suppose to copy these files to usersc then modify them there! but when we update these files with new a release, which copy of join.php will run? Thanks for your time. users VS usrsc - Brandin - 03-13-2018 Don't do Validate or _join.php. The only files that can be copied over are the root files of users, eg login.php, join.php, admin_users.php. The other core files, such as the Validate Class, Join Form, etc are not meant to be edited. Although the Validate class has no Customization Method, the Join one does. Additional fields can be added through users/includes. In any case, files in the root of usersc will always be the one of choice of users ones. However, that being said, when an update is applied, we aren't going to patch your usersc files, so you will need to do this manually. Brandin. users VS usrsc - AnasAZ - 03-13-2018 Then what is the best way to modify the registration form. currently I have modified _join.php and Validate.php as I have added few extra fields, such as student ID, Student college & department. and I made it mandatory that username should match email. What is your advice? users VS usrsc - Brandin - 03-14-2018 You can copy join to usersc/join and add them to Validation. You can modify the Validate class directly but remember you're patches are going to have to be manual. And as I mentioned, you can add join form fields by usin the includes in the usersc folder, I think it's called join_form_fields or something. |