Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
ozbutcher
Worker
Worker


Joined: Jan 17, 2007
Posts: 170

PostPosted: Tue Aug 21, 2007 9:02 am Reply with quote

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
 
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Tue Aug 21, 2007 10:40 am Reply with quote

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.
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Aug 21, 2007 1:21 pm Reply with quote

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 
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 633

PostPosted: Tue Aug 21, 2007 3:31 pm Reply with quote

Why not just set Your_account access to registered users only?
 
View user's profile Send private message
Gremmie
PostPosted: Tue Aug 21, 2007 4:55 pm Reply with quote

They wouldn't be able to log in?
 
Doulos
PostPosted: Tue Aug 21, 2007 5:00 pm Reply with quote

Duh, I only checked to see if the 'register' link allowed access, I didn't check the login. Sorry, my mistake.
 
Doulos
PostPosted: Tue Aug 21, 2007 5:00 pm Reply with quote

Sorry, just a dumb rookie.
 
Gremmie
PostPosted: Tue Aug 21, 2007 5:20 pm Reply with quote

LOL, no problem. Mr. Green
 
ozbutcher
PostPosted: Tue Aug 21, 2007 6:41 pm Reply with quote

d***. should I suggest this as a request for the new version or has someone already suggested this? Smile

rofl... d-a-m-n is filtered? Smile
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Wed Aug 22, 2007 6:32 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
ozbutcher
PostPosted: Wed Aug 22, 2007 7:53 am Reply with quote

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.
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Aug 22, 2007 4:57 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
ozbutcher
PostPosted: Wed Aug 22, 2007 6:10 pm Reply with quote

cheers, I'll keep this handy Smile
 
Gremmie
PostPosted: Wed Aug 22, 2007 6:33 pm Reply with quote

Here is a bit of explanation for the user: Wink

Code:


if ($op == "new_user") die('Sorry, registrations have temporarily been disabled');
 
montego
PostPosted: Thu Aug 23, 2007 6:06 am Reply with quote

ozbutcher, thanks for the additional explanation.

evaders99, cheers also on this "quick fix"!

Wave
 
Dawg
RavenNuke(tm) Development Team


Joined: Nov 07, 2003
Posts: 910

PostPosted: Tue Nov 13, 2007 7:08 am Reply with quote

Brain FART!
Dawg
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©