![]() |
Quote:
2- What time it is now (date and time) 3- Have you set timeset variable? 4- Run this query and tell me what it returns: SELECT leftdate from timetick where action='birthday'; 5- What did you set your server load variable to? What's your estimated daily visitor number of index.php? 6- Are you aware that hack does not greet at exactly 12.00 am, but it will greet at a random hour after midnight, depending on your visitor number you set? |
Quote:
2-it is 12:40 PM, 12 hours later 3-$timeset=0; 4-query returns 2002-06-12 5-load variable was placed at 15 estimated daily visitors is 2000+ 6-I understand that it will not trigger at midnight |
Quote:
|
if I manually change the date to 11 in mysql database, will it run it today? I am anxious to see this at work...
|
yep it will, but be careful to not to enter a wrong date (or date format) there.
|
Yesterday at the load value set at 30...it ran at 11:00AM.
Today...With the load value set at 5....it ran at 11:00AM. |
Quote:
Considering the fact that you have very high number of visitors in your server, numbers like 30 or 5 makes no difference for you. The hack will run VERY VERY close to midnight in your board with these numbers.. |
Quote:
|
Code:
## Time difference between the time zone you and your server's time. |
Quote:
It's "Time difference between the time zone you and your server's time." NOT "difference between your server and London". So if server is in California and so do you, set it to 0. By setting it to -8, you programmed the hack to start greetings at 8.00AM server time. Since it greeted at 11.00 AM, may I assume that you live somewhere that has 3 hours difference with California? ;) |
Bingo! NY
|
Small Bug Fix:
Small bug fix with "Create Thread" feature: Find: PHP Code:
PHP Code:
Original hack file in the thread is already updated so this fix only applies to users who installed the hack prior to 12.June.2002. Logician |
I've just installed it and now I'm waiting until tomorrow LOL...
Couple of requests if this is possible... 1] When it created the thread, can we have it add that day's date in the subject heading? Like "Today's Birthdays: June 13, 2002" -- this way the threads won't all be the same subject every day :) 2] On the list of that day's birthdays on the thread, is it possible to have each username linked to either their profile link, or better yet, 'send a PM' to them? (All of my members use PMs) Thanks! I can't wait to see what happens tomorrow! |
Quote:
PHP Code:
PHP Code:
Quote:
Quote:
Enjoy.. Logician |
Quote:
Do I have to add anything to the templates to get that to work or will it automatically add it? |
Quote:
But you may like to change thread title variable ($title3) in the options part. This modification will add the date of celebration at the end of this variable, so you should regard a suitable title like: PHP Code:
Todays Birthdays: June 14, 2002 |
Don't you mean the $title3 variable? :)
Quote:
|
Quote:
|
Good night, my friend. :)
Quote:
|
Worked beautifully - thank you!
|
I've got 5 birthdays today... the thread posted in the correct forum, but it shows only 2 birthdays :ermm:
|
Quote:
|
yep, number 3 is the users awaiting confirmation and that was the case
|
glad you figured that out. You either disable it or if you want not to greet awaiting confirmation members leave it as it is.
|
My boards are 100% community based and I am sure the members appreciate to be remembered.
I must tell you that I was so impressed by your hack that I went hunting for your other hacks and installed a couple more. Both the webtemplates and the way that you provide for "cut and paste" of any section of a thread into news were impressive. It's also good to know who rated. Nice work, keep it up! |
Addition to the Hack:
This small modifications will play happy birthday song to your members when they visit your board in their birthdays. Features:
Installation: 1-Edit global.php find: PHP Code:
PHP Code:
3- Admin CP/Modify Template, edit template: forumhome Find: PHP Code:
PHP Code:
Enjoy! Logician Ps. If you apply the add-on that changes user's style in their birthdays, please check its post and reapply the code. I catched a bug in the code and corrected it. Considering the fact that nobody hollered, it seems nobody uses it though :) |
now i can't figure out why it isn't posting the thread on the forum.
if i put 1 for the forum number, does that mean the first forum i created? or the first forum listed on the main page? and does the numbering include the category as a forum? thanks and blessings, amity |
Quote:
http://www.yoursite.com/forum/forumd...p?s=&forumid=1 Do mail/pm/admin notifications run ok? |
For the last 3 days this hack has sent out more than one birthday greeting and I receive more than one PM of the ones that went out.
What I mean is..When I go into my PM the next day...I find 2 or three of the notcies of what went out. They all have the same time stamp and the same data in the message of who it went to. When I contacted one of the birthday people on the list...they told me they received the message more than once. NOTE...I am using it for E-MAIL only sending with it checking for their OK to send a message. Please advise. |
Quote:
The very high trafic of your board and very low estimated_load number (compared to your traffic) causes it. This is how it happens: One visitor triggers the hack at midnight, the hack begins to compile birthday greetings but before it finishes and updates the database date, another visitor triggers it again (the first visitor's trigger didnt finished yet, so database date is still yesterday). Hack will be done in less than a second and your traffic is so high that, it gets triggered more than once in that very second and produce more than 1 greetings. With so high traffic you really dont need so low estimated_load value. Increase it and you'll be fine. |
Ok...will give it a shot. Thank you.
|
Odd problem.
I followed the instructions to the T, used phpMyAdmin to run the queries, added and saved the templates, and edited my index.php file under forum/index.php .. however when I tried to access my site I got the following email: Quote:
Heineken |
MYSQL error no 2003 is related to MYSQL access problems and occurs when the script can not access to MYSQL. So it can not be related to the hack. It's very likely your were just unlucky, your MYSQL server went down at the moment you installed the hack. When it's back online, IMO give it a shot again .. The hack has been tested, installed and used by many people with no problems at all.. ;)
|
DOH! Means I have to redo it all over again lol ... should have waited before reverting back to original state eheh
Thanks bro, great hack by the way! Look forward to installing it :) |
yw, let me know if you encounter any problems again.. :)
|
Logician,
Installed the hack and it sent the emails and PMs to the Birthday members, but the EMAILS are Blank. The subject is titled: Happy Birthday, but there isnt any messages in the PMs or emails? |
Quote:
a) you have created the templates b) content of that templates are not blank c) You entered the template names exactly (no trailing space etc.) d) Create the templates in all styles if it still does not work.. Your problem is very likely related to either of these.. |
That was the problem, thanks!
I am using a CUSTOM template and when I added the templates above, they were added in the DEFAULT templates, which I was not using. So I merely moved them to my custom templates. Thanks again my friend! |
Great hack! Quick question:
Can I add either the "$birthday_children[username]" or "$birthday_children[user]" to the title in the new thread, such as: $title = "Happy Birthday " .$birthday_children[username]."!" Thanks! - Gerry |
Quote:
|
All times are GMT. The time now is 04:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|