Posted on: 11/27/01 12:54pm
By: Anonymous (Anonymous)
How easy is it to mod geeklog so that new users can only be added by admin, and not register themselves on a site?
Simple instructions please
preventing self-account creation
Posted on: 12/03/01 10:09am
By: Anonymous (Anonymous)
I\'ve done that for an older version of GL (1.5rc1 or ?) -- unfortnately my hacks are not packaged well for distribution nor are they at all compatible with the current stuff.
What I did was add a new variable to the global config array called \'addself\' = 0;
Search through the code for all instances of the language for \'Create Account\' and put tests of the \'addself\' variable != 0 to determine if you present that option to anyone.
You\'d also want to do something with that test in here:
/users.php?mode=new
Preventing self addition seems like a reasonable feature to add for some sites, especially internal corporate use type applications. Perhaps its already in 1.3, I\'ve not looked through the code much.
So in addition to
$_CONF[\'loginrequired\'] = 0;
add some functionality to deal with
$_CONF[\'allowcomments\'] = 1 or 0
$_CONF[\'allowselfcreate\'] = 1 or 0
PS I had a similar need to remove the comment functions.
PSPS Still trying to determine if, how, when to port my two 1.5rc? sites over.