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)

wildo69 03-05-2007 02:49 AM

Great mod... *installed*

just a suggestion (as i didn't find it when searching this thread)
maybe add a button to the admincp options that can be used to send a "test" message to the admin/current admin so we can check the formating and appearance of the message before it gets sent to thousands of our members.. :)

thanks again

Hemanth 03-06-2007 03:46 PM

Hi,

1. Can you please add an option to set the sender email address as it's giving a hell lot of server info out.

eg.

Quote:

Content-type: text/html; charset=iso-8859-1

To: Xtra <useremailq@gmail.com>
From: MyForum.com@web2.myhost.com, Community@web2.myhost.com,
-@web2.myhost.com, Technology@web2.myhost.com,
Computers@web2.myhost.com,
&amp@web2.myhost.com;Internet!Reminder Service
<admin@mysite.com>
Message-Id: <20070305201724.BBFD347056@web2.myhost.com>
Date: Mon, 5 Mar 2007 14:17:24 -0600 (CST)
2. Do i need to add any HTML email sending hacks to make this work as all the html code i'm putting is mail as itself. No formatting done. Is there any settings i need to change in vB?

Please respond.

djbaxter 03-06-2007 03:54 PM

I'm not the author of this add-on. I'm just a user.

Hemanth 03-06-2007 03:57 PM

Quote:

Originally Posted by djbaxter (Post 1197260)
I'm not the author of this add-on. I'm just a user.

Sorry my friend. It was a mistake. :)

Battle_Ring 03-06-2007 04:14 PM

I installed this but all the emails come back as unrouteable mail domain

Chadi 03-06-2007 06:17 PM

A good feature needed is ability to exclude members from receiving further notification. The only method now is to close their account.

fifko 03-06-2007 07:15 PM

Seems like C. was las active on 25. Feb 2007...

Hopefully he is just on some holiday :D


Great hack btw... once all the issues described in the last few pages are fixed, I will definitely go for this ;) .

Thanks

djbaxter 03-07-2007 12:03 AM

Quote:

Originally Posted by chadi (Post 1197389)
A good feature needed is ability to exclude members from receiving further notification. The only method now is to close their account.

Yes. That is the major remaining bug.

If Chris doesn't come back soon, I'll try to find a fix for this myself.

Smoothie 03-07-2007 01:06 AM

I have this clicked as installed, but I haven't yet. I hope the fix to "respect users email options from the site" comes soon.

mollila 03-09-2007 10:03 AM

Does this mod check that the user has given permission to receive emails from Administrators?

And does it provide a link to the website where user can change that preference?

criscokid 03-09-2007 10:38 AM

Quote:

Originally Posted by carpefile (Post 1192968)
Really need to get the cron log working with this hack. It makes it impossible to really know who this hack is sending mail to and when

I'm not seeing any entries in the 'Scheduled Task Log Viewer' even though the mod is set as active - how can I be sure this mod is working?

djbaxter 03-09-2007 12:09 PM

Quote:

Originally Posted by mollila (Post 1199422)
Does this mod check that the user has given permission to receive emails from Administrators?

If you had read the thread, you would already know that the answer is "no, not yet".

Quote:

Originally Posted by mollila (Post 1199422)
And does it provide a link to the website where user can change that preference?

You can add such a link yourself by editing preference. At the bottom of the email text box, add something like the following:

Code:

<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>
The problem is that, until the script is fixed to abide by the "admin email" setting, clicking on such a link won't actually work.

Quote:

Originally Posted by criscokid (Post 1199433)
I'm not seeing any entries in the 'Scheduled Task Log Viewer' even though the mod is set as active - how can I be sure this mod is working?

1. see comment above to mollila - the cron job does not create or write to a log file in the present version of this add-on

2. run the cron job manually - it will either give you a list of emails sent or just say "Done."

Smoothie 03-09-2007 12:13 PM

I know for a fact if I were to use this now in it's present state, members who had selected to not receive emails would be pretty PO'ed.

criscokid 03-09-2007 02:09 PM

Quote:

Originally Posted by djbaxter (Post 1199466)
run the cron job manually - it will either give you a list of emails sent or just say "Done."

I get a list that contains each user's email address:
mailing emailaddress@domain.com (failed)

What would be causing the 'failure'? What is it that's failed? caused 'failed' to be thrown up?

djbaxter 03-09-2007 02:21 PM

Quote:

Originally Posted by Smoothie (Post 1199471)
I know for a fact if I were to use this now in it's present state, members who had selected to not receive emails would be pretty PO'ed.

I agree. I was hoping Chris would return to update this but he hasn't apparently been back for a while. I'll see if I can figure it out when I get a moment.

djbaxter 03-09-2007 02:24 PM

Quote:

Originally Posted by criscokid (Post 1199527)
I get a list that contains each user's email address:
mailing emailaddress@domain.com (failed)

What would be causing the 'failure'? What is it that's failed? caused 'failed' to be thrown up?

I'm not certain, to be honest. My first guess would be that there's something wrong with your email setup. Check with your host.

Alternatively, are those emails bouncing back to your admin address (or whatever address you use as the forum email address)?

What happens if you select one of those "failed" addresses and try to send a note directly from your email client?

Smoothie 03-09-2007 03:16 PM

When you get a bounced emails and I'm sure you will, is there a report that is generated to show you these failed addresses?

djbaxter 03-09-2007 03:20 PM

Generally, what you'll get is the original email returned to you, if the email is sent by your server. If not, you'll generally get at least a message from the destination indicating that your message could not be delivered.

itsblack 03-09-2007 06:50 PM

I get this error also:
mailing emailaddress@domain.com (failed)
But in fact, my email setup is correct, because the new member can receive the activation email.
My forum is set logging all of the mails, but for these "error" emails, they left even no mail-logs.
So there must be something wrong with this cron script, I think.

ben_erhan 03-09-2007 08:01 PM

I want to ask a question.

I have tried this lots of time but I could not get the e-mail.

I opened a new usergroup and I have send the e-mail to this group using scheduled task maneger ( Run Now), but I did not get any e-mail.

If it works or not how can we understand?

djbaxter 03-10-2007 10:47 AM

Can someone with a test forum (I know... I really need to set one up) try this:

Find in /includes/cron/remindermail.php:

PHP Code:

    if($vbulletin->options['reminder_posts']){
    
$result $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
    
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET emailDate = '$now' WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
    } else {
    
$result $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
    
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity"); 


Change to:

PHP Code:

    if($vbulletin->options['reminder_posts']){
//    $result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
    
$result $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "user WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16 LIMIT $quantity");
    
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET emailDate = '$now' WHERE lastpost < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
    } else {
//    $result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
    
$result $vbulletin->db->query_read("SELECT * FROM " TABLE_PREFIX "user WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' AND options & 16 LIMIT $quantity");
    
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]' AND emailDate < '$datetime[lastemail]' LIMIT $quantity"); 

I believe this will send emails ONLY to members who have NOT set "Receive admin emails" to OFF.

MPDesignZ 03-11-2007 08:25 AM

Is there a way to single out members who do not want this mail sent to them? I have a client I installed this for who has members who have requested they be taken off this automatic list.

Thanks
MP

C Braithwaite 03-11-2007 12:33 PM

Hello all - sorry i've not been on here or done anything recently - i've been very busy.

Ill crack on with admin emails = no option.

cheers to djbaxter for assuming support of this mod while ive been away :)

djbaxter 03-11-2007 12:48 PM

Good to see you back, Chris! :)

Have a look at the attached - I think it works with "Admin emails" set to off but it needs further testing.

Edit: Never mind - I see you've already done this. :)

Attachment removed.

C Braithwaite 03-11-2007 12:59 PM

Quote:

Originally Posted by djbaxter (Post 1200775)
Good to see you back, Chris! :)

Have a look at the attached - I think it works with "Admin emails" set to off but it needs further testing.

hi - yeh, i read your post with the modification to the code, works fine except it needs to be on the update query also, or it will be updating the wrong members which would result in multiple emails being sent.

I've released an update anyway, and thanks' for the help with that.

projectego 03-11-2007 01:24 PM

Thanks for the 1.07 update! ;)

MPDesignZ 03-11-2007 04:21 PM

Thanks.

MP

Smoothie 03-11-2007 05:35 PM

Ok, so who has this running without any issues?

Fungsten 03-11-2007 06:00 PM

When I received the email it did show who the sender was. :confused:

djbaxter 03-11-2007 06:10 PM

Quote:

Originally Posted by Smoothie (Post 1200979)
Ok, so who has this running without any issues?

I do. What issues are you having?

Quote:

Originally Posted by Fungsten (Post 1200987)
When I received the email it did show who the sender was. :confused:

Why wouldn't it? The sender is the forum and whatever email address is listed as the official forum email address. If it didn't disclose the sender, the email would be blocked by most spam filters.

Smoothie 03-11-2007 06:18 PM

Check your logs for me please. According to the cron, it is suppose to log entries. I just sent out a test email batch, got the email, but the log says 'no matches found".

Fungsten 03-11-2007 06:20 PM

But not from this one.

Quote:

Originally Posted by djbaxter (Post 1200994)
I do. What issues are you having?



Why wouldn't it? The sender is the forum and whatever email address is listed as the official forum email address. If it didn't disclose the sender, the email would be blocked by most spam filters.


Smoothie 03-11-2007 06:22 PM

My test email shows who it is from.

Fungsten 03-11-2007 06:24 PM

I checked the settings in my live forum and it doesn't show up. :confused:

Quote:

Originally Posted by Smoothie (Post 1201001)
My test email shows who it is from.


Smoothie 03-11-2007 06:27 PM

Quote:

Originally Posted by Fungsten (Post 1201004)
I checked the settings in my live forum and it doesn't show up. :confused:

In your email client, it does not show who this is from?

djbaxter 03-11-2007 06:29 PM

Quote:

Originally Posted by Smoothie (Post 1200998)
Check your logs for me please. According to the cron, it is suppose to log entries. I just sent out a test email batch, got the email, but the log says 'no matches found".

Oh yeah, sorry - you're correct - that part isn't working (yet).

Fungsten 03-11-2007 06:30 PM

It's only for my live forum though. From the test forum it is ok.

Quote:

Originally Posted by Smoothie (Post 1201007)
In your email client, it does not show who this is from?


Smoothie 03-11-2007 06:39 PM

Fungsten,

Not sure. I just sent out a test email on my live forum and when it arrived, it showed the "To:" and "From:" fields correctly filled in.

Smoothie 03-11-2007 06:41 PM

Quote:

Originally Posted by djbaxter (Post 1201008)
Oh yeah, sorry - you're correct - that part isn't working (yet).

Would be nice to get these logs working so we can see what's happening with this cron job.

Smoothie 03-11-2007 09:40 PM

Requesting a small addition. The ability to send a test email message, to the email address of the website. Possible?


All times are GMT. The time now is 01:22 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.02218 seconds
  • Memory Usage 1,856KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (19)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