vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=263701

Birthday Thread and PM generator
by AusPhotography
16 May 2011 02:34

1 Attachment(s)
www.AusPhotography.net.au 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

Reserved
by AusPhotography
16 May 2011 02:36

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

Attachment 130435

RobbieZ 16 May 2011 07:14

Excellent, Hope this one posts correctly.. ;)

AusPhotography 16 May 2011 07:26

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 16 May 2011 10:32

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

Thanks

Krusty1231 16 May 2011 10:37

Installed. Thanks.

CharlieDelta 16 May 2011 15:03

Excellent!

MrEyes 16 May 2011 18:55

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 16 May 2011 20:18

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

AusPhotography 16 May 2011 23:53

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 ;)

AusPhotography 16 May 2011 23:54

Quote:

Originally Posted by MrEyes (Post 2196426)
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.

It creates a thread per member, our feeling is that it keeps it a bit personal.

RobbieZ 17 May 2011 01:48

Who is the thread starter for the birthday threads?

AusPhotography 17 May 2011 02:44

Quote:

Originally Posted by RobbieZ (Post 2196567)
Who is the thread starter for the birthday threads?

You nominate a userid in AdminCP settings. By default its 1 - admin.
We have it set to the site owner (Rick)

Kym

Boofo 17 May 2011 03:03

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'];

Tsk, Tsk, Kym. ;)

Hornstar 17 May 2011 10:51

Is it possible to have this only post threads for members who have been active in the last x days? Because I can't imagine it working great with my 617000 members lol


All times are GMT. The time now is 12:13.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.