vb.org Archive

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

jrap 04-20-2009 02:05 PM

Installed, thanks!

Sadikb 04-21-2009 06:15 PM

Hello Everyone. I installed this MOD and it's great.

A few pointers

1. Works absolutely perfectly with VB 3.8.1 PL1
2. For those who are complaining about the author's links, there is an option in AdminCP where you can turn links off..
3. You can make this MOD to send emails through the webmaster's email instead of the site's mail address. This is what you need to do.

Open remindermail.php in any editor.

Find the following CODE
Code:

if(is_valid_email($toemail)){                               
        $sentlist .= "$username ";
        vbmail($toemail, $subject, $message, $notsubscription = false, $from = $vbulletin->options['bbtitle'], $uheaders = '', $username = '');

Replace it by

Code:

if(is_valid_email($toemail)){                               
        $sentlist .= "$username ";
        vbmail($toemail, $subject, $message, $notsubscription = false, $from = $vbulletin->options['webmasteremail'], $uheaders = '', $username = '');

So basically instead of $from = $vbulletin->options['bbtitle'], you have to use $from = $vbulletin->options['webmasteremail']. This will sent email from the Webmaster's email address instead of the site/host email.

4. Some people were bothered by the daily mails it sends to the webmaster when it has mailed the inactive users. To prevent this MOD from emailing the webmaster every time, again open remindermail.php.

There at the end you will find an if-else condition:
Code:

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 = '');
        }

In the code above you have to comment out the vbmail function. So replace above code by
Code:

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 = '');*/
        }

You can still see whom the MOD has emailed by going to AdminCP-->Scheduled Task-->Scheduled Task Log and selecting "Inactive User reminder Emails" from the drop down, since this MOD still is logging.

Hope this helps out everyone.

Cheers :)

Saviour 04-23-2009 05:49 PM

Does anyone have this working on vB 3.8.2?

Saviour 04-23-2009 06:14 PM

Update...

Installed and seems to be working fine on vB 3.8.2.

Sworm 05-01-2009 07:57 PM

There's some knowed incompatibility with Cron based Email sending?
https://vborg.vbsupport.ru/showthread.php?t=201318

Sworm 05-02-2009 03:59 PM

Nobody support this hack?

robertjandreu 05-04-2009 07:18 AM

I check from time to tiime but I don't offer support anymore since there are already known new versions of this mod.

I was making a new stable version but got sidetracked by my VB --> WP bridge. If someone offers to help me out with this mod I'm open for help.

Robert-Jan de Dreu

Sascha108 05-04-2009 01:32 PM

What new versions are out there? Where do I find them?

After Install I get the following problem via mail:

-------------------

Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT * FROM user WHERE lastactivity < '0' AND reminder_reminders = 0 AND options & 16 AND usergroupid IN('');

MySQL Error : Unknown column 'reminder_reminders' in 'where clause'
Error Number : 1054
Request Date : Monday, May 4th 2009 @ 04:22:52 PM
Error Date : Monday, May 4th 2009 @ 04:22:52 PM
Script : http://xyz.org/admincp/remindermail.php
Referrer : http://xyz.org/admincp/index.php?do=nav
IP Address : 80.136.94.51
Username : xxxxx
Classname : vB_Database
MySQL Version : 5.0.67-community

-----------------------

Any idea on how to fix that?

Rakehel 05-12-2009 11:56 AM

I'd like to know about "known new versions" too. This one doesn't seem to work consistently anymore. It worked great for months but I'm thinking the vB versions overtook it, or have all the inactive users tagged us as spam?

jejuarez8 05-13-2009 07:34 AM

anyone know why I am getting this message when an email is trying to be sent to a user?

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

It happens every time, even my own emails.


All times are GMT. The time now is 12:53 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.01163 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_code_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
  • (10)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