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)

badawidollah 04-01-2010 02:47 PM

thanks

working
it will help my users come back to my forum

TalkVirginia 04-05-2010 05:10 PM

Can anyone tell me what type of mail services or servers you are using? I'm working on a script to automate processing bounced mail. So far I've got information on IMAP and a little on the POP protocols... Any others would be nice. Anyone interested in helping with beta testing please shoot me a PM. I'd like to have a few that would be using each protocol.

Thanks! :)

lazerguy_82 04-06-2010 03:49 PM

Occasionally I get errors. Is it maybe caused by user names that include the '@' sign?

Database error in vBulletin 4.0.2:

Invalid SQL:
INSERT INTO inactiveuserlog (username,userid,dateline,validemail,email)
VALUES ('Bill 'C'','8323','1270189848','1','someemail@sky.com');

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'C'','8323','1270189848','1','someemail@sky.com')' at line 2
Error Number : 1064
Request Date : Friday, April 2nd 2010 @ 02:30:48 AM
Error Date : Friday, April 2nd 2010 @ 02:30:48 AM
Script : http://www.
Referrer : http://www.
Username : Unregistered
Classname : vB_Database

TalkVirginia 04-06-2010 04:37 PM

Quote:

Originally Posted by lazerguy_82 (Post 2016860)
Occasionally I get errors. Is it maybe caused by user names that include the '@' sign?

Database error in vBulletin 4.0.2:

Invalid SQL:
INSERT INTO inactiveuserlog (username,userid,dateline,validemail,email)
VALUES ('Bill 'C'','8323','1270189848','1','someemail@sky.com');

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'C'','8323','1270189848','1','someemail@sky.com')' at line 2
Error Number : 1064
Request Date : Friday, April 2nd 2010 @ 02:30:48 AM
Error Date : Friday, April 2nd 2010 @ 02:30:48 AM
Script : http://www.
Referrer : http://www.
Username : Unregistered
Classname : vB_Database

Looks like the extra quotes in the username are causing it. There are 2 places to change that should fix it. To fix this manually, do the following:

1. Open the reminderemail.php file in the {forumroot}/includes/cron folder
2. Scroll down and insert the following code after 361, just before the line where $sql = "INSERT INTO " is getting set:

$username = addslashes($username);

3. Save and close the file.

4. Open the inactivitylog.php file in your admincp folder
5. Scroll down to line 133 and replace it with the following line of code.

$username = stripslashes($log['username']);


That should do it. I'll upload a new zip with this fix this weekend.

lazerguy_82 04-06-2010 10:30 PM

Ok thanks! Will that also fix the error if an apostrophe is in the username like this:
Norman O'Neill

That username generated an error as well.

lazerguy_82 04-06-2010 10:32 PM

Btw if I remove your plugin and add the new version, will it resend all the inactive email reminders?

TalkVirginia 04-06-2010 10:43 PM

Quote:

Originally Posted by lazerguy_82 (Post 2017111)
Ok thanks! Will that also fix the error if an apostrophe is in the username like this:
Norman O'Neill

That username generated an error as well.

Yes, that will escape (add slashes) to special characters such as the apostrophe, single and double quotes, etc that may be in the username.
Stripslash will remove them.

TalkVirginia 04-06-2010 11:01 PM

Quote:

Originally Posted by lazerguy_82 (Post 2017113)
Btw if I remove your plugin and add the new version, will it resend all the inactive email reminders?

No, all you will need to do is install it as usual, but make sure you use the overwrite so that any new features will be applied. I am doing some clean up in the code and back end such as renaming some of the table fields but the data won't be touched or deleted with exception to the email phrase templates. If you or anyone has customized the email templates that get sent out, I strongly recommend that you keep a copy of them because those will be overwritten. That's just the way the install works.

In the next release, I'm working on
1. Both automated (cron job) and manual processing (clicking on an embedded link) of bounced reminders.
2. Auto PM the user that bounces emails to request that they update their email address.
3. The ability to have the bouncing user moved to a usergroup of the admin's choice
4. The ability to send a reminder to users if they have not posted in x number of days.

I think thats about it unless anyone has any features they would like added.

EDIT: 4/7/2010 - I reread your post and I want to clarify that if you completely uninstall the mod.. yes, you will loose all previous data. If you are upgrading to a new version, just install over top of the current version using vbulletin's overwrite feature. Please let me know if you have additional questions. :)

lazerguy_82 04-07-2010 12:45 PM

Thanks for the detailed explanation! I have one more question. How do I edit the email templates myself? Every time I click them they open in a new window, but I don't see an edit link.

lazerguy_82 04-07-2010 12:46 PM

As for new version, please add the 'reset pwd' link to one of the emails. I believe the text version doesn't have it.


All times are GMT. The time now is 10:23 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.01503 seconds
  • Memory Usage 1,747KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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