vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Birthday Problem (https://vborg.vbsupport.ru/showthread.php?t=59469)

firas 12-31-2003 11:04 AM

Birthday Problem
 
hi..

i have a problem in my forum. today Dec 31 so i have more than 1000 names in the birthday list and this is not true. indeed, these are the mempers who did not enter thier birthday when registered. how can i make it real one that displays on;y the true birthdays??

regards

firas 12-31-2003 08:52 PM

anybody???

Darnell 0216 12-31-2003 09:34 PM

The problem you're encountering is most likely from people with birthdays before Dec 31, 1969. This is when the Date format used by vB starts and therefore any day before that is automatically stored as Dec 31, 1969. Your best bet is to disable showing birthdays for today. Now if what you're saying is true and these people never entered a birthday, for some reason it's being entered by default in the database which you will need to correct. The birthday table is only accessed once every 24 hours so there's no way that I know of to correct the problem.

Keith 01-01-2004 05:23 AM

There's a fix available for that over at VBulletin, Cary posted it. Worked for users with 2.2.5, 2.2.8, and 2.2.9 Backup your member.php file, rename it to something else for safe keeping. :)

Open up your member.php file.

Find the line:
Code:

$birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
Change it to:
Code:

$birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2])). ", $bday[0]";
Make the change, upload member.php and then refresh the user profile you're looking at. It will now appear with the proper year. Just installed this and it fixed the problem.


All times are GMT. The time now is 10:11 AM.

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.01152 seconds
  • Memory Usage 1,710KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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