Page Index Toggle Pages: [1] 2 3 ... 18 Send TopicPrint
Very Hot Topic (More than 25 Replies) Registration with admin approval (Read 79711 times)
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Registration with admin approval
Apr 16th, 2007 at 7:13am
Print Post  
Registration with admin approval for YaBB 2.1 -  V1.96 (06.05.07)


This mod add the following functions to registration:
- admin/gmod registration approval
- send email when new member regitered
- member's reason for joining
To activate, go into the admin center.

Approval setting:
"Approval Off"
"Approval On - View Mode Access Only" : enable all functions for user except post, pmsend, mailsend and memberlist view
"Approval On - User Profile Access Only" :  enable only login/logout and own profile modify
"Approval On - Before Join"

The three approval method working with pre-registration and free-registration too.

Do Approval/Unapproval a members in Membercontrols section of Admincenter.
Can add custom text to the approval/disapproval email.
« Last Edit: May 6th, 2007 at 10:39am by Zoo »  

RegistrationApproval_V1.96.ZIP ( 11 KB | Downloads )
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #1 - Apr 16th, 2007 at 7:48am
Print Post  
Hi Zoo
this is for 2.2 not 2.1  Grin

why not found this?  Tongue Admin/Setting_Main.pl  Shocked Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: Registration with admin approval
Reply #2 - Apr 16th, 2007 at 7:58am
Print Post  
Quote:
Hi Zoo
this is for 2.2 not 2.1  Grin
Why? Is 2.2 done?  Tongue

Quote:
why not found this?  Tongue Admin/Setting_Main.pl  Shocked Grin
thx,  fixed Settings_Main.pl
  
Back to top
 
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: Registration with admin approval
Reply #3 - Apr 16th, 2007 at 8:01am
Print Post  
arrrggg  I'm confused.  Angry
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #4 - Apr 16th, 2007 at 8:08am
Print Post  
on 2.1 have not Settings_Main.pl  Wink I am confused too  ??? Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: Registration with admin approval
Reply #5 - Apr 16th, 2007 at 10:31am
Print Post  
ok, for Y2.1 - NOW Grin
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #6 - Apr 16th, 2007 at 10:51am
Print Post  
ok thnx. But can you make Ban & modfunction Mod compatible.

In Sources/Security.pl I have this:
Code
Select All
sub banning {
	# IP BANNING
	my( $ban_user, $ban_time, $ban_date, $i, $ban_yes, $ban_total, $ban_left, $ban_reason, $ban_type );
	unless (-f "$vardir/ban_mute.txt") {
	&ipbanupdate;
	}
	$remote_ip = $ENV{'REMOTE_ADDR'};
	fopen(BAN, "$vardir/ban.txt" );
	@entries = <BAN>;
	fclose(BAN);
	fopen(BAN, ">$vardir/ban.txt", 1);
	for( $i = 0; $i < @entries; $i++ ) {
		$ban_ip = $entries[$i];
 		  chomp($ban_ip);
		($ban_user, $ban_time, $ban_date, $ban_reason, $ban_type) = split(/\|/,$ban_ip);
		if( $ban_time != 0 ) {
			$date1 = $ban_date;
			$date2 = $date;
			&calcdifference;
			if( $result >= $ban_time ) { next; }
		}
 		  $str_len = length($ban_user);
 		  $comp_ip = substr($remote_ip,0,$str_len);
 		  if ($comp_ip eq $ban_user) {
				fopen(LOG, ">$vardir/ban_log.txt" );
				print LOG "$remote_ip\n";
     			fclose(LOG);
     			$username = "Guest";
			$ban_total = $ban_time;
			if( $ban_time != 0 ) { $ban_left = $ban_total-$result; }
			$bann_reason = "$ban_reason";
			$ban_yes = 1;
			}
		print BAN "$ban_ip\n";
	}
	fclose(BAN);
	# EMAIL BANNING
	if ($username ne 'Guest') {
		$remote_ip = "$ENV{'REMOTE_ADDR'}";
		fopen(BAN, "$vardir/ban_email.txt" );
		@entries_email = <BAN>;
		fclose(BAN);
		fopen(BAN, ">$vardir/ban_email.txt", 1);
		for( $i = 0; $i < @entries_email; $i++ ) {
			$ban_email = $entries_email[$i];
			chomp($ban_email);
			($ban_user, $ban_time, $ban_date, $ban_reason, $ban_type) = split(/\|/,$ban_email);
			if( $ban_time != 0 ) {
				$date1 = $ban_date;
				$date2 = $date;
				&calcdifference;
				if( $result >= $ban_time ) { next; }
			}
 			  if (lc $ban_user eq lc ${$uid.$username}{'email'}) {
 	   			  fopen(LOG, ">$vardir/ban_log.txt" );
 	   			  print LOG "$ban_email ($remote_ip)\n";
 				    fclose(LOG);
     				$username = "Guest";
				$ban_total = $ban_time;
				if( $ban_time != 0 ) { $ban_left = $ban_total-$result; }
				$bann_reason = "$ban_reason";
				$ban_yes = 1;
				}
			print BAN "$ban_email\n";
		}
		fclose(BAN);
	}
	# USERNAME BANNING
	if ($username ne 'Guest') {
	fopen(BAN, "$vardir/ban_memname.txt" );
	@entries = <BAN>;
	fclose(BAN);
	fopen(BAN, ">$vardir/ban_memname.txt", 1);
	foreach $ban_memname (@entries) {
		chomp $ban_memname;
		($ban_user, $ban_time, $ban_date, $ban_reason, $ban_type) = split(/\|/,$ban_memname);
		if( $ban_time != 0 ) {
			$date1 = $ban_date;
			$date2 = $date;
			&calcdifference;
			if( $result >= $ban_time ) { next; }
		}
 		  if ($ban_user eq $username) {
 	   			  fopen(LOG, ">$vardir/ban_log.txt" );
 	   			  print LOG "$ban_memname ($remote_ip)\n";
 				    fclose(LOG);
     				$username = "Guest";
				$ban_total = $ban_time;
				if( $ban_time != 0 ) { $ban_left = $ban_total-$result; }
				$bann_reason = "$ban_reason";
				$ban_yes = 1;
					}
		  print BAN "$ban_memname\n";
		}
		fclose(BAN);
}

	if( $ban_yes == 1 ) {
		if( $ban_total == 0 ) {
		&UpdateCookie("delete", $username);
		$username = "Guest";
		</b> $bann_reason");
		&redirectinternal;
		} else {
		&fatal_error("$security_txt{'678'}$tempban{'1'} $ban_total $tempban{'2'} $ban_left $tempban{'3'}<br><br><b>$tempban{'4'}:</b> $bann_reason"); }
			&redirectinternal;
	}
}

sub ipbanupdate {
	my( @banlist, $line, $tmp, @ipban, @emailban, @userban, $dummy, $eban, $iban, $uban, @i_ban, @e_ban, @u_ban);

	fopen(FILE, "$vardir/ban.txt");
	@banlist = <FILE>;
	fclose(FILE);
	foreach $line (@banlist){
		chomp $line;
		($dummy,$tmp) = split (/\|/, $line);
		if ($dummy eq "I"){$iban = $tmp;}
		if ($dummy eq "E"){$eban = $tmp;}
		if ($dummy eq "U"){$uban = $tmp;}
	}

	fopen(IPFILE, ">$vardir/ban.txt");
	(@i_ban) = split (/\,/, $iban);
	foreach $line (@i_ban){
		chomp $line;
		print IPFILE "$line|0|N/A|N/A|1\n";
	}
	fclose(IPFILE);

	fopen(EMAILFILE, ">$vardir/ban_email.txt");
	(@e_ban) = split (/\,/, $eban);
	foreach $line (@e_ban){
		chomp $line;
		print EMAILFILE "$line|0|N/A|N/A|2\n";
	}
	fclose(EMAILFILE);

	fopen(MEMFILE, ">$vardir/ban_memname.txt");
	(@u_ban) = split (/\,/, $uban);
	foreach $line (@u_ban){
		chomp $line;
		print MEMFILE "$line|0|N/A|N/A|3\n";
	}
	fclose(MEMFILE);

	fopen(FILE, ">$vardir/ban_mute.txt");
	print FILE "";
	fclose(FILE);
} 

  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: Registration with admin approval
Reply #7 - Apr 16th, 2007 at 11:03am
Print Post  
updated
  
Back to top
 
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: Registration with admin approval
Reply #8 - Apr 16th, 2007 at 11:11am
Print Post  
This is high on the "wanted" list in Y2.2, so please test it thoroughly and let's put it in (regardless of the feature stop).
This is an enhancement/improvement in my opinion, so it should be in before release Wink
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #9 - Apr 16th, 2007 at 12:09pm
Print Post  
Hi
I did some tests
if you have Use Pre-registration and account activation checked. And you set approval to 1 or 2. you need make this disabled.
Quote:
Pre-registration and account activation


Because i have a receive email about activate account.

I have uncecked pre-register
Admin have no receive email to inform that new member have register.

user have no receive Mail about approve account.

suggestions
Give user a reason why to register on forum like this:
http://www.grafix-world.nl/cgi-bin/yabbserver/foren/F_0001/YaBB.cgi?;action=regi...

and make a dropdown menu of Approval method setting from 0,1 and 2  Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: Registration with admin approval
Reply #10 - Apr 16th, 2007 at 1:17pm
Print Post  
3 options now available are:
  level1 : free registration
  level2 : pre registration with email activation
  level3 : registration closed (paranoia, only admins can register)

  I think this is the level 2,5 : pre registration with admin approval.

He is need for the free reg with admin approval ? Interesting.
(I think, only admin with approval is unintelligible Wink)

Quote:
Hi
I did some tests
if you have Use Pre-registration and account activation checked. And you set approval to 1 or 2. you need make this disabled.

Because i have a receive email about activate account.

Oh yes, first you need activation, and then wait for approved. It's logic.

And you get a remark in this mail:
"Please note that this forum uses a moderated registration system where your application will be first processed. Therefore your account will not be usable until you receive a new email with confirmation of your membership." - hard
or
"Please note that this forum uses a moderated registration system where your application will be processed. Therefore your account will not be full usable until you receive a new email with confirmation of your membership." -soft

And you have a second mail with approwed/unnaprowed if select in this actions.

Quote:
I have uncecked pre-register
Admin have no receive email to inform that new member have register.

user have no receive Mail about approve account.
Because registration is free. What is this for?

Quote:
suggestions
Give user a reason why to register on forum like this:
http://www.grafix-world.nl/cgi-bin/yabbserver/foren/F_0001/YaBB.cgi?;action=regi...

Nice but a bit idealistic think.
Q: Why to register?
A: I'm a spammer  Grin

Quote:
and make a dropdown menu of Approval method setting from 0,1 and 2  Wink

Ok. .. and make a dropdown menu free/prereg/closed method please Wink
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #11 - Apr 16th, 2007 at 1:37pm
Print Post  
ok.

next i set it to 2 for hard. I can see all forums, I can post, View Memberlist...
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Zoo
Senior Member
****
Offline


I love YaBB 1G - SP1!

Posts: 290
Joined: Jan 22nd, 2003
Re: Registration with admin approval
Reply #12 - Apr 16th, 2007 at 1:46pm
Print Post  
This is not! a dynamic right-system.
Set to 1 or 2 and from then on the new regged/activated user to get this restriction.
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #13 - Apr 16th, 2007 at 1:57pm
Print Post  
ok I enabled pre-reg and set approve to hard.

After click link in email I get approve message on login.

but without pre-reg and set 2 for hard. I can login without get approve message.
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Registration with admin approval
Reply #14 - Apr 16th, 2007 at 2:13pm
Print Post  
Zoo wrote on Apr 16th, 2007 at 1:17pm:
And you have a second mail with approwed/unnaprowed if select in this actions.

Because registration is free. What is this for?



info mail for Admin is needed. Because Admin dont know if there new member and user wait and wait for their life and ask when I can post...  Grin
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 18
Send TopicPrint