Page Index Toggle Pages: 1 [2] 3 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Advanced Post Stats (Read 22241 times)
Kavok
Full Member
***
Offline


Faith of yee little

Posts: 101
Location: USA, Ohio
Joined: May 12th, 2003
Re: Advanced Post Stats v1.1
Reply #15 - May 29th, 2003 at 3:04am
Print Post  
You were right, for some reason the files hadnt been uploaded  Lips Sealed
  
Back to top
 
IP Logged
 
SittingDuck
Full Member
***
Offline


I'm so l33t...it |-|UR7$
!!!!

Posts: 127
Location: Toronto
Joined: May 5th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #16 - May 29th, 2003 at 1:28pm
Print Post  
@Micheal
Figured out a workaround.  Karma has to be installed first and then the Advanced stats will go in properly. 

@Outlaw
I have a smiliar issue on my board.  But one of my members has admin privaleges and he was messing with his total posts.  He put in the number 3,000 and it grew from there.  So that could mess up the statistics a wee bit...

3034 Total Posts
374.11 % of all forum posts
84.28 posts per day

He just wanted to make himself look bigger than he really is....But don't tell him I said that...lol   Wink
  

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
- Albert Einstein
Back to top
WWW  
IP Logged
 
ReD CeLL
New Member
*
Offline


Party-foto.net

Posts: 49
Location: Leeuwarden
Joined: May 6th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #17 - May 29th, 2003 at 5:18pm
Print Post  
Quote:
Either your calcdifference sub in Subs.pl doesn't work as it is supposed to (maybe changed by a mod?) or the date is set wrong on your server.

It isn't my sub calcdifference cause it's still the same as in the original Subs.pl file. and the time & date on my server are correct, so that means, no posts per day for me. Cry Cry Very strange
  
Back to top
WWW  
IP Logged
 
Outlaw
Full Member
***
Offline


I love YaBB 1G - SP1.2!

Posts: 191
Location: Essex County
Joined: Apr 9th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #18 - May 29th, 2003 at 5:45pm
Print Post  
OK... got it

I think it WAS the post count like you said Duck.
Appreciate your help.

  
Back to top
 
IP Logged
 
SittingDuck
Full Member
***
Offline


I'm so l33t...it |-|UR7$
!!!!

Posts: 127
Location: Toronto
Joined: May 5th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #19 - May 29th, 2003 at 7:09pm
Print Post  
@ReD CeLL
Do ANY of the stats work?  Or just the posts per day isn't working?  Try rebuilding the member list (Last resort) or putting a date in the Forum Start Date field in Admin Preferences and settings to two days ago...Hey, it may not be perfect, but you should be able to isolate if it's an issue with the mod, or something else that is happening...If posts are calculated for the last two days, then it might give you some indication of what's happening...

My .02
  

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
- Albert Einstein
Back to top
WWW  
IP Logged
 
ReD CeLL
New Member
*
Offline


Party-foto.net

Posts: 49
Location: Leeuwarden
Joined: May 6th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #20 - May 29th, 2003 at 9:43pm
Print Post  
@SittingDuck, thanks for your help, but I tried both of your options and it still isn't working, it's only the posts per day what won't work, the other two stats are working fine. But when I rebuilded the memberlist, I was wondering if it's normal that I (admin) is placed beyond the latest member, so that I am, regarding to the memberlist, the latest member, or is this normal??
  
Back to top
WWW  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #21 - May 30th, 2003 at 12:14pm
Print Post  
I've installed this mod
Modify a little bit move the stat to show be low the avatar.

And my board also installed userpost stat mod that

I quite wondering why the average post per day of the two mod is not the same.

<<see action>>
Below the avatar is the output of this mod.
Behind the no.of post in the user info is the output of the user stat mod.

Why it is not equal?
both mod have the basic calculation
average post per day=total user post/time span from registration ???
  

   
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Advanced Post Stats v1.1
Reply #22 - May 30th, 2003 at 12:33pm
Print Post  
Code
Select All
	$date1 = $memsettings[14];
	$date2 = $date;
	&calcdifference;
	$result = $result + 1;
 


Note the +1 thing at the end. I added this because if a user just registered and did a few posts, it would still display 0 if it's still the day he registered on.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #23 - May 30th, 2003 at 12:41pm
Print Post  
Thanks @ Michael

This is a tip. Grin
  

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



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #24 - May 30th, 2003 at 12:50pm
Print Post  
@ Michael
please take a look whatis the differrence btw this and user post stat
Code
Select All
### USER POSTING STATS ###
	fopen(FILE, "$memberdir/$INFO{'username'}.mh");
	@mhfile = <FILE>;
	fclose(FILE);
	$subjectlast = $mhfile[1];
	$icon = $mhfile[2];
	$threadnum = $mhfile[3];
	$startnum = $mhfile[4];
	$currentboard = $mhfile[5];
	if($icon ne '') {
		$iconimg = qq~<img src="$imagesdir/$icon.gif">~;
	} else {
		$iconimg = "";
	}
	if($memsettings[14] ne '')  {
	($usermonth, $userday, $useryear) = split(/\//, $memsettings[14]);
	}
	if($memsettings[14] eq "Start of these Forums ;-)") {
		$usermonth = "01";
		$userday = "01";
		$useryear = "101";
	}
	$|++;

	use Time::Local;

	my $day = 24 *   60 *    60;

	($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
	$year = $year + 1900;
	$usermonth = $usermonth - 1;
	my $today = timelocal(0,0,12,$mday,$mon,$year);
	my $days = timelocal(0,0,12,$userday,$usermonth,$useryear);
	$dif = int ( ($days - $today)/$day ), "\n";
	$dif = $dif * -1;
	[highlight size=2 color=green background=]if($dif == '0') {
		$dif = '1';
	}
	$avpost = $memsettings[6] / $dif;
	$avpost = sprintf("%.2f", $avpost);[/highlight]
	### END USER POSTING STATS ### 

  

   
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Advanced Post Stats v1.1
Reply #25 - May 30th, 2003 at 2:47pm
Print Post  
The difference is that my code uses yabb's calcdifference sub. your code does use its own code to calculate the date difference.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #26 - May 30th, 2003 at 2:58pm
Print Post  
In my opinion whatever you use to calculate the diferrence or time span from registration it should be equal,so simple

time span=today-day of registration

SEE THIS

why the average post of the two mods is equal?

And why other users are not equal?
  

   
Back to top
 
IP Logged
 
ReD CeLL
New Member
*
Offline


Party-foto.net

Posts: 49
Location: Leeuwarden
Joined: May 6th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #27 - May 30th, 2003 at 3:52pm
Print Post  
Quote:
I've installed this mod
Modify a little bit move the stat to show be low the avatar.


@Jake, thanks for the tip, I just did the same thing, with a horizontal line between. I like it much more
  
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Advanced Post Stats v1.1
Reply #28 - May 30th, 2003 at 7:03pm
Print Post  
@jake: I don't see any reason why I shouldn't use YaBB's buildin subroutines, everything else is a waste of space, speed and is no good style.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Michael Griffin
God Member
*****
Offline


Black Panther's are cool!!!

Posts: 1337
Location: Crossville
Joined: Mar 30th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #29 - May 31st, 2003 at 9:19pm
Print Post  
Hello Michael,

With your mod "Advanced Post Stats"... I always get this saying:

Untrapped Error:
Illegal division by zero at ./Sources/Profile.pl line 1505.

It happens when I install your mod and when I uninstall it, everythings normal again... Any thoughts ??? I really like the idea behind this mod Wink Thank you

Panther
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 
Send TopicPrint