vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Email reminder for inactive users (https://vborg.vbsupport.ru/showthread.php?t=138946)

insidedesign 02-29-2008 05:00 PM

Has anyone had issues with this MOD when upgrading to vB 3.7?

MustangLisa 03-04-2008 02:30 AM

This looks great, thanks for your work on it! Installing it now.

dbtp 03-04-2008 11:44 AM

What is the best way to test this out? I would like to see what this email will look like before I go sending it out to all my inactive users.

toprak 03-05-2008 03:15 AM

Hi, This script is freezing my server.
IT starts sending around 6500 emails at midnight at it locks up my core duo server. Is there any way that we can separate or send emails 100 emails like every 10 minutes or can i choose time to send emails I want it to send emails 500 hundred in every ten minutes and at 5 am in the morning can you please add this to your script it is really freezing up the server. server can't handle 7000 emails. I have forum that has 100000 registered users..

djbaxter 03-05-2008 10:42 AM

Quote:

Originally Posted by Leb (Post 1451693)
The email reminder keep saying invalid email address on all members. I'm running VB 3.6.8 and installed email reminder V 1.11 . I appreciate if you can help :)

Uninstall. Install version 1.09.

Quote:

Originally Posted by zeus_r6 (Post 1453085)
My scheduled task log says that it emailed all the inactive members, but none are actually receiving the email

Quote:

Originally Posted by zeus_r6 (Post 1453098)
Switched to the older version and it works!

Yes. Version 1.11 is buggy. Consider it beta.

Quote:

Originally Posted by toprak (Post 1457231)
Hi, This script is freezing my server.
IT starts sending around 6500 emails at midnight at it locks up my core duo server. Is there any way that we can separate or send emails 100 emails like every 10 minutes or can i choose time to send emails I want it to send emails 500 hundred in every ten minutes and at 5 am in the morning can you please add this to your script it is really freezing up the server. server can't handle 7000 emails. I have forum that has 100000 registered users..

Yes. Uninstall version 1.11. Install version 1.09. Then go to Admin CP | vBulletin Options | Inactive Users Reminder Email and set it as follows:

Days of Inactivity = 90
How many days a user can go without posting before they are considered inactive.

Product Active? = Yes
Is this product active?

Email Frequency = 30 or greater
How often to send a reminder email once a member has become inactive. (How many days to wait before sending another email)

Email Quantity =3 ( or some other small number but keep it low)
How many emails to send each time cron runs (Lower means faster board, but longer to send all emails. Higher, vice versa.)

dbtp 03-05-2008 01:27 PM

This seems to be working just fine. thanks!

Scalemotorcars 03-06-2008 01:24 AM

1.09 Installed on 3.6.5 and seems to be working fine. :D

raghavhere 03-06-2008 07:47 AM

Thanks for the great MOD :)

joseduddy 03-06-2008 12:36 PM

Great Mod, I got it working just fine. Really helps increase traffic.
Thanks

-=Leb=- 03-07-2008 12:13 AM

Thx sir for you reply <3

Pamela 03-07-2008 12:25 AM

Awesome mod! :)

Would this work on a fresh install of 3.7.0 Beta 5...or does it need to be re-worked ?

Thanks! :)

toprak 03-07-2008 05:17 PM

Question: How many emails to send each time cron runs ?

How can I find how many times my cron runs and how recent if i setup this 40 emails ? is this every hour every minute how cna i check cron timing. ???

djbaxter 03-07-2008 07:00 PM

Quote:

Originally Posted by toprak (Post 1459506)
Question: How many emails to send each time cron runs ?

I'd recommend you keep it low so you don't annoy your host and/or set off spam filters.

Quote:

Originally Posted by toprak (Post 1459506)
How can I find how many times my cron runs and how recent if i setup this 40 emails ? is this every hour every minute how cna i check cron timing. ???

You can check this via AdminCP | Scheduled Tasks | Scheduled Task Manager.

Scroll down to Inactive User Reminder Emails and edit the settings there.

I would recommend that you set it to run no more than once or twice an hour. If memory serves, the defaults are much more frequently than that.

toprak 03-07-2008 09:17 PM

djbaxter Thank for your great support.. THANK YOU.

Rideharder 03-08-2008 02:19 AM

nice thanks!

djbaxter 03-08-2008 03:37 AM

Quote:

Originally Posted by toprak (Post 1459640)
djbaxter Thank for your great support.. THANK YOU.

Happy to help. :)

Rideharder 03-11-2008 02:45 AM

copyright is below my footer how can i move it up?

www.speedaholic.net

Aeolian 03-11-2008 05:55 PM

compatible with vb 3.7?
thanks!

ivanstanchev 03-11-2008 06:02 PM

I dont think of a greater plugin than this...

Pamela 03-13-2008 07:59 PM

