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


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Advanced Post Stats v1.1
Reply #30 - May 31st, 2003 at 11:19pm
Print Post  
That's because you don't have any posts on your board yet Wink
I'll fix that in the mod, hang on...
  

The Administrator.
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 #31 - May 31st, 2003 at 11:29pm
Print Post  
There you go, v1.2 doesn't crash if no posts have been made yet Smiley
  

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 #32 - Jun 1st, 2003 at 2:57am
Print Post  
O' ok... Thank you Wink

Panther
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
tenl
Full Member
***
Offline



Posts: 174
Location: The Matrix
Joined: Jan 31st, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #33 - Jun 1st, 2003 at 4:24am
Print Post  
HI!

Great Mod. Installed fine and working great.

I do have one question though. Are you only supposed to see the stats in the user's profile. How about under his contact information in every post that he makes. ???
  
Back to top
 
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 #34 - Jun 1st, 2003 at 5:04am
Print Post  
@tenl, Dont you think, that that will too much ??? I mean say if that poster has 5 or 10 replies and say that some other person has 5 or 10 and another... I dont know, I think that will be to much... too crowded if you ask me Undecided

Panthre
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
Jax
Junior Member
**
Offline


Got the cover sheet for
your TPS reports?

Posts: 77
Location: Anaheim
Joined: Oct 4th, 2001
Gender: Male
Re: Advanced Post Stats v1.1
Reply #35 - Jun 1st, 2003 at 7:36pm
Print Post  
Excellent mod Michael! Kudos and job well done!
  

We're putting cover sheets on our TPS reports.
Back to top
WWWICQ  
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 #36 - Jun 2nd, 2003 at 3:56am
Print Post  
Mike,

Also, can you please post just the updated code for us unfortunates who have manually coded?

Thanks.
  
Back to top
 
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 #37 - Jun 2nd, 2003 at 4:20am
Print Post  
Well, I have over 70 mods installed and it installs fine with nothing (that I can see) conflicting...

Panther
  

Michael T Griffin
Back to top
YIM  
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 #38 - Jun 2nd, 2003 at 11:42am
Print Post  
In Profile.pl, I had replaced

Code
Select All
		$postspercentage = sprintf("%.2f", $memsettings[6] / $totalm * 100); 



with

Code
Select All
	if ($totalm > 0) {
		$postspercentage = sprintf("%.2f", $memsettings[6] / $totalm * 100);
	} else {
		$postspercentage = sprintf("%.2f", 0);
	}
 

  

The Administrator.
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 #39 - Jun 2nd, 2003 at 4:39pm
Print Post  
Michael,

I'm still struggling with the Post Per Day part, when I use this
Code
Select All
$postsperday = sprintf("%.2f", $memsettings[6] / $result); 


instead of this
Code
Select All
if ($result > 0) {
            $postsperday = sprintf("%.2f", $memsettings[6] / $result);
      } else {
            $postsperday = 0;
      } 


It gives me a result below zero. I know it's because the ($result > 0) is missing, but does this give you (or anyone else who's reading this) an indication what is wrong?. I'm still sad it won't display the proper amount. Cry
  
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 #40 - Jun 2nd, 2003 at 11:29pm
Print Post  
Ok let's try to add some debug information and see what's going on there. Open your Profile.pl, look for

Code
Select All
	  $postsperday $profstatxt{'2'}</font></td> 



and replace it with:

Code
Select All
	  $postsperday $profstatxt{'2'}<br>
	  Date user registered on: $memsettings[14]<br>
	  Forum start date: $date<br>
	  Days in between: $result</font></td> 



Then post where how the output looks like.
  

The Administrator.
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 #41 - Jun 3rd, 2003 at 4:49pm
Print Post  
Michael,

Thanks for your help, when I used your code in Profile.pl, and then checked the results, I saw the problem. The reg. date for each user was set wrong. I think it's because I use a Dutch language-pack so instead of using the word "at" it says "om" in every members .dat file, and also the month and day where switched(??). When I changed it "om" in every file manually to "at", and changed the month & day everything worked fine. I had never found it without your help, so thanks again. Cheesy

I also keep using the $result part to display even more stats. Grin Thanks Grin
  
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 #42 - Jun 4th, 2003 at 12:19am
Print Post  
Glad I could help Smiley
  

The Administrator.
Back to top
WWW  
IP Logged
 
BlindWolf8
Full Member
***
Offline


What's up with these CRAZY
avatars?

Posts: 191
Location: USA
Joined: Jul 8th, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #43 - Jun 12th, 2003 at 2:29am
Print Post  
Just something I noticed:

Let's say I make 8 posts I make on my board,  Then I make another one.  That's 9 posts Wink.  NOW, your mod would say 9 total posts, and my average posts per day would be 9.  BUT: let's say I DELETE a post?  The values would STILL be 9, even though I would have 8 posts....

Wow, I made it sound a lot more complex than it actually is... Roll Eyes
  
Back to top
AIM  
IP Logged
 
BlindWolf8
Full Member
***
Offline


What's up with these CRAZY
avatars?

Posts: 191
Location: USA
Joined: Jul 8th, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #44 - Jun 12th, 2003 at 2:31am
Print Post  
AHA!  I ALSO noticed that THIS PROBLEM makes my percentage go ABOVE 100%! (sound familiar to some people who've been posting on this thread?) Shocked Shocked
  
Back to top
AIM  
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 
Send TopicPrint