The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close Registration
#2
Hi and welcome!

We never overwrite the index.php. Once you install UserSpice, it's yours. If you need to modify anything in the users folder, let me know, because there are specific ways to do that.

I don't have a setting to disable registration, but you could do this.

Go in the usersc folder and create a file called join.php and put this in it.

<?php
require_once "../users/init.php";
Redirect::to("index.php?err=We+are+sorry,+but+registration+is+closed.");
?>

I can work on adding that to UserSpice 4.3. It's an interesting idea that I never thought about. Just FYI, if you do this and have social logins turned on if someone who was not a user of your site tries to login via google or facebook, their account will automatically be created.

If I want to have to "approve" each user, I usually add a 3rd permission level in the admin dashboard called "staff" or something like that. Then I require all the pages of my project that I create to have a permission level of staff. The reason for this is that when a user creates an account, they're automatically given the permission level of "user", but if you need "staff" before you can do anything important, then all someone can do is basically login/logout until you tell them otherwise. Just another thought.
  Reply


Messages In This Thread
Close Registration - by wadoadi - 09-20-2017, 09:17 AM
Close Registration - by mudmin - 09-20-2017, 11:27 AM
Close Registration - by wadoadi - 09-20-2017, 02:09 PM
Close Registration - by twitch - 12-11-2017, 08:15 PM
Close Registration - by Brandin - 12-11-2017, 10:28 PM
Close Registration - by hazeray - 01-19-2018, 08:58 AM
Close Registration - by Brandin - 01-19-2018, 10:44 AM
Close Registration - by hazeray - 01-20-2018, 12:06 AM
Close Registration - by s.farg - 01-29-2018, 07:30 PM
Close Registration - by Brandin - 01-29-2018, 07:57 PM
Close Registration - by s.farg - 01-31-2018, 04:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)