vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Un-Activated User Management (https://vborg.vbsupport.ru/showthread.php?t=49879)

amykhar 03-09-2003 10:00 PM

Un-Activated User Management
 
This hack will email a warning to members who have not activated their account and then delete them. It can run via cron, and is a pretty darn easy hack to install.

Features:
1. Emails users after 3 days and reminds them to activate their accounts.

2. Emails users after 5 days and lets them know their account will be deleted if they do not activate.

3. Emails users after 8 days with a final warning.

4. Deletes un-activated members after 10 days.

Xyphen 03-10-2003 01:39 AM

Wow, very nice, going to install!!

refertech 03-10-2003 01:51 AM

very sweet hack. Could this work for users that are activated but are inactive for a period of time that i set?

Mark

amykhar 03-10-2003 01:55 AM

I have another hack in my profile that handles inactive members, refertech. It's in beta hacks but it will probably be moved to full releases in a few days. It seems solid.

Amy

refertech 03-10-2003 02:02 AM

Great. Your the man i mean lady.

Thanks,


:)

amykhar 03-10-2003 02:11 AM

Normally I don't bug people about clicking install, but I have a feeling this hack will wind up acquiring new features in the future. If you want to receive the update email, clicking install would make that happen.

JulianD 03-10-2003 02:34 AM

nice hack, I have a problem with those unconfirmed users, and i'm definitively installing this hack! thanks!

Smoothie 03-10-2003 03:30 AM

Is this configured in the admin cp? Got any screen shots?

007 03-10-2003 09:38 AM

Say someone registers and their userid is 100. If they turn out to be innactive and don't activate, then would there be a way to have the other usernames that registered and activated after them, say 101, 102 and 103, all drop down and fill the gap? So they would now be 100, 101, and 102? That would be cool. :)

sabret00the 03-10-2003 09:45 AM

that's a great hack i got 30 un activated accounts on my board, it's annoying

refertech 03-10-2003 10:14 AM

[high]* refertech clicks install. :)[/high]

sparky2 03-10-2003 10:17 AM

Quote:

Originally posted by 006
Say someone registers and their userid is 100. If they turn out to be innactive and don't activate, then would there be a way to have the other usernames that registered and activated after them, say 101, 102 and 103, all drop down and fill the gap? So they would now be 100, 101, and 102? That would be cool. :)
No.
The user.userid field is the primary key for the user table.
Mysql autoincrements & assigns the field value as each row is created.
Anyhow, if you could change it, and did... all the posts, PMs, subscribethread records etc. would then be associated with the "wrong" userids.

007 03-10-2003 10:59 AM

Oh yeah I tried something like this once and that's what happened. It's probably possible with a huge query, but probably not worth the effort. You're right ;)

amykhar 03-10-2003 01:07 PM

Quote:

Originally posted by Smoothie
Is this configured in the admin cp? Got any screen shots?
No to both. The emails are configurable by templates but if you want to change the times the emails are sent, you have to tinker with the code.

No screenshots because there are no screens. It's a silent script that runs via cron.

Amy

amykhar 03-10-2003 01:09 PM

Quote:

Originally posted by 006
Say someone registers and their userid is 100. If they turn out to be innactive and don't activate, then would there be a way to have the other usernames that registered and activated after them, say 101, 102 and 103, all drop down and fill the gap? So they would now be 100, 101, and 102? That would be cool. :)
Don't think you want to do that and here is why. In 10 days after the person fails to activate you could get 100 new members who do actively post. Their posts, etc are all marked with their userid. In addition, people may have bookmarked their profile page, etc. based on their current userid.

(Just noticed Sparky handled that one. Thank you Sparky)

Amy

drives fast 03-10-2003 02:28 PM

19 out of 20 times the reason they haven't completed their registration is due to them not receiving the e-mail in the first place and sending them more could be a waste of time.

The reasons I have noticed range from their inbox being full, their privider considering them spam, their provider not accepting from your host to them giving a bogus address.

My site often has problems contacting hotmail, AOL and various other un-heard of providers. Lately my site cannot contact msn.com e-mail users at all.

I can see a lot of e-mails comming from people complaining that they keep registering and it doesn't work.

I see no way to win this situation but if it were only due to the new registrants laziness or stupidity in completing the process rather than for all the other reasons this is a nice hack anyway.

amykhar 03-10-2003 03:05 PM

I ban hotmail because of that problem. I agree that the emails are probably not being received, but heck it's automated and doesn't waste my time. :D

Amy

Bane 03-10-2003 04:10 PM

Will this affect already unactivated users?

Dean C 03-10-2003 04:10 PM

Very good idea amy :)

[high]* Mist likes
[/high]

- miSt

amykhar 03-10-2003 05:10 PM

Quote:

Originally posted by Bane
Will this affect already unactivated users?
Not sure what you mean. This one is a check for people who never clicked the email activation link.

Amy

bspiller82 03-10-2003 05:11 PM

BuMp Installed

amykhar 03-10-2003 05:11 PM

Quote:

Originally posted by Mist
Very good idea amy :)

* Mist likes

- miSt

Actually the email part is not my idea. It was in the requests forum. It was so similar to my delete inactive users hack that it only took a few minutes to put together so I just went ahead and did it.

Amy

Gryphon 03-10-2003 10:19 PM

Quote:

Originally posted by Bane
Will this affect already unactivated users?
Yes, it will delete the ones you already have that are over 10 days, and email the others.

jjj0923 03-11-2003 01:17 PM

Great Hack. there people are a hassle to manage. Most people just enter their email address incorrectly or attempt to gain access to the forum without ever intending to complete the registration. This will keep out the interlopers. I will probably make a change and only give them 7 days total before deletion.

