Author |
Message |
ozbutcher
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jan 17, 2007
Posts: 170
|
Posted:
Tue Aug 21, 2007 9:02 am |
|
Is it somehow possible to Disable New User Registrations temporarily. So only registered users can log in? Without doing a lot of code changing? ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
Site Admin
![](modules/Forums/images/avatars/502a2d1345d88a86ddb4a.png)
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Tue Aug 21, 2007 10:40 am |
|
Good question.
I was thinking that you could disable the Your-Account module, but then users wouldn't be able to log in, so I don't think there is an easy way of doing it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Gremmie
Former Moderator in Good Standing
![](modules/Forums/images/avatars/0cd76dcf45da5de2cf864.jpg)
Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Tue Aug 21, 2007 1:21 pm |
|
This is yet another feature we need to have in a modern updated Your_Account module. You can't do it right now without mucking in the code. |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/181553f049aa2a5924cda.jpg)
Joined: Jun 06, 2005
Posts: 732
|
Posted:
Tue Aug 21, 2007 3:31 pm |
|
Why not just set Your_account access to registered users only? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Gremmie
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 21, 2007 4:55 pm |
|
They wouldn't be able to log in? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 21, 2007 5:00 pm |
|
Duh, I only checked to see if the 'register' link allowed access, I didn't check the login. Sorry, my mistake. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Doulos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 21, 2007 5:00 pm |
|
Sorry, just a dumb rookie. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Gremmie
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 21, 2007 5:20 pm |
|
LOL, no problem. ![Mr. Green](modules/Forums/images/smiles/icon_mrgreen.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ozbutcher
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Aug 21, 2007 6:41 pm |
|
d***. should I suggest this as a request for the new version or has someone already suggested this?
rofl... d-a-m-n is filtered? ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Aug 22, 2007 6:32 am |
|
ozbutcher, this is the first time that I have ever had anyone ask this or want this. Do you mind me asking why you would want to do this? |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ozbutcher
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 22, 2007 7:53 am |
|
One reason is if I find my site being spammed/attacked by new registrations. If that was the case I could toggle a switch to 'disable registrations' that would give me time to find a solution for the problem and possible it will discourage those individuals of the attack. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Wed Aug 22, 2007 4:57 pm |
|
A simple one line would block the new reg page in Your_Account
Code:
modules/Your_Account/index.php
if ($op == "new_user") die();
|
No user explanation, no lots of code, easy |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ozbutcher
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 22, 2007 6:10 pm |
|
cheers, I'll keep this handy ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Gremmie
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Aug 22, 2007 6:33 pm |
|
Here is a bit of explanation for the user:
Code:
if ($op == "new_user") die('Sorry, registrations have temporarily been disabled');
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Aug 23, 2007 6:06 am |
|
ozbutcher, thanks for the additional explanation.
evaders99, cheers also on this "quick fix"!
![Wave](modules/Forums/images/smiles/mexicanwave.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Dawg
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/46907b8543f928e08c8d7.gif)
Joined: Nov 07, 2003
Posts: 928
|
Posted:
Tue Nov 13, 2007 7:08 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|