Does anyone have this working on 3.7.0 yet? :)

djbaxter 03-13-2008 10:33 PM

Quote:

Originally Posted by Pamela (Post 1464089)
Does anyone have this working on 3.7.0 yet? :)

Do you know that it doesn't work on 3.7? Have you tried it?

ivanstanchev 03-14-2008 06:59 AM

I need help here.Here is what report do i receive
This email shows that the product is installed and working as it should be.


Emails sent to:sveteca didodi themaztiff . We tried to email the following users, but their email address was invalid:

I checked the 'sveteca'`s email and it is sveteca@gmail.com I think this is normal...what should cause this problem?

Pamela 03-14-2008 07:28 AM

Quote:

Originally Posted by djbaxter (Post 1464193)
Do you know that it doesn't work on 3.7? Have you tried it?


I'm actually opening a new site, so I have no inactive members yet to try it out on. Just thought I'd ask if anyone on 3.7.0 has this running yet because I would like it in the near future...

djbaxter 03-14-2008 12:09 PM

Quote:

Originally Posted by ivanstanchev (Post 1464435)
Emails sent to:sveteca didodi themaztiff . We tried to email the following users, but their email address was invalid:

I checked the 'sveteca'`s email and it is sveteca@gmail.com I think this is normal...what should cause this problem?

The report is telling you that sveteca, didodi, and themaztiff were emailed successfully. If noone was listed after "but their email address was invalid", it means no invalid email addresses were found.

Quote:

Originally Posted by Pamela (Post 1464457)
I'm actually opening a new site, so I have no inactive members yet to try it out on. Just thought I'd ask if anyone on 3.7.0 has this running yet because I would like it in the near future...

I rarely install betas so I haven't tried it yet but it appears that the majority of add-ons that work for 3.6.8 PL2 are also working for the 3.7 betas.

Conner85 03-17-2008 07:10 AM

Does anyone know if there's any way to get in trouble for spam with this hack?

Direct Vision 03-17-2008 07:27 AM

thanks alot friend for this, i instal it later scince my server is down lol

Feckie (Roger) 03-17-2008 07:50 AM

Quote:

Originally Posted by ivanstanchev (Post 1464435)
I need help here.Here is what report do i receive
This email shows that the product is installed and working as it should be.


Emails sent to:sveteca didodi themaztiff . We tried to email the following users, but their email address was invalid:

