![]() |
Sweet, installed and no errors this time! You were right about MySQL being down..I've noticed from time to time I'll get an error .. hit refresh and it's fixed. Must be some host/server related issues.
Unfortunately I installed this 10 mins after 12am :( So have to wait 24 hours .. but sure it will work :D Thanks again bro! Heineken |
The thread is posting in the wrong forum. Which file do I go into to change the forum number? Thanks.
|
Quote:
PHP Code:
|
Thanks.
|
love this hack. I only had 1 problem of multiple messages to the same member being sent, but I already found the solution here. Thanks! The members like it and so do I.
I'm thinking about using this to send calendar reminders. thanks again. |
supa hack! but one request to change: i made in options that hack to make a thread, but i do not want to make thread for everybody birthday, i want to do it only for moderators... i look in options and see
$excluded_usergroups=array(''); but if i put some usergroup here they stop recive greetings and via email & PM as well. I just wont to turn thread creation only for moderators but want let email & PM creation for all groups. P.S. Sorry for my english. I hope you got that i want... :classic: |
Quote:
|
Logician, ok... but you will? :rolleyes: ;)
|
and one more improvement - can you add in email & PM URL of thread if created? :rolleyes:
|
Great hack, mate. Been using it for a few weeks, working great. The members love it.
|
Cool Hack!!
Thanks Logician!! /me klicks installed! |
Hi guys,
I want to double check...if I'm in time zone -5 and my server is -7, I enter -2 in the $timeset ? Thank you for sharing a great hack btw! |
Quote:
|
so if I have it at -2 it will just send them out a bit early? maybe I should just leave it at 0 huh :)
|
it depends according to which time zone (yours? server?) you want the hack to run and at what time exactly.
If you leave it as 0, it will run close to 00:00 AM server time and 2:00 AM your time.. it's your call anyway.. |
I understand now :) I was thinking too hard about it. lol
|
nice work.
|
Very cool hack Logician!
Question about the .wav hack... installed and tested, plays, but it loops continuously and each time the forumhome is visited. ? |
Quote:
Quote:
|
I had a strange thing happen to me tonight. I installed the hack on my Windows 2k test server (an offline server I use to test hacks before putting them on my public server - both are identical, but one is on win2k and one is on freebsd).
Anyway - I installed the hack, did all the sql stuff, date verified etc. - I did this around 11:30pm.. so, I only had to wait 30 minutes and figured maybe something would happen. Sure enough, I got a popup, a ton of PMs, and a TON of forum posts. This on a forum with only 50 some odd users. What happened was that a message was generated to EVERY user and a forum message was also posted for every user. What could have caused this? What a mess - boy, I'm glad I don't have that many users yet, even on my test system. I'm concerned that I had it set to option 6 and some emails may have also been generated - even on my test system, they would have gone out (confused users tomorrow) What could cause this? I do'nt want to post this on my production system until I figure this out. I verified the date I put in my sql query and it was accurate... Hmmm... ? Just FYI: I'm running version 2.2.9 in case that matters. Also, here is one of the Greeting Reports: ----------- Daily Birthday Greetings Report Birthdays for day (2002-09-22) celebrated at January 13, 2003, 12:00 am (Server Time) Members who have birthday: * ShaneK(30)1972-09-22 [Email Sent] [Thread Created] Thread : http://www.devserver.com/forums/show...p?threadid=103 ---------------------------------- Logician Auto Email/PM Birthday Greeting Hack |
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.. |
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 |
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] |
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. |
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:
|
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) |
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. |
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.. :) |
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... |
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? |
Quote:
1- make sure templates are created and their names are exact (check CAPS too!) 2- Create the templates in all template sets, if you have more than one.. Either one should fix the problem.. :glasses: |
It occassionaly leaves-out the names in posts on my board as well.
|
Quote:
Change the settings if you want otherwise.. |
Not the problem... it leaves ALL names out, meaning, a blank post. Seems to do it every few days.
|
Fatal error: Cannot redeclare make_seed() in /www/global.php(321) : eval()'d code on line 323
??? |
Quote:
PHP Code:
Quote:
|
Tnx Logician, it works. :) Clicks install
|
I actuallly cut and paste the text titles etc. so those should be ok. However I do have two templates and I didn't copy the template to both. Since you mentioned it, I reckon that must be the answer :).
Thx. m8 and keep up the cool hacks. Quote:
|
Fantastic hack! I had been emailing users on thier birthdays. Now it's automatic!
I'd like to give them a "birthday present" of 50 points (Lesane's store hack). I know the code is: Code:
$DB_site->query("UPDATE user SET storep=storep+50 where userid='$userinfo[userid]'"); |
Quote:
edit hack code (index.php), find: PHP Code:
PHP Code:
|
All times are GMT. The time now is 12:59 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:
|