Welcome, Guest. Please Login or Register.
April 28, 2025, 07:43:44 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Disabling registration « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Disabling registration  (Read 569 times)
Markie
Guest
Disabling registration
« on: December 27, 2001, 06:33:23 PM »
Reply with quote

Just like the title says, how can I do this?
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Disabling registration
« Reply #1 on: December 27, 2001, 06:36:23 PM »
Reply with quote

You only want guests to post?  Allow guest posting and they can do so.
Logged

Markie
Guest
Re:Disabling registration
« Reply #2 on: December 27, 2001, 07:31:50 PM »
Reply with quote

I want only ccurrently registered members to be able to post , no guest no new signups.
Logged
MArkie
Guest
Re:Disabling registration
« Reply #3 on: December 28, 2001, 07:28:22 AM »
Reply with quote

So could anyone help me on this? :)
Logged
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Disabling registration
« Reply #4 on: December 28, 2001, 08:10:26 PM »
Reply with quote

easy way to do it

1. in register.php add the following function
function RegisterBlock(){
   fatal_error("The registration function has been disabled as our membership is full");
}

2. in index.php change at line166
if ($action == 'register') { include_once "$sourcedir/Register.php"; Register(); }
else if ($action == 'register2') { include_once "$sourcedir/Register.php"; Register2(); }

to

//if ($action == 'register') { include_once "$sourcedir/Register.php"; Register(); }
//else if ($action == 'register2') { include_once "$sourcedir/Register.php"; Register2(); }
if ($action == 'register') { include_once "$sourcedir/Register.php"; RegisterBlock(); }
else if ($action == 'register2') { include_once "$sourcedir/Register.php"; RegisterBlock(); }

So if someone clicks on a register link, or creates their own registration form and tries to submit it to your site, they'll simply be told it' not available
Logged

MArkie
Guest
Re:Disabling registration
« Reply #5 on: December 30, 2001, 12:51:41 PM »
Reply with quote

thnx!
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:Disabling registration
« Reply #6 on: January 03, 2002, 06:11:43 PM »
Reply with quote

Hmmm....


This is cool and should be an option in the admin page!

Logged

To the world - you are just one person, but to one person you are the world!
Wezz6400
Full Member
***
Posts: 154


ICQ - 114410803wezz6400@wezz6400.net WWW
Re:Disabling registration
« Reply #7 on: January 09, 2002, 05:33:29 PM »
Reply with quote

Isn't it easy to make a mod out of the instructions Joseph posted above? Maybe a bored modwriter around?
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Disabling registration « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.028 seconds with 16 queries.