Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Cronjob] Email Notification When Users Hit X Amount of Posts Details »»
[Cronjob] Email Notification When Users Hit X Amount of Posts
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: End-User Options - Version: 3.0.7 Rating:
Released: 03-22-2005 Last Update: Never Installs: 10
 
No support by the author.

As its title says, this code will automatically email a user once he/she hits a certain amount of posts. It may be useful for some boards which set Registered group have limited privileges and require XX posts to view the board globally...

It's been posted here, i make a duplicate here in case of other users need it.

It's fairly easy to install, just create a cronjob and let it do the job itself. You can set the cronjob to run hourly or every three hours or whenever you like.
DON'T FORGET TO CHANGE text message in Email Body Text + Email Subject Text to fit you site settings.

Installation Time: 2-3 mins (Easy)
New File: 1
Query: 1

Code:
ALTER TABLE user ADD promoemail TINYINT(1) DEFAULT '0' NOT NULL;
To change amount of posts, look for this line (in promoemail.php):
Code:
$promo_x_posts = 10;

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-23-2005, 06:41 PM
nexialys
Guest
 
Posts: n/a
Default

i'm telling that it's possible to magnify the effect of this cronjob by adding a new feature...

i hope tnguy3n understand what i'm talking about and will be able to deal with it!
Reply With Quote
  #13  
Old 03-23-2005, 06:44 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh ok, thanks for making it clear... i was almost confused there for a moment...
Reply With Quote
  #14  
Old 03-23-2005, 08:22 PM
no1SomeGuy no1SomeGuy is offline
 
Join Date: Nov 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks works great !
Reply With Quote
  #15  
Old 04-22-2005, 03:02 PM
femsawyer femsawyer is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this email the user or can we configure it to email a specific email address, like admin?
Reply With Quote
  #16  
Old 04-22-2005, 03:07 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if the cron job runs when the poster has 1001 posts... will the member receive an email?
Reply With Quote
  #17  
Old 04-22-2005, 11:27 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
if the cron job runs when the poster has 1001 posts... will the member receive an email?
@ Polo: It will.
Basically, this cronjob checks and emails users who reach >= 1000 posts (or whatever number your assigned).
Reply With Quote
  #18  
Old 04-25-2005, 08:35 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tnguy3n
@ Polo: It will.
Basically, this cronjob checks and emails users who reach >= 1000 posts (or whatever number your assigned).
but it will not email them more than one time right?
Reply With Quote
  #19  
Old 04-28-2005, 05:29 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Polo
but it will not email them more than one time right?
it just emails the user once.
Reply With Quote
  #20  
Old 04-28-2005, 06:35 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent... will definetly set up three or more to show appreciation to top posters
Reply With Quote
  #21  
Old 07-09-2006, 05:26 PM
vb_guru vb_guru is offline
 
Join Date: Aug 2004
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great Can this be used for vBulletin 3.54? I want to use something like this to send an e-mail to everyone that belongs to a certain user group that I manually assign them to.

Basically, I want to send them an email welcoming them as a special member. It is very important that they only receive this welcome e-mail once.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06979 seconds
  • Memory Usage 2,301KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete