Page Index Toggle Pages: 1
Topic Tools
Normal Topic Birthday input boxes bug (Read 1,471 times)
MF-B
Development Team
****
Offline



Posts: 2,405
Location: Moscow, Russia

YaBB 2.4
Re: Birthday input boxes bug
Reply #1 - Mar 3rd, 2010 at 7:07pm
Post Tools
New Profile.pl in CVS
  

Stand!
Back to top
IP Logged
 
Carsten
Ex Member


Birthday input boxes bug
Mar 2nd, 2010 at 10:56pm
Post Tools
Day/Month order for birthday input boxes does not change according to the members selected time format if default format is one with day before month.

The fix:

In Profile.pl find
Code
Select All
	if    (${$uid.$user}{'timeselect'} == 6) { $timeorder = 1; }
	elsif (${$uid.$user}{'timeselect'} == 3) { $timeorder = 1; }
	elsif (${$uid.$user}{'timeselect'} == 2) { $timeorder = 1; }
	elsif ($timeselected == 6) { $timeorder = 1; }
	elsif ($timeselected == 3) { $timeorder = 1; }
	elsif ($timeselected == 2) { $timeorder = 1; } 


and replace it with
Code
Select All
	if(${$uid.$user}{'timeselect'}) {
		if    (${$uid.$user}{'timeselect'} == 6) { $timeorder = 1; }
		elsif (${$uid.$user}{'timeselect'} == 3) { $timeorder = 1; }
		elsif (${$uid.$user}{'timeselect'} == 2) { $timeorder = 1; }
	}
	else {
		if ($timeselected == 6) { $timeorder = 1; }
		elsif ($timeselected == 3) { $timeorder = 1; }
		elsif ($timeselected == 2) { $timeorder = 1; }
	} 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top