Version: 1.00, by amykhar
Developer Last Online: Nov 2013
Version: 2.2.x
Rating:
Released: 03-09-2003
Last Update: Never
Installs: 32
No support by the author.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
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.
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.
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.
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:
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');'