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 06-03-2011 03:05 PM

Quote:

Originally Posted by cbiweb (Post 2203042)
Could someone please answer my question in post #396?

Hi cbi,

My apologies for missing your post. If I may ask, what version of vb are you using?

Both 3.8.x and 4.x.x versions are very similar in code however the difference is in how templates are rendered. I've also fixed some bugs in the mod so I would recommend updating to the current release if you haven't already.

Things to check on test accounts:
All inactivity now is based on last activity of the member.
Make sure they are able to receive emails from the administrator.

What I did when creating a test account is set the join date to like 1/01/2000
and last activity to 1/01/2005. Again, make sure the test account is set to accept emails from the administrators, then manually run the cron task. I'm pretty sure I have the criteria locked down and working at this point if you're using the current recent. Check the recent posts I've made since there are a few patches though and an additional plugin to reset inactive members when they return.

Try that and let me know if you have any more issues or questions.

Stefan118 06-03-2011 10:04 PM

Thank you for the update!

I hope it is working, the upload was very fast, and i couldn't see what happend :D

I will test it tomorrow.

fwulfers 06-04-2011 03:33 PM

Quote:

Originally Posted by Gene Steinberg (Post 2103107)
For example, the Unsubscribe feature appears to be non-functional.

For example, I got this letter today from one of our forum members:

That member isn't the only one. When will there be a fix?

I am having the same issue and get this message when I click on the Unsubscribe link in the email:
Quote:

Our records indicate that your subscription to our mailing list has already been cancelled. Please contact an Administrator if you believe you've reached this message in error.
It seems the User ID is missing in the Unsubscribe link in the email. Could that be the problem?

http://mysite.com/optout-reminders.php?u=&e=email@mysite.com

When I view the reports in the inactivity log, ID for all users is showing up as 0.

This is an awesome mod but the Unsubscribe feature needs to work.

TalkVirginia 06-04-2011 04:50 PM

Quote:

Originally Posted by fwulfers (Post 2203447)
I am having the same issue and get this message when I click on the Unsubscribe link in the email:


It seems the User ID is missing in the Unsubscribe link in the email. Could that be the problem?

http://mysite.com/optout-reminders.p...ail@mysite.com

When I view the reports in the inactivity log, ID for all users is showing up as 0.

This is an awesome mod but the Unsubscribe feature needs to work.

hmm, I thought I fixed this. I'll check the current zip otherwise I'll post a patch and update the zip.

TalkVirginia 06-04-2011 06:48 PM

The zip file is now updated with the correct files and new plugin to reset inactive members.

TalkVirginia 06-05-2011 06:35 AM

Please let me know if there are any other issues remaining that need to be fixed. Thanks

fwulfers 06-05-2011 02:15 PM

Thanks for the quick update Jim.

The zip file has some duplicate files and folder. It looks like the older .xml product file is still in there in addition to the new file modified yesterday. May be confusing for some.

I tried to update the Product with Add/Import product, tested again but that didn't fix the problem. Do I need to install the existing product first and then install the new one? The instructions for this mod mentions this for older versions only.

Alan_SP 06-06-2011 12:20 AM

I tried to use $lastactivity variable and it doesn't show in email. :( Not to big of a problem, I'll compose mail without it, but probably other variables also don't work.

Also, some emails do get bounced back, but it's not logged. Don't know how to set this up, I'm using qmail on my server (with Plesk CP).

TalkVirginia 06-06-2011 01:27 AM

Quote:

Originally Posted by fwulfers (Post 2203839)
Thanks for the quick update Jim.

The zip file has some duplicate files and folder. It looks like the older .xml product file is still in there in addition to the new file modified yesterday. May be confusing for some.

I tried to update the Product with Add/Import product, tested again but that didn't fix the problem. Do I need to install the existing product first and then install the new one? The instructions for this mod mentions this for older versions only.

OMG!!! :mad: Sometimes I really hate Windows 7. I've updated the zip again and will upload.
Import the product XML in the zip, and upload the files in the zip. Make sure you check the "overwrite" option on the import. Also if you have made any changes to the email template phrases, please back them up first. They will be overwritten. If this doesn't seem to work, uninstall it and reimport the product xml.

Quote:

Originally Posted by Alan_SP (Post 2204078)
I tried to use $lastactivity variable and it doesn't show in email. :( Not to big of a problem, I'll compose mail without it, but probably other variables also don't work.

Also, some emails do get bounced back, but it's not logged. Don't know how to set this up, I'm using qmail on my server (with Plesk CP).

The others should work. Lastactivity wasn't being exported, so that is why. I'll add it to the last. If you want to make the edit yourself, you can do the following:

1. open the functions_remindermail.php in your forum's includes folder.
2. scroll down to line 163 and press enter to make a new line.
3. add the following line:

PHP Code:


$lastactivity 
$row['lastactivity']; 

4. Save the file and upload to your forums includes folder.

Add the variable to your email template.

As for the bounced back emails, ignore that for now. I haven't put that functionality in yet. That will be in a future release.

Alan_SP 06-06-2011 02:53 AM

Thanks, but I found some inconsistencies with actual variables and those in manual.

Here, take a look:

In manual:

Quote:

Exporting the following additional values which can be used in reminder email templates if desired:
$lastvisit - Formatted Date/Time Value - members last visit to the site.
$lastactivity - Formatted Date/Time Value - members last activity on the site.
$lastpost - Formatted Date/Time Value - members last post date on the site.
$lastreminder - Formatted Date/Time Value - Date member was sent last reminder email.
$days_since_lastpost - Number of days since member last posted.
$days_since_lastreminder - number of days since last reminder was sent.
And here's the code I see in php file:

PHP Code:

$lastvisit $row['lastvisit'];
        
$lastactivity $row['lastactivity'];
        
$lastpost $row['lastpost'];  
        
$dayssincelastactivity $row['days_since_lastactivity'];
        
$dayssincelastvisit $row['days_since_lastvisit'];
        
$dayssincelastpost $row['days_since_lastpost']; 

You don't mention $dayssincelastactivity at all, and the spelling in manual is wrong (you use _ between the words in manual). Also $lastreminder is missing in code, or is created somewhere else (didn't checked other files for it, just it's not in this php file).


All times are GMT. The time now is 01:48 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.02013 seconds
  • Memory Usage 1,761KB
  • 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
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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