The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Automatic Greeting Email/PM/Threads for Member Birthdays Details »» | |||||||||||||||||||||||||||
Automatic Greeting Email/PM/Threads for Member Birthdays
Developer Last Online: Nov 2023
This hack will automatically greet the birthdays of your board members by sending them:
* Does NOT require cron jobs so everybody can use it regardless of their server settings/rights. * You can send PMs, emails (or both) or you can choose to send them PM if they can receive PM or else send email. * The Hack can create special greeting threads for birthdays. (optional) * Some usergroups (like banned users) can be excluded from automatic greetings. * Admin can choose to receive a daily report via Email or PM about the greeted birthdays. (optional) * Compatible with ALL vbulletin versions I know. * Carefully coded to not to increase your SQL load and its quite performance-friendly. (More info about performance issues) * New Added Feature: To greet only members who have more than X messages or who have visited your board in the last X days, see here * New Added Feature: You can change his style in the day user has his birthday. Check here) * New Added Feature: You can play Happy Birthday Song to your members in their birthdays. Check here The hack is beta tested by many users for a long time before the release and proven to be quite stable. (BTW. thx to all beta testers especially to Dark_Wizard, Boofo, DslTeam, C-Pr0mpt for returning feedback). WARNING: I strongly suggest: a) Be careful while installing this hack (especially in step 2). If you install it wrongly, your members may get a lot of irrelevant greetings. b) To make sure you installed it correctly, turn on DEBUG mode AND administrator notifications in the options of the hack while you are installing it. So the hack will NOT send any notifications to members but only send daily reports to admin. Keep an eye on these reports for a few days and if you made sure you installed it correctly and it works ok, you can safely turn off debug mode. Enjoy the hack and if you install the hack please click INSTALL, thank you.. Logician \\=^)) Show Your Support
|
Comments |
#102
|
||||
|
||||
Hi gopherhockey,
Quote:
1- You entered the date incorrectly. For example you might have forgotten we are in 2003 now and enter the year as 2002. 2- You entered the date in the wrong format: The correct format is: "YYYY-MM-DD". For example if you entered it like YYYY-DD-MM this would be wrong. The admin email notice seconds this. It says : Quote:
I strongly believe your problem is not related to the script, it's tested for a real long time in many servers. So don't be afraid to retry it, provided that you install it carefully (especially step 2). Also it's suggested the you run the script in debug mode (3) first, which will make sure your users will not get any mails or PMs until you are confident it's working ok.. Hope this helps.. |
#103
|
||||
|
||||
I kind of knew that people would go after the date thing... thats why I was so careful in reviewing the docs and what I did. It all still checks out - even now when I run the script you gave to "test" the date, it still checks out perfectly. Here is another message it gave me (below). You can see this one, received on the same date & time was for a guy whos birthday was in Nov. of 02. I have about 50 such messages ranging from the entire calendar year, but all sent/posted on Jan 13, 03.
Here is the output of the sql query you had us run: Edit Delete 2003-01-13 - If I read your instructions right, 03 is year, 01 (Jan) month and 13=day, which all checks out. Could it be some Win2k thing? I double checked the time on the server, its ok with correct time zone etc. I know the time/date thing seems obvious, but that isn't the case here. Hmmmm.... Or could it be that I entered 2003-01-12 when it was actually 11:30pm my time (central) but was actually probably 2003-01-13 G-time? Maybe somehow beign so close to midnight it was like telling the system I installed it yesterday. (although it still probably wouldn't have done what it did even doing that I imagine) ---- Daily Birthday Greetings Report Birthdays for day (2002-11-10) celebrated at January 13, 2003, 12:00 am (Server Time) Members who have birthday: * Tom S.(35)1967-11-10 [PM Sent] [Thread Created] Thread : http://www.xxxxxxxxxx.com/forums/sho...p?threadid=106 ---------------------------------- Logician Auto Email/PM Birthday Greeting Hack |
#104
|
||||
|
||||
Quote:
Edit hack code and find: PHP Code:
PHP Code:
Also run this query and tell me what does it return: [sql]SELECT * FROM timetick WHERE action='birthday' LIMIT 1[/sql] |
#105
|
||||
|
||||
Thanks for the suggestions.. I ran them, and here is the results..
The result of the sql query you gave me is this: id action leftdate leftid Edit Delete 1 birthday 2003-01-13 0 The result of the echo code you gave me is this: today is : 2003-01-13 last running time was : (it shows no last running time) I reset one of my birthdays to tomorrow (the 14th) to see if this happens all over again at the new day. If it is a one-time only situation I don't mind.. but it would be kind of fun to find out why this happened, even if to possibly help you or others in the future. |
#106
|
||||
|
||||
I modified the debug code above a little bit. Can u please try again and tell me the displayed result?
It's weird that query returns you the correct time but the debug code for last running time is blank. BTW. you are sure you applied the hack code to "forum/index.php", not to another file right? Also your "timetick" table is created in the same MYSQL database your test board is installed? If you have more than 1 databases, please make sure your table is in the correct database. Also make sure if you have this line in the hack code: PHP Code:
PHP Code:
|
#107
|
||||
|
||||
I ran with the new code (and that line verified to be there as requested) and got:
today is : 2003-01-13 last running time was : 2003-01-13 last action variable is set --- I definitely don't have any other databases in use. The only other thing I can think of is that I set the estimated load at 3 before it ran last night (since it gets no other traffic than me, I figured that wouldn't hurt). Also, I did not use your sql tool to enter the data required for the hack but went in to phpmyadmin to do it directly. Those are the only two other deviations I can think of. I wonder if there are many others using your hack with vbulletin on win2k sp3 and 2.2.9. Let me know if I can try anything else. Should I try setting the time ahead on my server to see if it happens again, or would that just cloud the problem? (I'm rather curious to see if it will kick off all those messages/threads again when the 14th comes) |
#108
|
||||
|
||||
Just an update - midnight came and went and I received just the one email/thread posting as should have happened... so, whatever initially kicked off all those emails and posts is, hopefully, gone. Strange - but perhaps a good reminder to run it first in test mode as you suggested.
I like the script, very nice. I do plan to install it on my production server. |
#109
|
||||
|
||||
Quote:
Your initial problem was related to "last running time" being incorrect. I don't know why it was not correct in the first place when you installed it but I still suspect you might set it wrongly. (especially regarding year). If you confirmed the year after posts are sent, it would display correctly so it does not count. But if you insist the date and its format was correct right after you applied step 2, well then it must be something else that caused it .. Don't have any idea then.. |
#110
|
||||
|
||||
I have done and still do a lot of stupid things in my life, but lying about something like this and wasting everyone's time (espeically the author's) is not one of them.
I set it up as per instructed and got the dates completely right the first time. WHat happened may remain a mystery - perhaps a combo of the OS and software/mysql etc. - who knows. I hope nobody else runs into this "bug" or whatever it is. I recommend running in test mode first, just in case... if you don't and if you have more users than I do, be ready to delete lots of threads and messages etc. Perhaps to pull anything constructive out of all this, a person could use the example code you posted earlier to check to be sure both dates are correctly reported... I notice in the installation document you have us run a test that returns one date/time combo. Would it be an advantage to run it in a way that reports both? Or is one written the first time and one written after the first day when the first run completes..? Here is another though. WHen I initially ran it, I had set my estimated load to 3 instead of 30. Is it possible that on that midnight when I was all click-happy to see it run that I kicked off the thing twice in a row so quickly that one of the instances didn't read the last run time either at all or properly and maybe caused that strange behavior? Probably not worth further speculation... |
#111
|
|||
|
|||
I set this up last night and it certainly sent an email, PM and put a thread in a forum as I specified in my options. However it only put the subject title in, i.e. Happy Birthday to Our Members for the thread and no body content, Happy Birthday !!! in the PM but no body content etc.
Any ideas? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|