Log in

View Full Version : forum home birthdays


trinitym
02-12-2004, 01:16 AM
Okay. So, I've tried asking about this in vbulletintemplates and didn't get a response, so maybe I'll try here. I hope that's all right and I'm not really sure where I should post this so I _also_ hope I'm in the right forum. [I'm a mess right? ;)]

Okay, so I have some age-restricted forums and I've tweaked my board so that full birthdays are required and non-editable by the user [with an FYI note during registration informing such] and with the option to hide them for those who are sensitive about things like that. I've fixed it so that age doesn't appear anywhere if hide is selected [calendars for example] except for the forum home "today's birthdays" thing. I've looked and looked and I can't figure out where that template is or how it's displayed.

I could be blind of course. Anyway, I was just wondering if someone can help me out. For now I just have the today's birthdays option turned off, but I'd really like to tweak and turn the option back on.

Someone's going to tell me I can't have my cake right? Heh.

Andreas
02-12-2004, 01:26 AM
I've got moreless the same setup - users are required to give their full birthdate to register, but can hide that form being displayed anywhere.

In functions_databuild.php FIND

$bdays = $DB_site->query("
SELECT username, userid, birthday
FROM " . TABLE_PREFIX . "user


Modify that query to select only those users who do allow their birthdate being displayed and you're done.
Also, don't forget to call build_birthdays() from profile.php when a user changes the display option.