vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Email Reminder for inactive users (https://vborg.vbsupport.ru/showthread.php?t=237531)

TalkVirginia 03-15-2010 05:14 PM

How's the mod working for everyone? Any comments, questions, suggestions to add to my to-do list? :)

Alibass 03-15-2010 08:37 PM

Quote:

Originally Posted by TalkVirginia (Post 2004184)
How's the mod working for everyone? Any comments, questions, suggestions to add to my to-do list? :)

Mod is working as it should, but seems to be a bug on the email report. It says that emails were invalid but they were sent and received.

Code:

This email shows that the product is installed and working as it should be.


Emails sent to: Test Member


We tried to email the following users, but their email address was invalid:


TalkVirginia 03-15-2010 10:27 PM

Quote:

Originally Posted by Alibass (Post 2004307)
Mod is working as it should, but seems to be a bug on the email report. It says that emails were invalid but they were sent and received.

Code:

This email shows that the product is installed and working as it should be.


Emails sent to: Test Member


We tried to email the following users, but their email address was invalid:


I'm 99.9% certain that's what you should be receiving. I'll double check the code, but if there were any users that had invalid email addresses and could not send email to, they would have shown up below the last line. If you enter a bad email address for that test user, one that you know will fail, that report will tell you.

TalkVirginia 03-15-2010 11:57 PM

1 Attachment(s)
While reviewing the code this evening, I did come across one issue so far related to processing inactive users in a batch configuration. According to the description:

Quote:


How many users to process during each scheduled task? (0 for unlimited)

I was originally testing for a blank field or zero length input in this field when it should have been checking for a value greater than zero (0). This has been corrected and I'm attaching the new fix. Drop it into your /forumroot/includes/cron folder and you will be set. I will update the zip file with the fix as well and increment the version count.

djbaxter 03-16-2010 12:10 AM

Quote:

Originally Posted by Alibass (Post 2004307)
Mod is working as it should, but seems to be a bug on the email report. It says that emails were invalid but they were sent and received.

Code:

This email shows that the product is installed and working as it should be.


Emails sent to: Test Member


We tried to email the following users, but their email address was invalid:


That's the way it is designed. if no email addresses or member names are listed after "We tried to email the following users, but their email address was invalid:", it means that no invalid email addresses were found.

insidedesign 03-17-2010 04:14 PM

I uploaded the files and the xml product, but the version still lists 2.0.0 - is this on my end or with the plugin?

Also, what happens when you install this on a vbulletin website that already has tens of 1,000s of members? I assume I have 1,000s of members with last action dates well past due for a reminder email. How are these handled?

Sadikb 03-17-2010 04:19 PM

Hi, Installed and Working fine.

There is one problem however. In the emails that this product sends, it uses the hostname in the email header for "mailed-by" and also in the from field it appends the Host domain name. Can we change that to use our own domain name instead of the host's domain name?

Thanks

TalkVirginia 03-17-2010 05:15 PM

Quote:

Originally Posted by insidedesign (Post 2005653)
I uploaded the files and the xml product, but the version still lists 2.0.0 - is this on my end or with the plugin?

Thanks for pointing this out. I'm still learning about the product packaging. I can update the version on the product xml file however my original thinking was that since there was not an issue in the product xml I'd leave that as 2.0.0. The last fix was in the reminderemail.php.

Quote:

Originally Posted by insidedesign (Post 2005653)
Also, what happens when you install this on a vbulletin website that already has tens of 1,000s of members? I assume I have 1,000s of members with last action dates well past due for a reminder email. How are these handled?

Change the value in Number of users to process during each scheduled task

TalkVirginia 03-17-2010 05:24 PM

Quote:

Originally Posted by Sadikb (Post 2005659)
Hi, Installed and Working fine.

There is one problem however. In the emails that this product sends, it uses the hostname in the email header for "mailed-by" and also in the from field it appends the Host domain name. Can we change that to use our own domain name instead of the host's domain name?

Thanks

I should be able to do that. If you can you post an example header of what you are referring to and I'll look into it.

insidedesign 03-17-2010 09:02 PM

Quote:

Originally Posted by TalkVirginia (Post 2005696)
Thanks for pointing this out. I'm still learning about the product packaging. I can update the version on the product xml file however my original thinking was that since there was not an issue in the product xml I'd leave that as 2.0.0. The last fix was in the reminderemail.php.



Change the value in Number of users to process during each scheduled task

So should this number be equal or greater than the number of members a website has? Sorry, just trying to get a good understanding... :)

TalkVirginia 03-18-2010 08:44 AM

Quote:

Originally Posted by insidedesign (Post 2005740)
So should this number be equal or greater than the number of members a website has? Sorry, just trying to get a good understanding... :)

Sorry for the delay in responding. I haven't been able to post anything for around the last 24 hours to this site using any other browser other than safari.

To answer your question though.. basically it depends on how large of a load you want to put on your server when sending out emails. If you enter in 1000, it's going to process and send out 1000 emails during each scheduled task, providing there are that many inactive members.

ellinofatsa 03-18-2010 07:11 PM

thanks

TalkVirginia 03-18-2010 10:34 PM

Quote:

Originally Posted by ellinofatsa (Post 2006005)
thanks

You're very welcome :)

TalkVirginia 03-18-2010 10:43 PM

I have update the version number of the product XML file to 2.0.1. No need to import this unless you want the product to reflect the version change. I removed the old v2.0.1 zip file and uploaded a new one.

-=Leb=- 03-20-2010 09:12 PM

thx for the great hack :)

TalkVirginia 03-20-2010 09:45 PM

Quote:

Originally Posted by Leb (Post 2007235)
thx for the great hack :)

You're most welcome! :) Stay tuned - there's more to come. :)

TalkVirginia 03-20-2010 09:48 PM

If anyone wouldn't mind posting some samples of their reminder emails, I'll include them in a new release in addition to the default message text.

TalkVirginia 03-23-2010 01:39 PM

Just a heads up to everyone that has this mod installed. I'll be releasing another update very shortly (within the next several days or so) with some new features. A few features you can expect to see will be:
  • Logging of inactive members that have been sent reminders
  • Giving members to option to unsubscribe from receiving reminder emails either via the usercp "General Settings" screen, or by clicking on a link in a reminder email
  • Limit reminder emails to MaxNumber sent
  • View Inactivity Stats Reports, and Inactivity Log Reports via the admincp

gurler 03-23-2010 01:44 PM

excellent working..
increases online people..

thank you.

Trek 03-23-2010 07:34 PM

I'm not sure if this mod will do what I am wanting, so let me outline what I'm looking for below. =)

I want to be able to configure multiple conditions as to when these get sent out.

Basically for usergroups 1,2,3,4 I want to send out email template X if they have been inactive for Y Days.

For usergroups 5,6,7,8 I want to send out email template X if they have been inactive for Y Days.

These would ideally be on a CRON and happen without any manual intervention from me. I'd also like it make it so they CANNOT opt out as well. These are only sent to members (not registered users) in my case and some of what I am doing, they are signing up for anyway. So it's no worry. But having the option is what I'm looking for.

Anyway, thanks for any response you have time for! =)

TalkVirginia 03-23-2010 11:37 PM

Quote:

Originally Posted by Trek (Post 2008931)
I'm not sure if this mod will do what I am wanting, so let me outline what I'm looking for below. =)

I want to be able to configure multiple conditions as to when these get sent out.

Basically for usergroups 1,2,3,4 I want to send out email template X if they have been inactive for Y Days.

For usergroups 5,6,7,8 I want to send out email template X if they have been inactive for Y Days.

These would ideally be on a CRON and happen without any manual intervention from me. I'd also like it make it so they CANNOT opt out as well. These are only sent to members (not registered users) in my case and some of what I am doing, they are signing up for anyway. So it's no worry. But having the option is what I'm looking for.

Anyway, thanks for any response you have time for! =)

Hey Trek, Thanks for your input on features. Unfortunately the addon does not have these features currently. I'll add your feature requests to my list. Give me some time and I will see what I can do to add them in.

grahamsmythe 03-26-2010 05:29 PM

That lastest update - 2.1.0 - is the folder 'admin' that's to be uploaded supposed to be 'admincp'?

TalkVirginia 03-26-2010 05:42 PM

Quote:

Originally Posted by grahamsmythe (Post 2010657)
That lastest update - 2.1.0 - is the folder 'admin' that's to be uploaded supposed to be 'admincp'?

Yes it is. I'll fix that and reupload the zip. Thank you.

-=Leb=- 03-26-2010 10:21 PM

hi talk virginia, i wonder of the mod working on my forum on every email i got it says the email address was invalid. Look Down

This email shows that the product is installed and working as it should be.


Emails sent to:
shawn.89 MrTbcbender kalvho Zeus DaSnitch Track & XCountry - BWS1 slugg1n ZeLL Hamsterkiller Uspeer


We tried to email the following users, but their email address was invalid:

I hope its working as it should be.

gurler 03-26-2010 10:25 PM

Quote:

Originally Posted by Leb (Post 2010821)
We tried to email the following users, but their email address was invalid:

this means "there is no invalid email. everything works."

-=Leb=- 03-26-2010 10:29 PM

lol thx for the reply :) just want to make sure

TalkVirginia 03-26-2010 10:33 PM

Quote:

Originally Posted by Leb (Post 2010821)
hi talk virginia, i wonder of the mod working on my forum on every email i got it says the email address was invalid. Look Down

This email shows that the product is installed and working as it should be.


Emails sent to:
shawn.89 MrTbcbender kalvho Zeus DaSnitch Track & XCountry - BWS1 slugg1n ZeLL Hamsterkiller Uspeer


We tried to email the following users, but their email address was invalid:


I hope its working as it should be.

Quote:

Originally Posted by gurler (Post 2010823)
this means "there is no invalid email. everything works."

gurler Thanks for clarifying that. I'm going to look at suppressing that last line unless there are actually failed emails. That should will eliminate the confusion. :)

utahraves 03-26-2010 10:36 PM

The UPLOAD folder has ADMIN instead of ADMINCP

TalkVirginia 03-26-2010 10:47 PM

Quote:

Originally Posted by utahraves (Post 2010828)
The UPLOAD folder has ADMIN instead of ADMINCP

FRAK! Ok Thank you...

archet1337 03-26-2010 11:30 PM

I just installed this mod, but I can't find the cron job in Scheduled Task Manager.

Alibass 03-26-2010 11:55 PM

Quote:

Originally Posted by archet1337 (Post 2010854)
I just installed this mod, but I can't find the cron job in Scheduled Task Manager.

I received about a half dozen update notices on this hack today and I have yet to figure what has been done except from the first update notice.

There was a cron routine but it is no longer there since 2.1.0 release!

TalkVirginia 03-27-2010 02:15 AM

1 Attachment(s)
Quote:

Originally Posted by archet1337 (Post 2010854)
I just installed this mod, but I can't find the cron job in Scheduled Task Manager.

Quote:

Originally Posted by Alibass (Post 2010864)
I received about a half dozen update notices on this hack today and I have yet to figure what has been done except from the first update notice.

There was a cron routine but it is no longer there since 2.1.0 release!

You're right.. Not sure how that got changed.. Anyway, I've updated the zip file and reuploaded. If you want to add the cron by hand, here is a screen shot of the settings:

archet1337 03-27-2010 03:48 AM

Thanks for the quick fix, TalkVirginia!

Rated 5/5 and nominated :)

Edit: One more thing, the emails being sent out have no sender identified. Says it's been sent from (unknown sender)

TalkVirginia 03-27-2010 07:36 AM

Quote:

Originally Posted by archet1337 (Post 2010937)
Thanks for the quick fix, TalkVirginia!

Rated 5/5 and nominated :)

Edit: One more thing, the emails being sent out have no sender identified. Says it's been sent from (unknown sender)

Make sure you have an email address set for webmaster in vbulletin
Settings -> Options -> Site Name/URL/Contact Settings

archet1337 03-27-2010 11:44 AM

Quote:

Originally Posted by TalkVirginia (Post 2010976)
Make sure you have an email address set for webmaster in vbulletin
Settings -> Options -> Site Name/URL/Contact Settings

I have webmaster@digi-tech.org set as email address, and the report emails / test emails I receive says "digi-tech forums - webmaster@digi-tech.org"

When I created an test account and set the user activity back 2 months and then rand the cron, that user received the reminder email from "(unknown sender)"

Alibass 03-27-2010 01:44 PM

Can anyone confirm you are getting this mod to work in last activity mode?

I have mine set for 180 days and I have tested on a few users who have had no activity past the 180 days cut off. It just doesn't work, I get no emails to send.

If I choose last post activity mode the mod works fine.

TalkVirginia 03-27-2010 02:47 PM

Quote:

Originally Posted by archet1337 (Post 2011046)
I have webmaster@digi-tech.org set as email address, and the report emails / test emails I receive says "digi-tech forums - webmaster@digi-tech.org"

When I created an test account and set the user activity back 2 months and then rand the cron, that user received the reminder email from "(unknown sender)"

Quote:

Originally Posted by Alibass (Post 2011080)
Can anyone confirm you are getting this mod to work in last activity mode?

I have mine set for 180 days and I have tested on a few users who have had no activity past the 180 days cut off. It just doesn't work, I get no emails to send.

If I choose last post activity mode the mod works fine.

I'm checking into these issues now and will see if I can reproduce them.

TalkVirginia 03-27-2010 03:21 PM

Quote:

Originally Posted by archet1337 (Post 2011046)
I have webmaster@digi-tech.org set as email address, and the report emails / test emails I receive says "digi-tech forums - webmaster@digi-tech.org"

When I created an test account and set the user activity back 2 months and then rand the cron, that user received the reminder email from "(unknown sender)"

Archet,

Can you tell me if this happens every time you send out reminder emails or has it only happened one time? At the moment, I'm not able to reproduce this, however I will keep my eye on it.

TalkVirginia 03-27-2010 03:30 PM

Quote:

Originally Posted by Alibass (Post 2011080)
Can anyone confirm you are getting this mod to work in last activity mode?

I have mine set for 180 days and I have tested on a few users who have had no activity past the 180 days cut off. It just doesn't work, I get no emails to send.

If I choose last post activity mode the mod works fine.

Where you able to send reminder email out at least once to inactive users? The way it works is the first time reminder emails are sent out, each inactive user will get a timestamp for that reminder mail run. Each time the cron job runs after that it will use the number of days set in the field "How often should we send inactivity reminders". For example, if a user has been inactive for 180 days, this user would get a reminder. If you have 30 in the field mentioned above, this user would not receive another reminder for 30 days. If you want them to get reminders more frequently, then you would need to set this to a lower number. For instance, 7 days then they would get reminders, once a week.

It works the same way when sending reminders in lastpost mode.

archet1337 03-27-2010 05:24 PM

Quote:

Originally Posted by TalkVirginia (Post 2011107)
Archet,

Can you tell me if this happens every time you send out reminder emails or has it only happened one time? At the moment, I'm not able to reproduce this, however I will keep my eye on it.

I have only tried it once. Give me a couple of minutes and I will check and get back to you.

Edit: I'm having a hard time reproducing it as I can't get the cron to send out any emails even though I have set last activity/post of two test accounts back one and three months.

When I get the email reports sent from the same email address to admin, they show up with "Digi-Tech Forums" as sender, so I can only assume it's working as intended?

If not, I will give you a shout ;)


All times are GMT. The time now is 04:20 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.02344 seconds
  • Memory Usage 1,853KB
  • 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
  • (27)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