YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Page Index Toggle Pages: 1
Topic Tools
 
[Standard] Since lastonline (Read 2,865 times)
 Mar 20th, 2010 at 6:42pm
There are no actions to perform.  
Captain John 
Ex Member


None
[Standard] Since lastonline
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 N/A »  
NewMember.jpg (19 KB | 120 )
NewMember.jpg
 
IP Logged  
 Reply #1 - Mar 20th, 2010 at 7:32pm
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: Since lastonline
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
WWW Jet Li 100000788351637  
IP Logged  
 Reply #2 - Jun 20th, 2010 at 4:24am
There are no actions to perform.  

Unilat 
Development Team
Theme Team
****
Offline
Posts: 1,047
Columbus Ohio, USA


None
Re: [Standard] Since lastonline
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', 

 
 
IP Logged  
 Reply #3 - Jun 20th, 2010 at 7:14am
There are no actions to perform.  

Jet Li 
Legacy Dev Team
Development Team
****
Offline
Posts: 6,588
Hong Kong


None
Re: [Standard] Since lastonline
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
WWW Jet Li 100000788351637  
IP Logged  
Page Index Toggle Pages: 1
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.