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
  #122  
Old 10-27-2013, 10:20 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 Jamey View Post
same deal still
Very strange, I cannot reproduce the issue and I don't think anyone else is having the problem.
The code is not doing anything special in regard to the forum being posted to.

Just a thought, what is the user profile of the account being used to post the greetings?
Specifically what is the 'Automatic Thread Subscription Mode' setting for that account?
Reply With Quote
  #123  
Old 11-08-2013, 11:52 AM
zwylove zwylove is offline
 
Join Date: Nov 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have get it version 1.1.2 ans install it accord the readme on my vbulletin 4.2.0 website .and it's OK。but much question for everyone help.

1.if member's birthday is just right on sunnday or saturday , i want to pre-days to post the birthday thread on forum ? how can get it ?

2. I have set "Email Addresses to Notify When there is a New Post" in the Forum , when the "Birthday Thread and PM generator" runing OK and have new a post in the Special forum,but I have not receive the Notify email ? why ?

3.if It hasworked witht "Birthday Thread and PM generator" today, when i want to run the cron job"AP Birthday Greetings" again in the same day at scheduled Task ,but the birthday Thread that have happened of somebody will not happen again ? is it OK? why? i just want to post Birthday Thread again for somebody ?

4. because maybe his/her birthday is wrong ,i changed it for true , but the "AP Birthday Greetings" will not post thread for he/she again if happened before ? how can i get the issue?

Many Thanks!
Reply With Quote
  #124  
Old 11-10-2013, 06:29 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. No it does not do anything special for Sat.Sun

2. Not sure why, I'll investigate

3. You can run multiple times per day, it remembers who has had a birthday greeting

4. Because the system has remembered the original greeting, it 'remembers' for 3 day, you need to delete the remember from the database to clear it (manually via phpMyAdmin)
Reply With Quote
Благодарность от:
zwylove
  #125  
Old 11-11-2013, 06:16 AM
zwylove zwylove is offline
 
Join Date: Nov 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AusPhotography View Post
1. No it does not do anything special for Sat.Sun

2. Not sure why, I'll investigate

3. You can run multiple times per day, it remembers who has had a birthday greeting

4. Because the system has remembered the original greeting, it 'remembers' for 3 day, you need to delete the remember from the database to clear it (manually via phpMyAdmin)
More Question:
1.About the number 2 question please help to investigate ASAP if you can ,because we realy need the function .Manyt thanks !
2. About the 4 Question answer , how to manually delete from the database ? which table and field ? Could you tell me the details ?
3.How many and which Varname of all we can use ? i just know the {username} {bdate} {xx}. Moreover,Can i format the {bdate} value as chinese or other that i want in the "Happy Birthday Post" Content and how to format ?
Reply With Quote
  #126  
Old 11-28-2013, 01:20 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 zwylove View Post
More Question:
1.About the number 2 question please help to investigate ASAP if you can ,because we realy need the function .Many thanks !
2. About the 4 Question answer , how to manually delete from the database ? which table and field ? Could you tell me the details ?
3.How many and which Varname of all we can use ? i just know the {username} {bdate} {xx}. Moreover,Can i format the {bdate} value as Chinese or other that i want in the "Happy Birthday Post" Content and how to format ?
1. I won't make that change as it does not suit my needs.

2. Table is in the product file, ap_birthday -- use phpMyAdmin to delete the affected user record

3. The fields are: {xx} = 1st 2nd 3rd 4th etc, {username}, {userid} {bdate}
{bdate} is formatted 'day of Month' and won't be changed.

This is a free mod, you can change it to suit you Chinese requirement as you wish.

This mod can post a thread and/or send a PM to the user.
As for the EMail issue, I think it might be the way vB_DataManager_Thread_FirstPost works.
So I'm not going to do anything about that.
Reply With Quote
  #127  
Old 09-18-2014, 12:51 PM
Duke49th Duke49th is offline
 
Join Date: Sep 2014
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question please.

Why do I have to deactivatge the vBulletin birthday mailer?

Thanks

Oh..and..its a German language Forum. So where can I change the birthday age format? Now it says "1st, 2nd" and so on. But in german language its just "1. , 2. , 3. " and so on.
Reply With Quote
  #128  
Old 09-18-2014, 01:07 PM
Duke49th Duke49th is offline
 
Join Date: Sep 2014
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Duke49th View Post

Oh..and..its a German language Forum. So where can I change the birthday age format? Now it says "1st, 2nd" and so on. But in german language its just "1. , 2. , 3. " and so on.

Ok this part I've found...I overseen it before...

just edited this part:

Code:
	    	$userage = (string)$userage;
	    	$suffix = "th";
	    	$lastdigit = strlen($userage)-1;
	    	if ($lastdigit == 0 || $userage[$lastdigit-1] != 1)
	    	{
	    		if ($userage[$lastdigit] == 1) $suffix = ".";
	    		else if ($userage[$lastdigit] == 2) $suffix = ".";
	    		else if ($userage[$lastdigit] == 3)	$suffix = ".";
Im no programmer/coder..so I dont know how to delete anything without causing a problem...so I just changed everything to empty space or "."
Reply With Quote
  #129  
Old 09-21-2014, 08:21 AM
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Location: Hobart & Adelaide .au
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problems!
Reply With Quote
  #130  
Old 12-15-2014, 02:51 AM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have had this installed on my site for a couple days now.

It is not generating accurate birthday threads.

The cron doesn't seem to be hitting all the users accurately.

I am on 4.2.2 Is there anything in particular I can investigate to diagnose what the issue might be?

D.
Reply With Quote
  #131  
Old 12-15-2014, 02:57 AM
Gadget_Guy Gadget_Guy is offline
 
Join Date: Jun 2010
Posts: 271
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FWIW

Here are screen shots of my cron and log

It only ran once according to my log.. but I have had it in place for days....

It posted a couple yesterday (incorrectly)

D.
Attached Images
File Type: jpg birthday.jpg (47.5 KB, 0 views)
File Type: jpg log.jpg (29.1 KB, 0 views)
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:17 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.04985 seconds
  • Memory Usage 2,355KB
  • 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
  • (4)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
  • (1)pagenav_pagelinkrel
  • (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
  • (3)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