![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Using query_read to get birthday
I'm trying to use query_read to get a users birthday to display it to them in a custom page. But for some reason, it's always blank when it's returned.
I tried using birthday_search as well, it also comes back blank. Any ideas?
__________________
Stick Sports No members have liked this post.
|
|
#2
|
||||
|
||||
|
Have you tried:
No members have liked this post.
|
||||
|
#3
|
|||
|
|||
|
Yup. Returns one row but that row has no value for birthday.....
__________________
Stick Sports No members have liked this post.
|
|
#4
|
|||
|
|||
|
If you're already including the vBulletin framework in your custom page, then $userinfo[birthday] will contain the user's birthdate.
No members have liked this post.
|
|
#5
|
||||
|
||||
|
I assume as much but it's not returning anything either.
When I do a print_r on userinfo, I get the following....
Both birthday and birthday_search are blank. Is this a vB setting some where?
__________________
Stick Sports No members have liked this post.
|
||||
|
#6
|
|||
|
|||
|
Are you testing with an account that's unalterable (per your config file)?
The only account in my database with no birthdate and a birthday_search of 0000-00-00 is my admin account, user #1. If you look in your database through phpMyAdmin or similar, what's in the birthdate field for user #8? No members have liked this post.
|
|
#7
|
|||
|
|||
|
It's an admin account and it's unalterable but it certainly has a birthdate and birthday_search as I've checked the table using phpMyAdmin.
--------------- Added 01 Nov 2010 at 01:46 --------------- Tried accessing a different userid which isn't an admin and isn't locked and it has the same problem. --------------- Added 01 Nov 2010 at 04:48 --------------- OK, after further testing, it seems to only be a problem on my development server. No idea how to fix it though.
__________________
Stick Sports No members have liked this post.
Last edited by dfc005 : 01 Nov 2010 at 04:48. Reason: Auto-Merged DoublePost |
|
#8
|
||||
|
||||
|
What do you mean row has no value for birthday?
In some of the cases you'll need to use PHP function
to get logical date, and not the unix time. No members have liked this post.
|
||||
|
#9
|
|||
|
|||
|
The row was simply blank, no value. Not sure why it wasn't working on my development server but I reinstalled a fresh copy of vBulletin and it all seems to be fine now.
__________________
Stick Sports No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 07:03.



