Welcome, Guest. Please Login or Register.
August 26, 2025, 10:51:22 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  view inactive members error in 1.0.0 board « previous next »
Pages: [1] Reply Ignore Print
Author Topic: view inactive members error in 1.0.0 board  (Read 623 times)
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
view inactive members error in 1.0.0 board
« on: March 15, 2002, 10:24:15 PM »
Reply with quote

When I try to view the inactive members in the admin menu this error appears:

Fatal error: Call to undefined function: jeffsdatediff() in /home/.../Sources/Admin.php on line 424
 
Logged

Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:view inactive members error in 1.0.0 board
« Reply #1 on: March 16, 2002, 02:37:30 PM »
Reply with quote

Just add this to you Subs.php file:

function jeffsdatediff($now, $old)
{

  $DIS = $now - $old;   // Diff In Secs
  $secs = $DIS % 60; // modulo
  $DIS -= $secs;
  $days = floor($DIS / (24*60*60));
  $DIS -= $days * (24*60*60);
  $hours = floor($DIS / (60*60));
  $DIS -= $hours * (60*60);
  $mins = floor($DIS / 60);
  $DIS -= $mins * 60;
  //$diffstr= "$days Days, $hours Hours, $mins Minutes, $secs Seconds";
  return $days;
}
Logged

andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:view inactive members error in 1.0.0 board
« Reply #2 on: March 16, 2002, 05:42:15 PM »
Reply with quote

Works fine now. Thanks.
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  view inactive members error in 1.0.0 board « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.028 seconds with 19 queries.