I checked the 'sveteca'`s email and it is sveteca@gmail.com I think this is normal...what should cause this problem?

This should be two lines, ie:

Code:

Emails sent to:sveteca didodi themaztiff .
Code:

We tried to email the following users, but their email address was invalid:
What it is saying is it sent NO emails to invalid email addresses...

hope that helps ;)

djbaxter 03-17-2008 10:54 AM

Quote:

Originally Posted by Conner85 (Post 1466817)
Does anyone know if there's any way to get in trouble for spam with this hack?

There shouldn't be although I recommend a modification to the text of the email sent out.

1. You are only sending it to members who (a) registered on your site and (b) left the "Recive email from admins" box checked: that's opt-in.

2. Now add the opt-out part - Make sure that you're outgoing email reads something like this (Admin CP | vBulletin Options | Inactive User Reminder Emails -> Email message:

Code:

Hello, $username!

<p>You are receiving this email because you previously registered at the {name of forum} Forum with the following information:</p>

<p>Member name: $username<br>
User number: $userid<br>
Email address: $email</p>

<p>It's been some time since your last visit to our community.</p>

<p>You might be interested in having another look. We have added several features and enhancements to the forums, and many new topics and new members are added every day.</p>

<p>If you don't remember your password, you can request it here: <a href="http://www.yourforum.com/login.php?do=lostpw">http://www.yourforum.com/login.php?do=lostpw</a>.</p>

<p>We hope to see you back soon.</p>

<p>If you do not wish to receive further emails of this nature, please log into your UserCP at <a href="http://www.yourforum.com/profile.php?do=editoptions">http://www.yourforum.com/profile.php?do=editoptions</a> and uncheck the box next to Receive Email from Administrators.</p>

<p>Administrator<br>
<a href="http://www.yourforum.com">{name of forum} Forum</a><br>
http://www.yourforum.com</p>


Gersfan 03-17-2008 04:39 PM

Am I meant to run Cron tasks for something with this? or does it do it all itself..

I created a User for testing, Set the emails to 1 Day, I've waited nearly 48 hours and I'm not got any emails..

Thanks,

Zaiaku 03-17-2008 04:46 PM

Since no one else has stated this I'll go ahead and post it.

Confirmed working on 3.7 beta 6.

djbaxter 03-17-2008 05:21 PM

Quote:

Originally Posted by Gersfan (Post 1467137)
Am I meant to run Cron tasks for something with this? or does it do it all itself..

I created a User for testing, Set the emails to 1 Day, I've waited nearly 48 hours and I'm not got any emails..

Thanks,

Check the cron settings in Admin CP | Scheduled Tasks - think the default is way too often, if memory serves.

I don't get email notifications of the emails sent out either - I may have disabled that as an option, not sure.

You say you just created the user and "set the emails to 1 Day" - what does that mean? Which version are you using and specifically which setting did you make "1 day"?

Gersfan 03-18-2008 07:48 AM

I'm using VB 3.6.8 and the version of this mod i'm using is 1.11.

Settings:

Product Active: Yes
Days of Inactivity: 1
Email Frequency: 1
Inactivity based on last post: Yes

The reason I've set it to 1 was only for testing it out..

I set the Scheduled Task to Run and I got this..

Inactive User Reminder Emails
Found 0 Inactive Users.
Done

Thanks,

djbaxter 03-18-2008 10:34 AM

Uninstall 1.11 and install 1.09.

Forum Lover 03-18-2008 02:17 PM

Is it working with 3.7?

Zaiaku 03-18-2008 05:00 PM

Quote:

Originally Posted by Forum Lover (Post 1467935)
Is it working with 3.7?

I just stated that the other day. Yes it does. I'm running 3.7 beta 6 and its working just fine.

BlueBulletRL 03-24-2008 05:24 AM

i have this on a 3.6.8 Level 2 board and according to the cron log it is saying No Emails to send. I just set it to try and send an email to my test account but I've never recieved an email. any other way i can test this? I would love this to work as I have many members i would love to try and get them back.

DieselTruck 03-24-2008 11:40 AM

Quote:

Originally Posted by BlueBulletRL (Post 1473053)
i have this on a 3.6.8 Level 2 board and according to the cron log it is saying No Emails to send. I just set it to try and send an email to my test account but I've never recieved an email. any other way i can test this? I would love this to work as I have many members i would love to try and get them back.

Seems to be working fine for me.

In my Settings:

Days of Inactivity: 7

Email Freq: 9

Usergroups to Send Email: 2 (My Registered Users)

BlueBulletRL 03-24-2008 06:10 PM

I have it set to 1 day inactivity email 2 and usergroups is 2 for registered users still not working for me.

Martin-TMGRS 03-26-2008 11:30 AM

When I run the scheduled task manager I keep getting this come up, any ideas please. I've uninstalled 1.11 and reinstalled 1.09 and then done the same back to 1.11 again but still getting this error on both ver's

Inactive User Reminder Emails
db)) { exit; } error_reporting(E_ALL & ~E_NOTICE); if($vbulletin->options['reminder_active']){ $now = time(); $datetime = array(); $quantity = $vbulletin->options['quantity']; $datetime[lastpost] = $now - (60 * 60 * 24 * $vbulletin->options['inactivity']); $datetime[lastemail] = $now - (60 * 60 * 24 * $vbulletin->options['frequency']); $usergroups = explode(",",$vbulletin->options['usergroups']); if($vbulletin->options['reminder_posts']){ $result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); } else { $result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); } print("Found " . mysql_num_rows($result) . " Inactive Users.

"); while($row = $vbulletin->db->fetch_array($result)){ if(is_member_of($row, $usergroups)){ print("Sent To: $row[username]
"); $username = $row[username]; $toemail = $row[email]; $userid = $row[userid]; $bbtitle = $vbulletin->options['bbtitle']; $homeurl = $vbulletin->options['homeurl']; $forumurl = $vbulletin->options['bburl']; $hometitle = $vbulletin->options['hometitle']; eval('$message = "' . addslashes($vbulletin->options['message']) . '";'); $message = stripslashes($message); //$headers = "MIME-Version: 1.0" . "\r\nContent-type: text/html; charset=iso-8859-1" . "\r\n"; $uheaders .= "To: $username <$email>" . "\r\n"; $uheaders .= "From: " . $vbulletin->options['bbtitle'] . " Reminder Service <" . $vbulletin->options['webmasteremail'] . ">" . "\r\n"; eval('$subject = "' . addslashes($vbulletin->options['subject']) . '";'); $subject = stripslashes($subject); if($vbulletin->options['reminder_emailfooter']){ $message = $message . "Email Reminder System Provided By Mished.co.uk"; } /*if(@mail($email, $subject, $message, $headers)){ print("mailing $email (done)
"); } else { print("mailing $email (failed)
"); }*/ if(is_valid_email($toemail)){ $sentlist .= "$username "; vbmail($toemail, $subject, $message, $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = '', $username = ''); } else { $failedlist .= "$username "; } } } if($sentlist == ""){ log_cron_action("No Emails to send", $nextitem); vbmail($vbulletin->options['webmasteremail'], "Inactive User Reminder Email Report", "This email shows that the product is installed and working as it should be.\n\n\nThere were no inactive users at this time.", $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = "From: " . $vbulletin->options['bbtitle'] . " Reminder Service <" . $vbulletin->options['webmasteremail'] . ">" . "\r\n", $username = ''); } else { log_cron_action("Emails sent to:$sentlist. We tried to email the following users, but their email address was invalid:$failedlist", $nextitem); vbmail($vbulletin->options['webmasteremail'], "Inactive User Reminder Email Report", "This email shows that the product is installed and working as it should be.\n\n\nEmails sent to:" . $sentlist . ". We tried to email the following users, but their email address was invalid:" . $failedlist . "", $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = "From: " . $vbulletin->options['bbtitle'] . " Reminder Service <" . $vbulletin->options['webmasteremail'] . ">" . "\r\n", $username = ''); } } else { print("Product is inactive at this time!"); } ?>

Done

djbaxter 03-26-2008 12:18 PM

Quote:

Originally Posted by Martin-TMGRS (Post 1474891)
When I run the scheduled task manager I keep getting this come up, any ideas please. I've uninstalled 1.11 and reinstalled 1.09 and then done the same back to 1.11 again but still getting this error on both ver's

Inactive User Reminder Emails
db)) { exit; } error_reporting(E_ALL & ~E_NOTICE); if($vbulletin->options['reminder_active']){ $now = time(); $datetime = array(); $quantity = $vbulletin->options['quantity']; $datetime[lastpost] = $now - (60 * 60 * 24 * $vbulletin->options['inactivity']); $datetime[lastemail] = $now - (60 * 60 * 24 * $vbulletin->options['frequency']); $usergroups = explode(",",$vbulletin->options['usergroups']); if($vbulletin->options['reminder_posts']){ $result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); } else { $result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16"); //print("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16
"); } print("Found " . mysql_num_rows($result) . " Inactive Users.

"); while($row = $vbulletin->db->fetch_array($result)){ if(is_member_of($row, $usergroups)){ print("Sent To: $row[username]
"); $username = $row[username]; $toemail = $row[email]; $userid = $row[userid]; $bbtitle = $vbulletin->options['bbtitle']; $homeurl = $vbulletin->options['homeurl']; $forumurl = $vbulletin->options['bburl']; $hometitle = $vbulletin->options['hometitle']; eval('$message = "' . addslashes($vbulletin->options['message']) . '";'); $message = stripslashes($message); //$headers = "MIME-Version: 1.0" . "\r\nContent-type: text/html; charset=iso-8859-1" . "\r\n"; $uheaders .= "To: $username <$email>" . "\r\n"; $uheaders .= "From: " . $vbulletin->options['bbtitle'] . " Reminder Service <" . $vbulletin->options['webmasteremail'] . ">" . "\r\n"; eval('$subject = "' . addslashes($vbulletin->options['subject']) . '";'); $subject = stripslashes($subject); if($vbulletin->options['reminder_emailfooter']){ $message = $message . "Email Reminder System Provided By Mished.co.uk"; } /*if(@mail($email, $subject, $message, $headers)){ print("mailing $email (done)
"); } else { print("mailing $email (failed)
"); }*/ if(is_valid_email($toemail)){ $sentlist .= "$username "; vbmail($toemail, $subject, $message, $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = '', $username = ''); } else { $failedlist .= "$username "; } } } if($sentlist == ""){ log_cron_action("No Emails to send", $nextitem); vbmail($vbulletin->options['webmasteremail'], "Inactive User Reminder Email Report", "This email shows that the product is installed and working as it should be.\n\n\nThere were no inactive users at this time.", $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = "From: " . $vbulletin->options['bbtitle'] . " Reminder Service <" . $vbulletin->options['webmasteremail'] . ">" . "\r\n", $username = ''); } else { log_cron_action("Emails sent to:$sentlist. We tried to email the following users, but their email address was invalid:$failedlist", $nextitem); vbmail($vbulletin->options['webmasteremail'], "Inactive User Reminder Email Report", "This email shows that the product is installed and working as it should be.\n\n\nEmails sent to:" . $sentlist . ". We tried to email the following users, but their email address was invalid:" . $failedlist . "", $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = "From: " . $vbulletin->options['bbtitle'] . " Reminder Service <" . $vbulletin->options['webmasteremail'] . ">" . "\r\n", $username = ''); } } else { print("Product is inactive at this time!"); } ?>

Done

This seems to be displaying the contents of the cron job. It doesn't appear to be a problem with this add-on. My guess is that your server is misconfigured in some way.

Are ANY cron jobs running successfully on your installation?


All times are GMT. The time now is 08:09 AM.

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.02114 seconds
  • Memory Usage 1,878KB
  • 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
  • (3)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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