Page Index Toggle Pages: 1 2 3 [4]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Advanced Post Stats (Read 22242 times)
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 #45 - Jun 12th, 2003 at 7:29pm
Print Post  
Actually Mike, your mod works fineModeration Update is the culprit here....
  
Back to top
AIM  
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #46 - Jun 13th, 2003 at 11:38am
Print Post  
I've keeped an eye closely on the working of this mod and i've no idea till now why for some users it works fine and why some users it works improperly
(might be conflict with some mods on my own forum)
Especially the post per day

<<This one>>is the example that the post per day is incorrect.
[below the avatar is the output of this mod]

Please notice the member info at the upper part of the profile page of this member
Display Name:  XXXXXX
Member No.:  355
Total posts :  54  (0.40 posts per day)
Position :  Junior Member
Date of Registration :  28.01.03 at 18:58:15  (136 days)


*0.40 posts per day is correct calculated by user post stat mod
136 days is the time span from registration day calculated by user post stat mod
*0.12 posts per day is the result from this mod



<<This one>> works properly all [post per day,total posts,percentage of posts]

  

   
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 #47 - Jun 13th, 2003 at 5:51pm
Print Post  
I know the cause all my users have invalid registration date so the time span was calculated from the date of forum start.

But i don't know why all users don't have a valid registration date.


Any idea??

Code
Select All
if ($forumstartdate !~ /^\d\d\/\d\d\/\d\d [highlight size=5 color=red background=]at[/highlight] \d\d\:\d\d\:\d\d$/ig) {
		$forumstartdate = "10/11/00 at 00:00:00"; 



there is the hard coded in the mod so all users have invalid registration date.
  

   
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 #48 - Jun 13th, 2003 at 6:13pm
Print Post  
Yes! i've fixed it an it works fine now

Replace

Code
Select All
if ($forumstartdate !~ /^\d\d\/\d\d\/\d\d at \d\d\:\d\d\:\d\d$/ig) {
		$forumstartdate = "10/11/00 at 00:00:00";
	}

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

	if ($memsettings[14] !~ /^\d\d\/\d\d\/\d\d at \d\d\:\d\d\:\d\d$/ig) {
		$memsettings[14] = $forumstartdate; 



with

Code
Select All
if ($forumstartdate !~ /^\d\d\/\d\d\/\d\d $txt{'107'} \d\d\:\d\d\:\d\d$/ig) {
		$forumstartdate = "10/11/00 $txt{'107'} 00:00:00";
	}

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

	if ($memsettings[14] !~ /^\d\d\/\d\d\/\d\d $txt{'107'} \d\d\:\d\d\:\d\d$/ig) {
		$memsettings[14] = $forumstartdate; 



Notice i only replaced "at" with "$txt{'107'}"
  

   
Back to top
 
IP Logged
 
William
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Aug 19th, 2002
Re: Advanced Post Stats v1.1
Reply #49 - Jun 14th, 2003 at 7:18am
Print Post  
Great mod. Is it possible display number per post today added in this mod?  Cheesy
  
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 #50 - Jun 15th, 2003 at 1:58am
Print Post  
i've released v1.3 which includes Jake's fix.

@William: what exactly do you mean?
  

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


Faith of yee little

Posts: 101
Location: USA, Ohio
Joined: May 12th, 2003
Re: Advanced Post Stats v1.1
Reply #51 - Jun 15th, 2003 at 2:38am
Print Post  
Michael: How about an average words/letters per post?  Grin
  
Back to top
 
IP Logged
 
William
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Aug 19th, 2002
Re: Advanced Post Stats v1.1
Reply #52 - Jun 15th, 2003 at 6:02am
Print Post  
Quote:
i've released v1.3 which includes Jake's fix.

@William: what exactly do you mean?


I means count the user how many post for one day and display on the profile.   8)
  
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 #53 - Jun 15th, 2003 at 11:39am
Print Post  
There are tons of interesting stats but I only picked a very few of them for the mod as something like an "average words/letters per post" or a "posts today" statistic take really _A LOT_ more server resources. That's because of YaBB's flat file structure. You have to open ALL message files and go through them to get the results. With a SQL database, that would be much easier.
  

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


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #54 - Jun 17th, 2003 at 8:36pm
Print Post  
Found a very small bug/typo in this mod:

In step 3 (Profile.pl) it says:
Code
Select All
        <td valign-"top"><font size=2><b>$txt{'86'}: </b></font></td>
 


should be:
Code
Select All
        <td valign="top"><font size=2><b>$txt{'86'}: </b></font></td>
 


(the valign- should be valign=)
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
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 #55 - Jun 17th, 2003 at 11:14pm
Print Post  
thx for letting me know, version 1.3a corrects this problem Wink
  

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


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Advanced Post Stats v1.1
Reply #56 - Jun 21st, 2003 at 4:01am
Print Post  
Nice work Michael!

Works on my SP 1.1 board without modification in case you were wondering.  Wink
  
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
Reply #57 - Mar 16th, 2005 at 11:43pm
Print Post  
updated mod to v1.4. There was a problem with the calculation of % of all posts if private boards exist. For details, please check http://www.boardmod.org/yabb/YaBB.pl?board=newssp14;action=display;num=110341553...
  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 
Send TopicPrint