Page Index Toggle Pages: 1
Topic Tools
Normal Topic [Standard] Since lastonline (Read 2,988 times)
Captain John
Ex Member


[Standard] Since lastonline
Mar 20th, 2010 at 6:42pm
Post Tools
don't think this is right ..... just now caught this here on Community forum (CVS)
see attachment
« Last Edit: Mar 25th, 2010 at 3:30am by »  

NewMember.jpg ( 19 KB | 122 Downloads )
NewMember.jpg
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Since lastonline
Reply #1 - Mar 20th, 2010 at 7:32pm
Post Tools
That was a long time a known issue. They never was login to Forum.

Calculate: 14688 days are 40 years = in year 1970

1970 is a issue
« Last Edit: Mar 20th, 2010 at 7:36pm by Jet Li »  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: [Standard] Since lastonline
Reply #2 - Jun 20th, 2010 at 4:24am
Post Tools
In Load.pl add highlighted:
Code
Select All
	if ($iamadmin || $iamgmod || $lastonlineinlink) {
		if(${$uid.$user}{'lastonline'}) {
			$lastonline = $date - ${$uid.$user}{'lastonline'};
			my $days  = int($lastonline / 86400);
			my $hours = sprintf("%02d", int(($lastonline - ($days * 86400)) / 3600));
			my $mins  = sprintf("%02d", int(($lastonline - ($days * 86400) - ($hours * 3600)) / 60));
			my $secs  = sprintf("%02d", ($lastonline - ($days * 86400) - ($hours * 3600) - ($mins * 60)));
			if (!$mins) {
				$lastonline = "00:00:$secs";
			} elsif (!$hours) {
				$lastonline = "00:$mins:$secs";
			} elsif (!$days) {
				$lastonline = "$hours:$mins:$secs";
			} else {
				$lastonline = "$days $maintxt{'11'} $hours:$mins:$secs";
			}
			$lastonline = qq~ title="$maintxt{'10'} $lastonline $maintxt{'12'}."~;
		} else {
			$lastonline = qq~ title="$maintxt{'13'}."~;
		}
	} 



And in Main.lng add:
Code
Select All
'13' => 'Has not logged in since registering', 

  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: [Standard] Since lastonline
Reply #3 - Jun 20th, 2010 at 7:14am
Post Tools
Thnx. Works. Smiley

New
cgi-bin/yabb2/Languages/English/Main.lng
cgi-bin/yabb2/Sources/Load.pl

in CVS/SVN.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top