thanks!

- jeff

amykhar 03-12-2003 02:27 PM

Glad you like it, Jeff :)

Amy

amykhar 03-14-2003 03:45 PM

Just a suggestion:

Installing this hack: https://vborg.vbsupport.ru/showthrea...ght=activation

as well, will probably ensure that people who don't receive the email will know to contact you for assistance.

Amy

Capt PPRuNe 03-18-2003 12:11 AM

Installed hack but emails being sent out are without content or subject.

Can you confirm that the manageActivation.php file should be in the forums/admin directory or the foums directory? Have tried both but when in forums dir nothing happens and when in the forums/admin dir just get the blank email.

Accounts over 10 days without activation are deleted OK.

amykhar 03-18-2003 01:02 AM

It goes in the forums directory. If blank emails are being sent out, the templates are probably not installed in the style set that either you or your cron script are using.

Amy

Capt PPRuNe 03-18-2003 10:22 AM

OK, have made sure that the templates are in all styles. Now the email being sent out does not show Username or Activation ID.

What they get is:

Quote:

To complete your registration, click on the link below:
http://www.pprune.org/forums/register.php?a=act&u=&i=
The email is sent to the address of unactivated users but without any relevant data.

Any ideas?

amykhar 03-18-2003 01:31 PM

It doesn't sound like you have the correct stuff in the templates. There are 3 different email message templates. The line you are quoting appears in the middle of my 3 templates, and not at the beginning.

Amy

Capt PPRuNe 03-19-2003 09:36 AM

I know it is in the middle. I am just quoting the relevant bit. The script isn't pulling anything except the users email address. The activation code is not being filled with the relevant user ID number or the activation code number. Here is what is being sent out to unactivated users using your script (unmodified):
Quote:

Dear ,

Thank you for registering for the PPRuNe Forums forums. It has been 3 days since you registered, and you have not yet activated your account.

Please note - you must complete this last step to become a registered member. You will only need to click on the link once, and your account will be updated.

To complete your registration, click on the link below:
http://www.pprune.org/forums/register.php?a=act&u=&i=

<a href="http://www.pprune.org/forums/register.php?a=act&u=&i=">AOL Users click Here to be Activated</a>

**** Does The Above Link Not Work? ****
If the above link does not work, please use your Web browser to go to:
http://www.pprune.org/forums/register.php?a=ver

Please to be sure not to add extra spaces. You will need to type in your username and activation number on the page that appears when you click on our copy the above link in your browser.

Your Username is:
Your Activation ID is:



If you are still having problems signing up please contact a member of our support staff at admin1@pprune.org

Thanks very much,
PPRuNe Forums team
Also, couldn't you have written the script so that the activation script sits in the admin directory? It is a bit of a security hole because anyone who knows a bit about vBulletin can register themselves, post whatever they want once their registration has been active over 10 days (or after 3/5/8 days), change their email address but not activate it and then call the activation script and delete themselves automatically.

At the moment, if someone who has been a member for over 10 days and has simply changed their email address but not activated it yet and the script is run then their account is deleted automatically. Is there any way to add functionality by checking join date and if that is over say 10 days old that the account isn't deleted. I know I'm asking a lot but how about those accounts with join dates over 10 days old but not activated because of a change in email address that have at least 1 post have their User Title changed to something in bold red that they are going to be deleted if not activated within another 10 days? Just thinking aloud.

I think the script is a great idea and reduces workload but I need to make sure that it works. I have over 60,000 registered users and get over 50 new ones a day so deletion of unactivated users is a chore.

Kathy 03-19-2003 10:57 AM

I installed (thanks Amy!) and have empty personal content on the email also.

I created the three templates for content, and one for the subject matter. However on the first night the cron sent email, there is no content that will help my members register....

The manageActivation.php isn't pulling personal info into the template although the $username and $userid snips are in there...just as Capt PPRune.

Any ideas?

amykhar 03-19-2003 02:00 PM

I'll check it again regarding the missing info.

Regarding the admin directory, it doesn't work as a cron script in the admin directory. What I recommend is changing the name of the script to something only you know. However, I am also going to put a password option in it.

Amy

amykhar 03-19-2003 02:42 PM

OK. I put a password on the file. Change it in the php file to be whatever you choose. It's not the most secure thing in the world but is better than nothing.

The info is also showing up now. The zip had the wrong php file in it. To upgrade, simply edit the file to reflect your desired password and upload it. You will have to run the file like this:

http://www.yourforums.com/forums/man...sword=password


Amy

USODJA 03-19-2003 02:56 PM

I am getting a 404 error now......

and yes I put my url in...

amykhar 03-19-2003 03:07 PM

I don't get a 404 error when I go to your page:

http://www.usodja.com/forums/manageActivation.php

I just get a no permission error.

Amy

USODJA 03-19-2003 03:43 PM

no, i put in the password part like above and it goes 404
I have not changed passwords yet (until it works)

And yes I get what you get above, so even as admin, it will not let me do it...

amykhar 03-19-2003 04:32 PM

Check your PM USODJA.

Amy

USODJA 03-19-2003 05:41 PM

Cool, and dealt with, now for a cron problem ( I am removing some of the url to hide real direct) I get these two error lines back from the cron output.

/home/forums/manageActivation.php: line 3: syntax error near unexpected token `require('./global.php')'
/home/forums/manageActivation.php: line 3: ` require('./global.php');'

amykhar 03-19-2003 08:08 PM

I am not really a cron expert. I typically run cron jobs using Lynx. Do you have any php cron jobs that work on your site without Lynx?


All times are GMT. The time now is 10:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01368 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete