Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ### Activity Bar Hack ### Problz (Read 1035 times)
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
### Activity Bar Hack ### Problz
Jan 22nd, 2003 at 7:08am
Print Post  
I installed   Activity Bar Hack mod and abar mod for a couple of months and it works great until today when i post ,Yabb says Quote:
Untrapped Error:
Month '-1' out of range 0..11 at ./Sources/Load.pl line 434
but still can posted

and the code in load.pl is
Code
Select All
###/Exp Hack ###

### Activity Bar Hack ###
      my ($usermonth, $userday, $useryear, $day, $today, $days, $dif);
      ($usermonth, $userday, $useryear) = split(/\//, $userprofile{$user}->[14]);
      use Time::Local;
      my $day = 86400;
      $today = time();
      $usermonth--;
      my $days = timelocal(0,0,0,$userday,$usermonth,$useryear);
      $dif = int (($today - $days) / $day);
      if(!$dif) { $dif = 1; }

      $dif *= 1; # Change this number to whatever the average posts per day should be.

      if($userprofile{$user}->[6] eq $txt{'683'}) {
          $posts = $userprofile{$user}->[6];
          $userprofile{$user}->[6] = 1;
          $dif = 1;
      }
# Uncomment this to count negative posts as something other than negative.
# elsif ($posts < 0) {
#          $posts = $userprofile{$user}->[6];
#          $userprofile{$user}->[6] = 0;
#          $dif = 1;
#      }

      $avgpost{$user} = sprintf("%.2f", $userprofile{$user}->[6] / $dif * 100);
      if($avgpost{$user} >= 100) { $avgpost{$user} = qq~<img src="$imagesdir/full_abar.gif" width="104" height="6"><br>\nActivity: 100% ($userprofile{$user}->[6]/$userprofile{$user}->[6])~; } else {

          $fill_bar = int($avgpost{$user});
          if($fill_bar){$fill_bar = qq~<img src="$imagesdir/fill_abar.gif" width="$fill_bar" height="6">~;} else {$fill_bar = "";}

          $empty_bar = 100 - $avgpost{$user};
          if($empty_bar){$empty_bar = qq~<img src="$imagesdir/empty_abar.gif" width="$empty_bar" height="6">~;} else {$empty_bar = ""; }

          $avgpost{$user} = qq~<img src="$imagesdir/l_abar.gif" width="2" height="6">$fill_bar$empty_bar<img src="$imagesdir/r_abar.gif" width="3" height="6"><br>\nActivity: $avgpost{$user}% ($userprofile{$user}->[6]/$dif)~;
      }
      $avgpost{$user} .= '<!-- Activity Bar Hack by Michael (mrtorrent@yahoo.com) -->';
      $userprofile{$user}->[6] = $posts;
      ###/Activity Bar Hack ### 



and line 434 is
Code
Select All
my $days = timelocal(0,0,0,$userday,$usermonth,$useryear); 



What 's going wrong.
i do nothing with load.pl and sub.pl file for at least 3 week
Any help really be appreciate Grin
« Last Edit: Jan 22nd, 2003 at 8:15am by Jake »  

   
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: ### Activity Bar Hack ### Problz
Reply #1 - Jan 22nd, 2003 at 8:12am
Print Post  
More info: untrapped error occured in some thread but still can be posted normally

2 Days ago i just installed whispermod3 but im not sure this is the cause or not,some part of this mod changed the code in Post.pl Angry
« Last Edit: Jan 22nd, 2003 at 3:28pm by Jake »  

   
Back to top
 
IP Logged
 
Eagle_f90
God Member
*****
Offline


For those with wings,
fly to your dreams.

Posts: 926
Location: Derry
Joined: Mar 7th, 2002
Gender: Male
Re: ### Activity Bar Hack ### Problz
Reply #2 - Jan 22nd, 2003 at 8:21am
Print Post  
Try uninstalling the wisper mod and then see if it happens again. If it does it is not the wisper mod if it stops there is an issue in the wisper mod.
  

For those with wings, fly to your dreams

Dreams are what we find at the end of reality, your reality if what you find at the end of your dreams.

Back to top
WWW  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: ### Activity Bar Hack ### Problz
Reply #3 - Jan 22nd, 2003 at 11:19am
Print Post  
After i uninstalled whispermod it still happened. I'm so wondering why occurring with only specific thread not all of the threads.
Any idea ???
  

   
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: ### Activity Bar Hack ### Problz
Reply #4 - Jan 22nd, 2003 at 12:59pm
Print Post  
Sorry sorry I know the really cause it is not from great mod by Michael  Activity Bar Hack

But it exactly came from whisper mod itself

Please lock this topic

I've posted already at  HERE
« Last Edit: Jan 22nd, 2003 at 3:30pm by Jake »  

   
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint