1

Topic: Admin / Moderator confirm registration

Hi.

How I can replace posting registration confirmation email to me, not to registering user?

Re: Admin / Moderator confirm registration

If you get the e-mail, how will people get their password?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by adsh 2004-06-20 23:33)

Re: Admin / Moderator confirm registration

User get email without activation link, Moderator get dublicate email with activation link.

Another way is special page to activate users (only) manually.

I to be confronted with uncontrolled users registration sad.

Re: Admin / Moderator confirm registration

Open up register.php and look for

pun_mail($email1, $mail_subject, $mail_message);

Replace $email1 with i.e. 'your_email@example.com'

But then you will have to send them an e-mail manually with the password.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: Admin / Moderator confirm registration

Thank you, Rickard smile.

6

Re: Admin / Moderator confirm registration

User can visit "login.php?action=forget" and change your password sad.

Re: Admin / Moderator confirm registration

And what is bad about that? Shouldn't people be able to login if they forget their password?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

8

Re: Admin / Moderator confirm registration

See your previouse post (2004-06-21) about subject. I to be confronted with uncontrolled users registration.

Re: Admin / Moderator confirm registration

Yes, but I can't see how that has anything to do with this. login.php?action=forget only works for people who are already registered.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

10 (edited by adsh 2004-07-24 22:06)

Re: Admin / Moderator confirm registration

"login.php?action=forget" works with registered, but not verified users:

cat /usr/local/httpd/logs/www.server.com-access_log | grep "xxx.xxx.xxx.xxx"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:37:45 +0300] "POST /forum/register.php HTTP/1.1" 200 3102 "http://www.server.com/forum/register.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:38:50 +0300] "POST /forum/register.php?action=register HTTP/1.1" 200 1139 "http://www.server.com/forum/register.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:39:08 +0300] "GET /forum/login.php HTTP/1.1" 200 1717 "http://www.server.com/forum/register.php?action=register" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:40:11 +0300] "POST /forum/login.php?action=in HTTP/1.1" 200 1100 "http://www.server.com/forum/login.php" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:40:20 +0300] "GET /forum/login.php?action=forget HTTP/1.1" 200 1763 "http://www.server.com/forum/login.php?action=in" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:40:38 +0300] "POST /forum/login.php?action=forget_2 HTTP/1.1" 200 1191 "http://www.server.com/forum/login.php?action=forget" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:56:43 +0300] "GET /forum/profile.php?id=259&action=change_pass&key=8PLxG6zn HTTP/1.1" 200 1063 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"
xxx.xxx.xxx.xxx - - [24/Jul/2004:17:56:54 +0300] "GET /forum/login.php HTTP/1.1" 200 1745 "http://www.server.com/forum/profile.php?id=259&action=change_pass&key=8PLxG6zn" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.23  [ru]"

smile

I get regestration message, but I do not post password to user sad.

Re: Admin / Moderator confirm registration

Aha, now I see. Well, then I guess you'll have to disable it. I can't imagine people would go to such lengths to register lots of accounts in your forums, but here's how to disable it:

1. Open up login.php.
2. Locate

else if ($action == 'forget' || $action == 'forget_2')

3. Before that, add: /*
4. Locate

else
{
    if (!$cookie['is_guest'])
        header('Location: index.php');

5. Before that, add: */

That should do it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

12

Re: Admin / Moderator confirm registration

Isn't there a feature that allows the admin to approve registrations?  I would have thought that would be standard.  So, for example, a forum can be read by the public but only members of an organization can join and post to it.

13 (edited by D9r 2004-08-18 22:57)

Re: Admin / Moderator confirm registration

(Looks like some sort of line-wrapping for the Code Block would be handy. wink )

Re: Admin / Moderator confirm registration

D9r wrote:

(Looks like some sort of line-wrapping for the Code Block would be handy. ;) )

In 1.2, the code boxes get scrollbars if the code is too long or too wide.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

15

Re: Admin / Moderator confirm registration

Is there a feature that allows the admin to approve registrations?   In other words, can a forum be set up so that only members of an organization can join and post.

Re: Admin / Moderator confirm registration

Currently, no.

"Programming is like sex: one mistake and you have to support it for the rest of your life."