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


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Advanced Post Stats
May 28th, 2003 at 3:17pm
Print Post  
This mod adds some extra posting stats to every users profile page.

Example:
696 total posts
0.88% of all forum posts
2.06 posts per day



Take a look at the profiles on this board for more examples.

Of course all the values will change depending on the total posts in your forum, and by the user.
After installation, you can set your forum start date in your forum preferences. That date is used when a user doesn't have a valid registration date.

Version History:
1.4: % of all forum posts was not properly calculated if private boards exist. Now posts from all boards (also private boards) will be taken into account when calculating. This backdraw had to be taken to prevent serious slowdown when displaying profiles.
1.3a: fixed html typo in viewprofile
1.3: fixed "number of days registered"-calculation on non-english boards
1.2: fixed "division by zero" error if no posts on the board yet
1.1: added admin option for forum start date
« Last Edit: Mar 17th, 2005 at 11:51pm by Administrator »  

advanced_post_stats_v13a.mod (Attachment deleted)

The Administrator.
Back to top
WWW  
IP Logged
 
al
Junior Member
**
Offline


#!/usr/bin/perl

Posts: 63
Joined: Apr 16th, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #1 - May 28th, 2003 at 4:35pm
Print Post  
How about this?

Board1 - xx%
...................
Board8 - yy%
Deleted - zz%

???
  
Back to top
WWWICQ  
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 #2 - May 28th, 2003 at 5:03pm
Print Post  
I've been curious about this ever since I saw it in the members section here....And I can finally use it!  However, it doesn't appear to be compatible with KarmaV11B2 by Iceberg...  Sad
  

"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
 
tenl
Full Member
***
Offline



Posts: 174
Location: The Matrix
Joined: Jan 31st, 2003
Gender: Male
Re: Advanced Post Stats v1.1
Reply #3 - May 28th, 2003 at 8:58pm
Print Post  
Cool!
Installing Right Now...
  
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 #4 - May 28th, 2003 at 10:59pm
Print Post  
@Michael Prager

Thanks for this great mod. But I have a little problem. All the users on my board have got a valid reg dates but for some strange reason the "posts per day" is set to zero on every members profile pages. Have you got an idea what it can be??
  
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 #5 - May 29th, 2003 at 1:32am
Print Post  
Name:  Admin
Posts:  21 Total Posts
150.00 % of all forum posts
0.40 posts per day
Position:  Administrator
Date Registered:  04/06/03 at 12:00am


150% ?? Holy cow that's a lot...LOL

Seriously though, what can be causing this obvious error?
  
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 #6 - May 29th, 2003 at 1:47am
Print Post  
SittingDuck wrote on May 28th, 2003 at 5:03pm:
I've been curious about this ever since I saw it in the members section here....And I can finally use it!  However, it doesn't appear to be compatible with KarmaV11B2 by Iceberg...  Sad

A manual installation will propably do the trick.

Quote:
Thanks for this great mod. But I have a little problem. All the users on my board have got a valid reg dates but for some strange reason the "posts per day" is set to zero on every members profile pages. Have you got an idea what it can be??
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.

This piece of code generates the postsperday:
Code
Select All
	$date1 = $memsettings[14];
	$date2 = $date;
	&calcdifference;
	$result = $result + 1;
	if ($result > 0) {
		$postsperday = sprintf("%.2f", $memsettings[6] / $result);
	} else {
		$postsperday = 0;
	} 



Quote:
Name:  Admin 
Posts:  21 Total Posts
150.00 % of all forum posts
0.40 posts per day 
Position:  Administrator 
Date Registered:  04/06/03 at 12:00am 


150% ?? Holy cow that's a lot...LOL

Seriously though, what can be causing this obvious error?
Could have several reasons. For example if you copied your admin account from an old YaBB, your admin might still have his old post count although the new board might have no posts at all yet. Or you have some private boards on your forum and view your admin profile as a guest. Guests don't have access to private areas and thereby, the private boards are left out when the total posts of the forum are calculated.
In the end it all results in the same: the total posts count is smaller then the post count of your user account.
  

