Welcome, Guest. Please Login or Register.
July 12, 2025, 08:47:23 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  problems with calendar birthdays « previous next »
Pages: [1] Reply Ignore Print
Author Topic: problems with calendar birthdays  (Read 510 times)
marcnyc
Full Member
***
Posts: 137


I'm a llama!

problems with calendar birthdays
« on: February 23, 2003, 06:14:11 AM »
Reply with quote

Hello I have enabled the calendar on my board but there is something wrong with the birthdays... Basically it says that all my members (or most of them, at least 20) have birthday today. Can somebody tell me how I can fix this? I have 1.5.1 build 42 and I have converted the board from Gold SP1.1 where I had the birthday mod installed. How can I fix it?
Thanks
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:problems with calendar birthdays
« Reply #1 on: February 23, 2003, 07:24:53 AM »
Reply with quote

Hmmm... how many times have I posted this?

Run this in phpMyAdmin:

UPDATE yabbse_members SET birthdate=NULL WHERE birthdate='YYYY-MM-DD';

(replace YYYY-MM-DD with the date you installed the board.)

This, I think, was fixed in Compuart's updated converter.

-[Unknown]
Logged
marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #2 on: February 24, 2003, 12:02:49 AM »
Reply with quote

I am sorry if I have been redundant with my question but as I have posted somewhere else I was having problems performing searches...

I have tried to run the query you told me and I have replaced the date with the date that all the birthdays show up (I don't remember what day I installed it but I am assuming that must be the date).

I get this error:

Error

SQL-query :  [Edit]

UPDATE yabbse_members SET birthdate=NULL WHERE birthdate=\'2003-02-19\';

MySQL said:

You have an error in your SQL syntax near '\'2003-02-19\'' at line 1


Also I want you to know that before posting this error I have done a search with the words "update birthdate" looking in all boards, message and subject and NOTHING came up!

Also I want you to know I used the latest converter that was available one week ago.
Logged
marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #3 on: February 24, 2003, 03:23:01 AM »
Reply with quote

Ok I was able to guess that in your code the single quotes might be wrong so I tried without them and I thought that did the trick but PHP MyAdmin said:

Affected rows: 0
SQL-query :
UPDATE yabbse_members SET birthdate=NULL WHERE birthdate=2003-02-19

and althought it showed no error the birthdays are still showing all on Feb 19th on my forum...
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:problems with calendar birthdays
« Reply #4 on: February 24, 2003, 03:24:12 AM »
Reply with quote

Well, for some reason it added slashes... that screwed it up.

Otherwise the query would have worked.

-[Unknown]
Logged
marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #5 on: February 24, 2003, 05:55:37 AM »
Reply with quote

So what can I do to solve the problem??? I tried with and without single quotes, I also tried with double quotes and it either gives me the error or says 0 rows affected.
Logged
marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #6 on: March 01, 2003, 06:52:48 AM »
Reply with quote

Does somebody have a fix for this? I still see all my birthdays on one day!  ???
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:problems with calendar birthdays
« Reply #7 on: March 01, 2003, 07:00:37 AM »
Reply with quote

Quote from: [Unknown] on February 23, 2003, 07:24:53 AM
Hmmm... how many times have I posted this?

Run this in phpMyAdmin:

UPDATE yabbse_members SET birthdate=NULL WHERE birthdate='YYYY-MM-DD';

(replace YYYY-MM-DD with the date you installed the board.)

This, I think, was fixed in Compuart's updated converter.

-[Unknown]

This is the fix.

-[Unknown]
Logged
marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #8 on: March 01, 2003, 08:01:43 AM »
Reply with quote

Ok, but I told you it didn't work...  :(
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:problems with calendar birthdays
« Reply #9 on: March 01, 2003, 09:04:54 AM »
Reply with quote

<?phpinclude 'Settings.php';$dblink = mysqlconnnect($db_server, $db_user, $db_passwd);mysql_select_db($db_name);mysql_query("   UPDATE {$db_prefix}members   SET birthdate=NULL   WHERE YEAR(birthdate) > 2000") or die(mysql_error());?>


-[Unknown]
Logged
marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #10 on: March 01, 2003, 04:31:20 PM »
Reply with quote

and where exactly do I need to put this code?

do I just create a blank php page with that code and launch it from the browser or what?
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:problems with calendar birthdays
« Reply #11 on: March 01, 2003, 06:04:30 PM »
Reply with quote

Quote from: marcnyc on March 01, 2003, 04:31:20 PM
and where exactly do I need to put this code?

do I just create a blank php page with that code and launch it from the browser or what?
Yes, make a new file, bday.php or something like that, and put it in the directory where Settings.php is.  Call it in your browser and once it has run then delete it.
Logged

marcnyc
Full Member
***
Posts: 137


I'm a llama!

Re:problems with calendar birthdays
« Reply #12 on: March 01, 2003, 07:07:49 PM »
Reply with quote

Ok this seems to have worked  :D

For those who will be reading this post the correct code is:

<?phpinclude 'Settings.php';$dblink = mysql_connect($db_server, $db_user, $db_passwd);mysql_select_db($db_name);mysql_query("  UPDATE {$db_prefix}members  SET birthdate=NULL  WHERE YEAR(birthdate) > 2000") or die(mysql_error());?>


In the previous example the underscore _ in the mysql_connect function was missing.

Thank you very much for your help.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:problems with calendar birthdays
« Reply #13 on: March 02, 2003, 12:43:26 AM »
Reply with quote

Heh... your welcome, and sorry about the typo. :-[

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  problems with calendar birthdays « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.070 seconds with 21 queries.