Only Admin Can Register
1.2a for SP1.3.2
When installing this mod, only the administator can add new members.
THIS MOD IS COMPATIBLE WITH SP1.3.2 (NOT SP1.3.1)
After installing this mod you'll have to activate it in the forum preferences. There should be a new option called "Only admin is allowed to register new users".
version 1.1 (by Striker):
- now this can be turned on/off in the admin center
version 1.2 (by Ian Micallef):
- updated for YaBB 1 Gold SP 1.3.1
- fixed bug with mismatched text in Settings.pl
- register links and icons are removed when active
version 1.2a (by Michael Prager)
- made compatible with SP1.3.2 (no longer compatible with SP1.3.1 though!)
Michael Prager
http://www.boardmod.org
Sources\Register.pl
sub Register {
if ($registerbyadminonly eq '1') {
if ($settings[7] ne 'Administrator') {
$yytitle = "$txt{'97'}";
$yymain .= "
Sorry, only the administator can register new members. Please contact him for an account.
";
&template;
exit;
}
}
sub Register2 {
if ($registerbyadminonly eq '1') {
if ($settings[7] ne 'Administrator') {
$yytitle = "$txt{'97'}";
$yymain .= "
Sorry, only the administator can register new members. Please contact him for an account.
Settings.pl
1;
$registerbyadminonly = 0; # Set to 1 to let the admin be the only person to register new users
Sources\AdminEdit.pl
if ($guestaccess == 0) { $guestaccchecked = ' checked'; }
if ($registerbyadminonly == 1) { $registerbyadminonly = ' checked'; }
$txt{'632'}
$txt{'632a'}
allowpics showyabbcbutt showbdescrip maintenance guestaccess insert_original enable_ubbc enable_news enable_guestposting enable_notification showlatestmember showrecentbar showmarkread showmodify showuserpic showusertext showgenderimage shownewsfader MenuType curposlinks profilebutton autolinkurls emailpassword RegAgree emailwelcome allow_hide_email usetempfile faketruncation emailnewpass/;
allowpics showyabbcbutt showbdescrip maintenance guestaccess registerbyadminonly insert_original enable_ubbc enable_news enable_guestposting enable_notification showlatestmember showrecentbar showmarkread showmodify showuserpic showusertext showgenderimage shownewsfader MenuType curposlinks profilebutton autolinkurls emailpassword RegAgree emailwelcome allow_hide_email usetempfile faketruncation emailnewpass/;
$guestaccess = $guestaccess ? 0 : 1;
$registerbyadminonly = $registerbyadminonly ? 1 : 0;
1;
EOF
\$registerbyadminonly = $registerbyadminonly; # Set to 1 to let the admin be the only person to register new users
if ($guestaccess == 0) { $guestaccchecked = ' checked'; }
if ($registerbyadminonly == 1) { $registerbyadminonly = ' checked'; }
english.lng
$txt{'632'} = "Disallow guests from doing anything but login or register?";
$txt{'632a'} = "Only admin is allowed to register new users";