The Administrator.
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 #7 - May 29th, 2003 at 1:51am
Print Post  
I've never had a previous board to copy from.
I have no private forums.
The stats above were for admin, and viewed as admin logged in.


  
Back to top
 
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 #8 - May 29th, 2003 at 1:57am
Print Post  
Name:  Admin
Posts:  22 Total Posts
2200.00 % of all forum posts
0.42 posts per day
Position:  Administrator
Date Registered:  04/06/03 at 12:00am
  
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 #9 - May 29th, 2003 at 1:59am
Print Post  
You could add some debug information to see how the total post count looks like. Open your Profile.pl and look for:

Code
Select All
	  <td valign-"top"><font size=2><b>$txt{'86'}: </b></font></td>
	<td><font size=2><b>$memsettings[6]</b> $profstatxt{'3'}<br>
	  $postspercentage $profstatxt{'1'}<br>
	  $postsperday $profstatxt{'2'}</font></td>
 


and replace it with
Code
Select All
	  <td valign-"top"><font size=2><b>$txt{'86'}: </b></font></td>
	<td><font size=2><b>$memsettings[6]</b> $profstatxt{'3'}<br>
	  $postspercentage $profstatxt{'1'}<br>
	  $postsperday $profstatxt{'2'}<br>
	  DEBUG: total post count: $totalm</font></td>
 


  

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 #10 - May 29th, 2003 at 2:00am
Print Post  
My profile doesnt display anything except for what it normally would, I have the following installed:

YaBB 1 Gold - SP 1.3\addsmilies2_sp13.mod
YaBB 1 Gold - SP 1.3\RefererControl_SP1.3.mod
YaBB 1 Gold - SP 1.3\StickyGroup.mod
YaBB 1 Gold - SP 1.3\rebuild_index_SP13.mod
YaBB 1 Gold - SP 1.3\Polls_3_SP13.mod
YaBB 1 Gold - SP 1.3\yams_403_sp13.mod
YaBB 1 Gold - SP 1.3\yams_403_profil_add_ip.mod
YaBB 1 Gold - SP 1.3\MemberMap_sp13.mod
YaBB 1 Gold - SP 1.3\yams_403_map_addon.mod
YaBB 1 Gold - SP 1.3\yams_403_buddy_addon.mod
YaBB 1 Gold - SP 1.3\mbc2_sp13.mod
YaBB 1 Gold - SP 1.3\extended_profiles_v12_sp13_YaMS-compatible.mod
YaBB 1 Gold - SP 1.3\menuitems_v_1_5_SP_1_3.mod
YaBB 1 Gold - SP 1.3\User_Mood_and_statu_Mod_extendedprofile.mod
YaBB 1 Gold - SP 1.3\biography_sp11_v16_new.mod
YaBB 1 Gold - SP 1.3\better_sig_in_profile12.mod
YaBB 1 Gold - SP 1.3\img_tag_bugfix_v11.mod
YaBB 1 Gold - SP 1.3\quick_reply_box_13.mod
YaBB 1 Gold - SP 1.3\greetplus_v_1_0a.mod
YaBB 1 Gold - SP 1.3\smart_dates_sp13.mod
YaBB 1 Gold - SP 1.3\user_templates.mod
YaBB 1 Gold - SP 1.3\mbco2_polls_patch.mod
YaBB 1 Gold - SP 1.3\recent_users_list.mod
YaBB 1 Gold - SP 1.3\advanced_post_stats_v11.mod
  
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 #11 - May 29th, 2003 at 2:01am
Print Post  
Then you propably didn't upload all modified files.
  

The Administrator.
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 #12 - May 29th, 2003 at 2:04am
Print Post  
Just re-uploaded:

English.lng
Profile.pl
AdminEdit.pl

Still the same thing.
  
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 #13 - May 29th, 2003 at 2:13am
Print Post  
Even is the calculations *should* fail for some reason, it still would at least display the text "% of all forum posts" and " posts per day" text. Sorry but I can only assume that something went wrong at your end Undecided
  

The Administrator.
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 #14 - May 29th, 2003 at 2:31am
Print Post  
I will try yet again to install this.
I can't see what I am doing that can cause this particular type of error, but I WILL try it again...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 4
Send TopicPrint