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)

sdphotoforum 02-10-2007 10:31 PM

Quote:

Originally Posted by rezapci (Post 1179485)
god, someone tell how to fix this, it keep sending this to all memmbers as:

We've noticed that you've not been active on mished for quite some time now, and we miss you!
Could we not tempt you back?
If you don't remember your password, you can request it here: http://www.mished.co.uk/forum/login.php?do=lostpw
We hope to see you soon

Kindest Regards
YOURSITE


What a unprofessional Hack Installations Directions

what the world you don't explain right to all user step by step what the heck we should do man.!

crab

Go to the Admin CP, Vbulletin Options, Inactive User Reminder E-Mails. You can edit it in there.

djbaxter 02-10-2007 10:36 PM

Quote:

Originally Posted by chadi
This makes no sense. It even emails banned users. Please fix that. Thank you.

Would this do it?

Find:

Code:

$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:

Code:

$result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND . TABLE_PREFIX . "usergroup != 20 AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]'  AND . TABLE_PREFIX . "usergroup != 20 AND emailDate < '$datetime[lastemail]' LIMIT $quantity");


rezapci 02-10-2007 10:36 PM

Quote:

Originally Posted by djbaxter (Post 1179476)
Yeah, that would not be good.

"We miss you. Please come back."

"Oops! You're banned. Just joking! :D"

Quote:

Originally Posted by sdphotoforum (Post 1179488)
Go to the Admin CP, Vbulletin Options, Inactive User Reminder E-Mails. You can edit it in there.

Thank you , he supossed to explain it in first place which is he didn't!:down: :down: :down:

djbaxter 02-10-2007 10:40 PM

Quote:

Originally Posted by rezapci
What a unprofessional Hack Installations Directions

what the world you don't explain right to all user step by step what the heck we should do man.!

That's why I said earlier "not ready for prime time".

I think this addon has possibilities but it is just not ready for a live forum yet.

C Braithwaite 02-11-2007 04:26 AM

Quote:

Originally Posted by chadi (Post 1179413)
I just installed, manually ran scheduled task "emailreminders" and for some reason it only sent to about 20 people. I have 7,300 members and many have not logged in for a long time. How can this be?

it send emails out in small batches which can be amended in the options

Quote:

Originally Posted by rezapci (Post 1179423)
thanks for hack, but dude, how this ting works? I just installed it, what should I do next?

I cant find any Option on vbOption!

it's there.

Quote:

Originally Posted by rezapci (Post 1179485)
god, someone tell how to fix this, it keep sending this to all memmbers as:

We've noticed that you've not been active on mished for quite some time now, and we miss you!
Could we not tempt you back?
If you don't remember your password, you can request it here: http://www.mished.co.uk/forum/login.php?do=lostpw
We hope to see you soon

Kindest Regards
YOURSITE


What a unprofessional Hack Installations Directions

what the world you don't explain right to all user step by step what the heck we should do man.!

crab

I've given what i thought are ample instructions. upload, import, edit options. tell ya what - write you're own then eh?

Quote:

Originally Posted by djbaxter (Post 1179492)
Would this do it?

Find:

Code:

$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:

Code:

$result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE lastactivity < '$datetime[lastpost]' AND . TABLE_PREFIX . "usergroup != 20 AND emailDate < '$datetime[lastemail]' LIMIT $quantity");
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET emailDate = '$now' WHERE lastactivity < '$datetime[lastpost]'  AND . TABLE_PREFIX . "usergroup != 20 AND emailDate < '$datetime[lastemail]' LIMIT $quantity");


that is something i never thought of - i will update that in the php later today. cheers

C Braithwaite 02-11-2007 04:29 AM

Quote:

Originally Posted by rezapci (Post 1179493)
Thank you , he supossed to explain it in first place which is he didn't!:down: :down: :down:

if you read the first post:

Quote:


Ive updated the mod so all the settings are editable in the AdminCP
it's a simple plugin, not rocket science!

i designed it for my own forum, and it does the job i wanted it to do and i thought it may be useful for other people (which i might add, has beenk) so if anyone doesn't like it then just lump it.

WEBDosser 02-11-2007 05:28 AM

there are still some settings to change in product-remindermail.xml

Lines 61,64 & 68 need attention before uploading..

Masiello 02-11-2007 10:36 AM

Good idea, *clicked install*

Masiello 02-11-2007 10:58 AM

Hey, anobody can confirm please if this mod works too on a vB version 3.5.3?

djbaxter 02-11-2007 11:56 AM

Quote:

Originally Posted by C Braithwaite (Post 1179665)
that is something i never thought of - i will update that in the php later today. cheers

At the risk of telling you something you already know, I don't believe there is a "Banned" group by default in vBulletin - mine is ID=20 but it may be different for others so you'll need to make that a variable.


All times are GMT. The time now is 09:39 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.01937 seconds
  • Memory Usage 1,756KB
  • 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
  • (12)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