Welcome, Guest. Please Login or Register.
August 27, 2025, 03:01:38 AM
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  |  Inactive Members?? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Inactive Members??  (Read 677 times)
thedeeve
Jr. Member
**
Posts: 83


The Diva Is In!

ICQ - 148969237thedeeve330@hotmail.com WWW
Inactive Members??
« on: March 22, 2002, 03:27:28 PM »
Reply with quote

I recently attempted to view all inactive members for the last 30 days. The function didn't work. I went through all of my profiles and did it by hand, but would greatly appreciate a fix for this for future reference. This is the error message I get when I attempt to view inactive members:

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

Thanks to anyone who can help!!  ;)
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Inactive Members??
« Reply #1 on: March 22, 2002, 03:56:55 PM »
Reply with quote

Add this to your Subs.php file or upgrade to 1.1.0 :)

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

thedeeve
Jr. Member
**
Posts: 83


The Diva Is In!

ICQ - 148969237thedeeve330@hotmail.com WWW
Re:Inactive Members??
« Reply #2 on: March 22, 2002, 04:18:24 PM »
Reply with quote

TY!  :D  One more question... I'm not well versed in php. Is there a specific spot on the page where I should add that code?  :-[
« Last Edit: March 22, 2002, 04:21:53 PM by thedeeve » Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Inactive Members??
« Reply #3 on: March 22, 2002, 04:55:08 PM »
Reply with quote

no, but a good place is behind the ClickLog func!
function ClickLog (){
   global $HTTP_REFERER,$HTTP_USER_AGENT,$REMOTE_ADDR,$REQUEST_URI,$ClickLogTime,$db_prefix;
   $logTime = time();
   $threshold = time() - ($ClickLogTime*60);
   $request = mysql_query ("INSERT INTO {$db_prefix}log_clicks (ip,logTime,agent,fromUrl,toUrl) VALUES ('$REMOTE_ADDR',$logTime,'$HTTP_USER_AGENT','$HTTP_REFERER','$REQUEST_URI')");
   $request = mysql_query ("DELETE FROM {$db_prefix}log_clicks WHERE logTime<$threshold");
}

here add the code!

mediman
Logged

mainComm Dev Team
thedeeve
Jr. Member
**
Posts: 83


The Diva Is In!

ICQ - 148969237thedeeve330@hotmail.com WWW
Re:Inactive Members??
« Reply #4 on: March 22, 2002, 05:02:39 PM »
Reply with quote

Muchas Gracias!  :D
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:Inactive Members??
« Reply #5 on: March 22, 2002, 05:08:12 PM »
Reply with quote

de nada ;)
Logged

mainComm Dev Team
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Inactive Members?? « 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 16 queries.