vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Automatic Birthday Thread (https://vborg.vbsupport.ru/showthread.php?t=62613)

MysticMoon 10-10-2004 10:59 PM

Quote:

Originally Posted by KW802
MysticMoon,

In the /includes/cron/birthday.php file find..... .... and change the two zeros that are highlighted to instead be the iconid of the new icon you want to use.

Thank you so much, it worked perfect :)

xug 10-10-2004 11:16 PM

Installed, works great, get daily an email with at least 30 birthdays.

PS:

ChurchMedia, I did send you a PM, if you have some time, please take a look at it, thank you.

GamerJunk.net 10-10-2004 11:22 PM

Great Hack! I installed it and it works perfectly on my Member News Forum.

One suggesstion, for the next release why not add some coding in the birthday greet to pull random quotes or images off of a database so every birthday thread isn't the same?

Sal Collaziano 10-12-2004 08:47 PM

I love it! Installed!

ambrosious 10-14-2004 10:00 AM

Does anyone know how to edit it so that people with <250 posts are not included?

TwinsForMe 12-08-2004 12:20 AM

[high]* TwinForMe clicks install :)[/high]

TwinsForMe 12-11-2004 05:32 PM

It doesn't seem to be working. :(

When I installed, I ran it manually and it worked. It's been a few days and no birthday threads or emails have been sent and I know there have been birthdays. I tried to run it manually and nothing happens.

venomx 12-12-2004 09:23 AM

I have had this installed for a while now. Finally got a memebr who had a birthday yesterday yet the thread wasnt made and there was no post made. :( Any ideas? :(

streetfighter 12-28-2004 01:38 AM

Cool Hack!

I installed it and works fine!
But a annoying problem i noticed is, whenever the thread is created.... it lists the birthday of yesterday and not today!
My board time is set to gmt +530
my userid has +530...
So on an 28th December, 2004.... the thread comes up with title Happy Birthday ..... to all on 27th December, 2004!

I dont understand this behaviour!
Can anyone help?

I tested this by running from cron job, using run now... the logs wud shows the current date and time i.e. 28th december, 2004 and time when it was ran! But the thread lists 1 day older birthdays!

Anyideas?
I am using VB 3.0.1

Help!

ozmazdaclub 01-09-2005 03:55 AM

TwinsForMe: Did you change the forum id and other parts that needed changing?

bishop93 01-09-2005 06:48 AM

Quote:

Originally Posted by TwinsForMe
It doesn't seem to be working. :(

When I installed, I ran it manually and it worked. It's been a few days and no birthday threads or emails have been sent and I know there have been birthdays. I tried to run it manually and nothing happens.

I'm seeing the same behavior now. Was there ever an explanation or fix for this?

bishop93 01-11-2005 07:52 PM

Not sure how I fixed it, but works like a charm for us now.

Rhoads 01-23-2005 12:41 AM

I get an empty field when the thread is posted.
I only see the title "Happy Birthday to on January 22, 2005"

I think it is not working on 3.0.6 :devious:

ChurchMedia 01-23-2005 01:00 AM

It's working on 3.0.5...

Rhoads 01-25-2005 07:17 AM

I get everyday on 07.30 a birthday thread, but there are no birthday's :ermm:
How can I stop this, the titel is the same as : https://vborg.vbsupport.ru/showpost....&postcount=133

Rhoads 01-26-2005 07:05 AM

Quote:

Originally Posted by drl2005
I get everyday on 07.30 a birthday thread, but there are no birthday's :ermm:
How can I stop this, the titel is the same as : https://vborg.vbsupport.ru/showpost....&postcount=133

Is there still support :disappointed:

Onkel_Tom 01-26-2005 07:47 AM

This hack works fine also for vb3.0.6 !
you have to check the installation instruction and redo all. there must be a wrong insert in the php files from you ;)

Rhoads 01-26-2005 08:23 AM

Quote:

Originally Posted by Onkel_Tom
This hack works fine also for vb3.0.6 !
you have to check the installation instruction and redo all. there must be a wrong insert in the php files from you ;)

It's a clean install on vb3.0.6, I think my cronjob is wrong.

Onkel_Tom 01-26-2005 11:52 AM

Looks like mine cronjob ;)
You have a problem with you code when you get empty threads.
did you use table prefixes?

Rhoads 01-26-2005 12:42 PM

Quote:

Originally Posted by Onkel_Tom
Looks like mine cronjob ;)
You have a problem with you code when you get empty threads.
did you use table prefixes?

No, I have no table prefix, but I get each day a empty thread when there is no birthday, When there is a birthday, than de message is oke.

Onkel_Tom 01-26-2005 12:50 PM

Okay, than you have to check your code twice...

Rhoads 01-26-2005 12:54 PM

Quote:

Originally Posted by Onkel_Tom
Okay, than you have to check your code twice...

Oke, then I check it for the fourth time :ermm:

dave kaye 01-29-2005 12:14 PM

great mod, clicks install

Rhoads 01-30-2005 09:15 PM

Oke, at last it works :)

But I have a question.
How I can ensure that the thread for 00.01 are made instead of 07.00.
Also I want adapt the post, I have this way changed him, but I get only the image now in the post, what is wrong ???

Code:

// Create Birthday Thread Hack
$birthday_greeting_thread = "Dear Community,\n\nHere are today's birthdays!\n";
$birthday_greeting_thread = $birthday_greeting_thread.$bday_people;
$birthday_greeting_thread = "\nCongratulated of the organisation.!";
$birthday_greeting_thread = "\n[IMC]http://www.mydomein.nl/forum/data/congratulated.gif[/IMC]";

// Add an extra message tag below the birthdays if you want to. Use \n for line breaks. BB code is allowed. Be sure to uncomment the line if you use it.
//$birthday_greeting_thread = $birthday_greeting_thread."\n\nHave a great birthday!";

$greetermail="organisation@mydomein.nl"; //CHANGE ME: Birthday greeter email
$greeter=102; // CHANGE ME: Birthday greeter user ID
$greeter_name="Organisation"; //CHANGE ME: Birthday greeter user name
$greetings_forum=37; // CHANGE ME: Birthday forum ID
$todays_date11= date("F j, Y", mktime (date("H")+$timeset, date("i"), date("s"), date("m"), date("d"), date("Y")));
$title3= "congratulated ";
$title3.= $bday_title;
$title3.= "on ";
$title3.=$todays_date11;

As extra I have put that in the rood, for now i changed the [IMG] to [IMC] differently the code a cross shows.
Please support !!!

peterska2 01-30-2005 11:15 PM

I like this. I installed it about 3 days ago and the first birthday on the site has occurred.

I got 2 posts (one on each site), 2 standard vB birthday emails (one from each site), and 2 admin emails telling me that a user has a birthday today (again one from each site).

All this happened between 0001 and 0005 GMT today (Monday).

Kinda makes my birthday. :D

deb0 02-22-2005 10:31 AM

Anyone got this working in 306?

jluerken 02-22-2005 10:41 AM

Quote:

Originally Posted by deb0
Anyone got this working in 306?

Its working for me and I am running 3.0.7

BigCheeze 02-24-2005 08:03 PM

Quote:

Originally Posted by deb0
Anyone got this working in 306?

I'm running a patched version of 3.06 and it works just fine

paulomt1 02-27-2005 12:29 PM

I don't want create a thread birthday for users them:
No visit board more than 30 days
User with posts below 10

Is possible do this?

Thanks

Michael2 02-28-2005 10:45 AM

Thanks for the hack. Mine is not starting threads for everyone. It sometimes does but like today there are 5 people with birthdays and only four listed in the thread. Is there a reason it would exclude certain users? I'm running 3.0.3 and installed it per the instructions in the first post. Thanks in advance for any help. :)

michael5472 03-01-2005 05:25 PM

Cheers mate a wicked mod :D

Michael2 03-05-2005 09:56 AM

Quote:

Originally Posted by Michael2
Thanks for the hack. Mine is not starting threads for everyone. It sometimes does but like today there are 5 people with birthdays and only four listed in the thread. Is there a reason it would exclude certain users? I'm running 3.0.3 and installed it per the instructions in the first post. Thanks in advance for any help. :)

Someone pointed out it's not including active members (people who have posted in the last several months). Any reason why?

Lionel 03-05-2005 10:01 AM

Sometimes I have 8-12 birthdays and it is posting and emailing info for 2 or 3 only.

Today, I've got 8 and it did not send or create. My board is busy, it has been 7 hours now. I even tried running the cron manually. Could it be because one of those members have a space in the name? that is the only thing I could see here.

Lionel 03-07-2005 03:19 AM

No matter what, even if there are 19 birthdays for 19 active users, that email and that thread gets created only for 4 people evry day.

ChurchMedia 03-07-2005 03:27 AM

Quote:

Originally Posted by Michael2
Someone pointed out it's not including active members (people who have posted in the last several months). Any reason why?

No, it's not about active users.....

It will only send out the email (and create the thread, name of person, etc.) for people who have agreed to accept emails from the admin. So unless you take that part of the code out, you'll never know how many people you'll get -- if any. It depends on each user's settings. Make sense?

Lionel 03-07-2005 03:38 AM

that makes sense, but that was so odd, never more than four.... always the magic four

ChurchMedia 03-07-2005 03:41 AM

Yeah, that's weird. You can take the part of the code out at the top about admin emails and see if that changes things.... Mine works fine... ???

Lionel 03-07-2005 03:56 AM

Hummm. I removed the code and ran the cron manually, I got a databse error. I put it back and did it again, this time I got 6 people out of 9. Did it a third time without changing anything, got 4 people again. Check users, they are all set to receive admin emails. I am using 3.07

Lionel 03-07-2005 04:07 AM

Fixed! Some usergroup id were excluded in the array....

atrljoe 03-11-2005 01:22 AM

Warning: main(./global.php): failed to open stream: No such file or directory in /home2/MYACCOUNT/public_html/forums/includes/cron/birthday.php on line 15

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/MYACCOUNT/public_html/forums/includes/cron/birthday.php on line 15

Any Ideas?


All times are GMT. The time now is 12:00 AM.

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.01559 seconds
  • Memory Usage 1,819KB
  • 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
  • (1)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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