The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show today birthdays on a non-vb page
Hi comunity!
I would like to show TODAY BIRTHDAY's on a non-vb page. What I dont know how to do is to compare with SQL statment today date DATE(now), with users.birthday_search and find thos users whose celebrate their birthday. Any help? Thanks in advance. |
#2
|
||||
|
||||
[sql]SELECT username, userid
FROM user WHERE birthday_search LIKE date_format( now( ) , '%%-%m-%d' ) [/sql] But you might also want to take a look at table datastore, row title=birthdaycache. |
#3
|
|||
|
|||
Thanks a lot KirbyDE,
It works!! Here is the script for anyone that wants to use it!! PHP Code:
"Dad gratis lo que gratis recibisteis" (Jes?s) |
#4
|
||||
|
||||
You are only selecting username and userid, but you also try to process birthday ...
|
#5
|
|||
|
|||
Corrected and modified above message with correct code!
Thanks Now I would like to limit birthday show to those users who belongs to a special category created by me on the system. any idea? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|