vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Birthday Thread and PM generator (https://vborg.vbsupport.ru/showthread.php?t=263701)

AusPhotography 05-15-2011 10:00 PM

Birthday Thread and PM generator
 
1 Attachment(s)
<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

AusPhotography 05-16-2011 01:36 AM

1 Attachment(s)
AdminCP Screen shot... (1.0.6)

Attachment 130435

RobbieZ 05-16-2011 06:14 AM

Excellent, Hope this one posts correctly.. ;)

AusPhotography 05-16-2011 06:26 AM

Quote:

Originally Posted by RobbieZ (Post 2196240)
Excellent, Hope this one posts correctly.. ;)

Our server is in Texas *(shared hosting so it has a TX timezone CDT), most of our members are in Australia (AEST etc).
That's a 15 hour time difference. This is close to the worst case.
The members get their birthday PM and Thread on the day of their birthday in their time zone (per what's in their profile). :up:

Kym

Rckcrwlr 05-16-2011 09:32 AM

Will install today...Looking forward to one that actually works.

Thanks

Krusty1231 05-16-2011 09:37 AM

Installed. Thanks.

CharlieDelta 05-16-2011 02:03 PM

Excellent!

MrEyes 05-16-2011 05:55 PM

If there are multiple members with a birthday on the same day will the mod create a single thread for all birthdays or multiple threads (one for each member)?

One of my larger forum can have 10+ birthdays in a single day, so it would be better if all these were on one thread.

Mellow 05-16-2011 07:18 PM

I was getting errors in the cron job until I changed this, comma to period:
$forumlist .= ', ',$forum['forumid'];
to this:
$forumlist .= ', '.$forum['forumid'];

AusPhotography 05-16-2011 10:53 PM

Quote:

Originally Posted by Mellow (Post 2196452)
I was getting errors in the cron job until I changed this, comma to period:
$forumlist .= ', ',$forum['forumid'];
to this:
$forumlist .= ', '.$forum['forumid'];

Ooops, last minute change - thanks and fixed ;)


All times are GMT. The time now is 10:04 PM.

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.01057 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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