Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 03:46 pm EST
Geeklog Forums
Registration Hack for GL 1.3.8-1
This is my very simple registration hack for 1.3.8-1 but I think it works.
The point is to disallow people to sign up on the page, even if they know they can just go to /user.php if the links are removed.
Also you need to modify the user.php core file, which is a baad thing, but if you still want to have a look at it..
If you can help me improve it, please do
Thanks
source..
o.s
16
11
Quote
I was wondering if it could be a feature you could just turn on and off. User creation by administrator or user creation by registration.
Make sense?
Would this be too hard to add, or does it not follow the basic geeklog architeture?
14
14
Quote
Status: offline
os
Forum User
Junior
Registered: 04/11/02
Posts: 27
Hehe, can\'t see why that would be impossible, but I have no clue how to do something like that
Think you want a person that know what hes doing
Why do you want to turn it on and off anyway?
No reason why admins should not be able to \"create\" new users .. or?
o.s
11
11
Quote
Status: offline
wmopnc
Forum User
Newbie
Registered: 09/24/03
Posts: 8
I need a closed site. I only want the admin to be able to create accounts. I don\'t even want guests being able to request accounts.
I was assuming admins would always have that right to create a user. I guess the option would be allow guest registration or something of that nature.
8
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by wmopnc: I need a closed site. I only want the admin to be able to create accounts. I don\'t even want guests being able to request accounts.
I\'m running a closed site. There\'s an option in config.php that lets you switch on the user submission queue, so that new registration requests need to be approved by the Admin. It\'s not the same thing as what you\'re looking for, but it works for me.
To implement an option that actually disables any means to register with the site is already on the list of requested features but nobody has implemented it yet ...
bye, Dirk
12
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
http://project.geeklog.net/
Or, more specifically, the Feature Tracker.
There are also quite a few feature requests over at our old Sourceforge site that we haven\'t managed to port over yet (but they\'re not forgotten). Please don\'t use that site for new requests, use project.geeklog.net.
bye, Dirk
8
13
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Do you mean this story?
Dwight is still working on this, AFAIK. If you think you can help, please contact him.
bye, Dirk
15
16
Quote
Alain
Anonymous
I also use GL for a close site. Here's what I did to disable users registrations.
1 - I modified the language file, deleting the option to register
2 - In users.php (around line 810) I made just this modification:
case 'new':
$display .= COM_siteHeader('menu');
// Call custom registration and account record create function
// if enabled and exists
if ($_CONF['custom_registration'] AND (function_exists(custom_userform))) {
$display .= custom_userform('new');
} else {
// $display .= newuserform($msg); <== COMMENTED OUT
$display .= COM_refresh ($_CONF['site_url'] . '/index.php'); <= ADDED
}
$display .= COM_siteFooter();
break;
default:
This way if a user enter ...users.php?mode=new
The page just reloads index.php
An " if " clause using a var in config.php would take 2 minutes to add, and you could toggle registration on and off
Text Formatted Code
case 'new':
$display .= COM_siteHeader('menu');
// Call custom registration and account record create function
// if enabled and exists
if ($_CONF['custom_registration'] AND (function_exists(custom_userform))) {
$display .= custom_userform('new');
} else {
// $display .= newuserform($msg); <== COMMENTED OUT
$display .= COM_refresh ($_CONF['site_url'] . '/index.php'); <= ADDED
}
$display .= COM_siteFooter();
break;
default:
11
13
Quote
Paulo Lopes
Anonymous
Good hacks, both of them.
As a complement, so that the user is not even prompted to request a username, you can change lib-common.php at line 2197:
// $login->set_var( \'lang_signup\', $LANG01[59] );
$login->set_var( \'lang_signup\', \'\' );
With this small hack, the User Functions block only asks for a login.
13
13
Quote
All times are EST. The time is now 03:46 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content