Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Birthday Thread and PM generator Details »»
Birthday Thread and PM generator
Version: 1.1.2, by AusPhotography AusPhotography is offline
Developer Last Online: Jan 2022 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.0.0 Rating:
Released: 05-15-2011 Last Update: 04-15-2013 Installs: 115
DB Changes Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

<a href="http://www.AusPhotography.net.au" target="_blank">www.AusPhotography.net.au</a> Birthday Thread and PM generator

This product provides a simple way to create both an automatic Birthday greeting thread and forum member birthday PM.

Features:

1. Configurable greeting text with name, age (optional), and birthday
2. Excludable usergroups (eg. banned etc)
3. Creates a thread in selectable forum and sends a PM from selected user (admin or other)
4. Runs as a vBulletin scheduled task (vB cron job)
5. Honours forum members birthday profile settings
6. Only sends birthdays for members with recent forum activity (configurable)
7. Adjusts for forum members time-zone so the greeting will be on their birthday

Uses:

1. Creates a Database table to track birthday processed
2. One additional file vBulletin scheduled task (vB cron job)
3. Product installation file

Installation:

1. Copy ap_birthday.php to the forum ./includes/cron directory
2. Install the product file
3. Configure it via AdminCP/Settings/Options
4. Disable the vBulletin birthday emailer in AdminCP / Scheduled tasks
Done!

Enjoy! It will probably work on vB3.6+ as well.

Update 2013-04-12: Working with 4.2.0
Update 1.1.2 if zero active post use 'lastactivity' instead (bugfix)

Kym

Download Now

File Type: zip APbirthdays1.1.2.zip (85.7 KB, 382 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
8 благодарности(ей) от:
BCP Hung, Bounce, CK, eTiKeT?, Markos, megabink, tbworld, Trangalleiro

Comments
  #82  
Old 03-23-2013, 01:58 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, running vB4.2, and so far it posts and sends pm like it is supposed to.

I set the post number to 0, before I read the whole thread of course.
Set the number of days active to 60
And I set the excluded usergroups to exclude banned of course, and the awaiting email confirmation too.

Problem is, the very first birthday celebrated was for a uncomfirmed user account, one that specifically excluded.

Did I not configure it properly?
Reply With Quote
  #83  
Old 04-08-2013, 08:20 PM
elitecarders elitecarders is offline
 
Join Date: Nov 2012
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got this error kindly check it

Code:
Database error in vBulletin 4.2.0:

Invalid SQL:
SELECT userid, username, usergroupid, birthday, showbirthday, posts, timezoneoffset, 
	DATE_FORMAT(DATE_ADD(UTC_TIMESTAMP(), INTERVAL ((timezoneoffset - 4)*60) MINUTE), '%D of %M') AS BDisplay,
    (DATE_FORMAT(DATE_SUB(UTC_TIMESTAMP(), INTERVAL (timezoneoffset - 4) HOUR), '%Y') - SUBSTRING(birthday,7,4)) AS UserAge
	FROM 1l_user
	WHERE birthday LIKE DATE_FORMAT(DATE_ADD(UTC_TIMESTAMP(), INTERVAL ((timezoneoffset - 4)*60) MINUTE), '%m-%d%%')
	AND showbirthday > '1'
	AND usergroupid NOT IN ()
	AND userid NOT IN (SELECT 1l_ap_birthday.userid FROM 1l_ap_birthday);

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 ')
	AND userid NOT IN (SELECT 1l_ap_birthday.userid FROM 1l_ap_birthday)' at line 7
Error Number  : 1064
Request Date  : Monday, April 8th 2013 @ 09:18:07 PM
Error Date    : Monday, April 8th 2013 @ 09:18:08 PM
Script        : http://www.XXXXXX.com/XXXXX/cronadmin.php?do=runcron&cronid=70
Referrer      : http://www.XXXXXX.com/XXX/cronadmin.php?do=modify
IP Address    : 103.22.201.159
Username      : _Mike74
Classname     : vB_Database
MySQL Version : 5.5.21-log
Reply With Quote
  #84  
Old 04-08-2013, 09:58 PM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elitecarders View Post
i got this error kindly check it
Thanks for the report. I'll fix it in the next day or so.

As a work around set at least one user group in the Exclude User Groups setting e.g. 8 which is Banned Users

Kym
Reply With Quote
  #85  
Old 04-08-2013, 09:58 PM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smirkley View Post
OK, running vB4.2, and so far it posts and sends pm like it is supposed to.

I set the post number to 0, before I read the whole thread of course.
Set the number of days active to 60
And I set the excluded usergroups to exclude banned of course, and the awaiting email confirmation too.

Problem is, the very first birthday celebrated was for a uncomfirmed user account, one that specifically excluded.

Did I not configure it properly?
I'll check that as well.
Reply With Quote
Благодарность от:
smirkley
  #86  
Old 04-09-2013, 02:31 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.

Quick question ricktas,..

If a member does not opt to show their birthyear?... it seems the mod doesnt report their birthday.

Still testing it out mind you, but that was something I noticed.
Reply With Quote
  #87  
Old 04-09-2013, 08:19 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smirkley View Post
If a member does not opt to show their birthyear?... it seems the mod doesn't report their birthday.
It should do its thing if either of these privacy settings are set:
  • Display Only Day and Month of Birth
  • Display Age and Full Date of Birth
otherwise nada, that maybe the issue?
Reply With Quote
  #88  
Old 04-09-2013, 01:28 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply.

I am experimenting with a test account, just to see it work with the first setting you listed above.

Seems like it didnt work last time, but I will let you know here in a day or two of the results.
Reply With Quote
  #89  
Old 04-10-2013, 03:53 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works in my test system without the year set - with either profile option set,.
Reply With Quote
  #90  
Old 04-11-2013, 03:55 AM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Verified,..thx.
Reply With Quote
  #91  
Old 04-11-2013, 12:19 PM
smirkley smirkley is offline
 
Join Date: Apr 2008
Posts: 627
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just noticed this morning that since after I set for "number of posts=0", that this will now ignore "days active=60" and give birthdays to everyone even inactive.

edit to add, I think that the description in the acp settings for this confused me. I was thinking that the mod will only post for members active, with x number of posts as a minimum.

I think now it says that active, means number of posts exclusively, and if you set it to 0, all members now qualify even if they havent logged on in years.
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 12:14 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.05233 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
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
  • (1)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (9)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete