Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatic Greeting Email/PM/Threads for Member Birthdays Details »»
Automatic Greeting Email/PM/Threads for Member Birthdays
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-09-2002 Last Update: Never Installs: 205
 
No support by the author.

This hack will automatically greet the birthdays of your board members by sending them:
  • Private Messages
  • Emails
  • Both
  • or by creating a birthday celebration thread in a specific forum.
Features:
* Does NOT require cron jobs so everybody can use it regardless of their server settings/rights.
* You can send PMs, emails (or both) or you can choose to send them PM if they can receive PM or else send email.
* The Hack can create special greeting threads for birthdays. (optional)
* Some usergroups (like banned users) can be excluded from automatic greetings.
* Admin can choose to receive a daily report via Email or PM about the greeted birthdays. (optional)
* Compatible with ALL vbulletin versions I know.
* Carefully coded to not to increase your SQL load and its quite performance-friendly. (More info about performance issues)
* New Added Feature: To greet only members who have more than X messages or who have visited your board in the last X days, see here
* New Added Feature: You can change his style in the day user has his birthday. Check here)
* New Added Feature: You can play Happy Birthday Song to your members in their birthdays. Check here

The hack is beta tested by many users for a long time before the release and proven to be quite stable. (BTW. thx to all beta testers especially to Dark_Wizard, Boofo, DslTeam, C-Pr0mpt for returning feedback).

WARNING: I strongly suggest:
a) Be careful while installing this hack (especially in step 2). If you install it wrongly, your members may get a lot of irrelevant greetings.
b) To make sure you installed it correctly, turn on DEBUG mode AND administrator notifications in the options of the hack while you are installing it. So the hack will NOT send any notifications to members but only send daily reports to admin. Keep an eye on these reports for a few days and if you made sure you installed it correctly and it works ok, you can safely turn off debug mode.


Enjoy the hack and if you install the hack please click INSTALL, thank you..

Logician \\=^))

Show Your Support

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

Comments
  #62  
Old 06-14-2002, 05:31 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got 5 birthdays today... the thread posted in the correct forum, but it shows only 2 birthdays :ermm:
Reply With Quote
  #63  
Old 06-14-2002, 05:48 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Lionel
I've got 5 birthdays today... the thread posted in the correct forum, but it shows only 2 birthdays :ermm:
Make sure other 3's usergroup is not excluded in options part.
Reply With Quote
  #64  
Old 06-14-2002, 06:05 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, number 3 is the users awaiting confirmation and that was the case
Reply With Quote
  #65  
Old 06-14-2002, 06:17 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad you figured that out. You either disable it or if you want not to greet awaiting confirmation members leave it as it is.
Reply With Quote
  #66  
Old 06-14-2002, 06:26 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My boards are 100% community based and I am sure the members appreciate to be remembered.

I must tell you that I was so impressed by your hack that I went hunting for your other hacks and installed a couple more. Both the webtemplates and the way that you provide for "cut and paste" of any section of a thread into news were impressive.
It's also good to know who rated.

Nice work, keep it up!
Reply With Quote
  #67  
Old 06-16-2002, 08:33 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Addition to the Hack:

This small modifications will play happy birthday song to your members when they visit your board in their birthdays.


Features:
  • This addition is independent from the hack itself. So you can use one without another. That is, you can apply this modification even if you didnt applied the hack itself
  • It will play any .wav or .mid sound file to your users in their birthdays when they visited your board's main page.

Installation:

1-Edit global.php

find:

PHP Code:
// figure out the chosen style settings
unset($codestyleid);
unset(
$style); // prevent some weird issues 
After that add:

PHP Code:
// Logician Play Happy Birthday Song in users' birthday hack
$today_birthday=substr($bbuserinfo[birthday],-5);
$today_of_user vbdate("m-d",time());
if (
$today_of_user==$today_birthday) {$birthdaysong='<EMBED SRC="mysound.wav" hidden="true" AUTOSTART="true" loop=1  PLAYCOUNT=1>';}
// Logician Play Happy Birthday Song in users' birthday hack 
2- Upload the midi or wav you want to play under your board directory and replace mysound.wav with its name in the code.

3- Admin CP/Modify Template, edit template: forumhome

Find:
PHP Code:
$headinclude 
Replace it AS:

PHP Code:
$headinclude
$birthdaysong 
Notes:
  • The hack will play the song in the board's home page only. If you wanted to play in other pages too (user CP for example) add the $birthdaysong variable to any template you want
  • If you want the song be played in any page of your board, remove the $birthdaysong variable form forumhome and put it into a more global template like header. (But it would be boring to browse the board with a sound file chasing you in every page you visited so be warned!)
  • By default song will be played once only when the page is loaded. If you want to play more than once replace 1s in "loop=1 PLAYCOUNT=1" part.

Enjoy!
Logician

Ps. If you apply the add-on that changes user's style in their birthdays, please check its post and reapply the code. I catched a bug in the code and corrected it. Considering the fact that nobody hollered, it seems nobody uses it though
Reply With Quote
  #68  
Old 06-21-2002, 03:12 AM
amity's Avatar
amity amity is offline
 
Join Date: Feb 2002
Location: PA usa
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now i can't figure out why it isn't posting the thread on the forum.

if i put 1 for the forum number, does that mean the first forum i created? or the first forum listed on the main page? and does the numbering include the category as a forum?

thanks and blessings,
amity
Reply With Quote
  #69  
Old 06-21-2002, 05:09 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by amity
now i can't figure out why it isn't posting the thread on the forum.

if i put 1 for the forum number, does that mean the first forum i created? or the first forum listed on the main page? and does the numbering include the category as a forum?
if you put 1 for the forum number this means that you want it to post in the forum with forum id 1. That is:

http://www.yoursite.com/forum/forumd...p?s=&forumid=1

Do mail/pm/admin notifications run ok?
Reply With Quote
  #70  
Old 06-23-2002, 07:09 PM
David Bott David Bott is offline
 
Join Date: Dec 2001
Posts: 215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the last 3 days this hack has sent out more than one birthday greeting and I receive more than one PM of the ones that went out.

What I mean is..When I go into my PM the next day...I find 2 or three of the notcies of what went out. They all have the same time stamp and the same data in the message of who it went to.

When I contacted one of the birthday people on the list...they told me they received the message more than once.

NOTE...I am using it for E-MAIL only sending with it checking for their OK to send a message.

Please advise.
Reply With Quote
  #71  
Old 06-23-2002, 07:32 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by David Bott
For the last 3 days this hack has sent out more than one birthday greeting and I receive more than one PM of the ones that went out.

When I contacted one of the birthday people on the list...they told me they received the message more than once.
David increase the $estimated_load value.

The very high trafic of your board and very low estimated_load number (compared to your traffic) causes it. This is how it happens:

One visitor triggers the hack at midnight, the hack begins to compile birthday greetings but before it finishes and updates the database date, another visitor triggers it again (the first visitor's trigger didnt finished yet, so database date is still yesterday). Hack will be done in less than a second and your traffic is so high that, it gets triggered more than once in that very second and produce more than 1 greetings.

With so high traffic you really dont need so low estimated_load value. Increase it and you'll be fine.
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 02:05 PM.


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.05097 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)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_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