vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   forum home birthdays (https://vborg.vbsupport.ru/showthread.php?t=61461)

trinitym 02-12-2004 01:16 AM

forum home birthdays
 
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
PHP Code:

 $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.


All times are GMT. The time now is 08:10 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
  • Page Generation 0.00987 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete