Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: karlbenson on February 23, 2008, 08:37:44 PM

Title: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 23, 2008, 08:37:44 PM

TOP 10 POSTERS TODAY AND THIS WEEK STATS v1.1
By Karl Benson (http://custom.simplemachines.org/mods/index.php?action=profile;u=63186)

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1105) | Support Topic (http://www.simplemachines.org/community/index.php?topic=224551.0) | Demo (http://www.adrevenueshare.com/index.php?action=stats) | Donate (http://www.adrevenueshare.com/donate)

Compatibility
For SMF 1.1.x and SMF 2.0 Beta 2/2.1 (and newer)

Introduction
Adds the top 10 posters today and this week to your Stats page (action=stats)

Features
o Adds Top 10 Posters Today
- Based on Server time including your forum time offset
o Adds Top 10 Posters This Week
- Starts on Sunday
- Based on Server time including your forum time offset
o Supports Languages
- English/English-utf8
- English_British/English_British-utf8
- Turkish/Turkish-utf8 (Thanks to eslao)
I welcome translations for other languages. Please post the translated language strings in the Support Topic.

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Simply install the package to install on the SMF Default Core Theme ONLY.

A Manual edit will be required for ALL themes (other than SMF Default Core Theme) which have a custom Stats.template.php

If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.

Useful Links
SMF Package Parser (http://www.adrevenueshare.com/parser)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

Donate
Has this modification helped you? Support the developer by Donating (http://www.adrevenueshare.com/donate)

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 22nd February 2008
o Initial release
1.1 - 29th February 2008
o Fixed (hopefully!) some issues with stats not reporting
o Added Turkish/Turkish-utf8 support (Thanks to eslao)
Title: Re: Top 10 Posters Today And This Week Stats
Post by: eslao on February 23, 2008, 08:54:18 PM
for Turkish/Türkçe
default/languages/Modifications.turkish.php
bul/find
?>
add before/üstüne ekle
$txt['top_posters_day'] = 'Günün En Çok Mesaj Atan 10 Üyesi';
$txt['top_posters_week'] = 'Haftanın En Çok Mesaj Atan 10 Üyesi';

Title: Re: Top 10 Posters Today And This Week Stats
Post by: ApplianceJunk on February 23, 2008, 09:01:57 PM
QuoteAdds the top 10 posters today and this week to your Stats page

This sounds cool.
We are having a contest on our forum. The tech that post the most in Feb. gets $20.00
This is a group of helpers (appliance repair technicians) that help answer questions on our site.
I have created a special group for these members called "Master Appliance Technicians"

Do you see were I am going with this? ;)

Could your mod be set up so I view top ten posters for the month for our special group?

Right now I use the Monthly Statistics on Profile mod.
http://custom.simplemachines.org/mods/index.php?mod=646 (http://custom.simplemachines.org/mods/index.php?mod=646)

It works great, but I have to view everyones profile to see were there post count is at for the month.

Title: Re: Top 10 Posters Today And This Week Stats
Post by: karlbenson on February 23, 2008, 09:20:08 PM
Nothing is impossible.  The code could potentially be modified to exclude/include by groups, or larger amounts of time.
Doing it over a month will probably be MORE of a performance hit due to large message volumes to count.

I can't provide support or help in customizing it though.

Title: Re: Top 10 Posters Today And This Week Stats
Post by: ApplianceJunk on February 23, 2008, 09:54:42 PM
ok, sounds good.
Works great on our site just as it is. :)

Thank you..
Title: Re: Top 10 Posters Today And This Week Stats
Post by: senyorito on February 24, 2008, 03:46:29 AM
Installation is fine but it seems a bug on my end.  On my test site, post doesn't count on Top 10 poster today and this week.  On my attached screenshot, noticed that my post in Top Posters is 28, while my name doesnt appear under Top 10 Posters Today, and Top 10 Posters This Week displays 25 posts only.

I'm using a custom theme but my theme doesn't have a custom Stats.template.php so there's no anything to be edited manually.
Title: Re: Top 10 Posters Today And This Week Stats
Post by: edi67 on February 24, 2008, 07:23:57 AM
Excellent work Karl let me try this was what i need :)
Title: Re: Top 10 Posters Today And This Week Stats
Post by: jackregan on February 24, 2008, 09:01:55 AM
Hello...

This looks a great mod, but I am having problems installing it on both the forums I run. Both are 1.1.4. One is heavily modified, the other not.

The installation is telling me that sources/stats.php fails

Can you advise?
Title: Re: Top 10 Posters Today And This Week Stats
Post by: karlbenson on February 24, 2008, 09:59:45 AM
@jackregan 
Manual installation.  Use a package parser to give you the edits.
http://www.adrevenueshare.com/parser

@senyorito
Have you posted any posts that DAY. Or that WEEK?
Whats the link to your forum?
Title: Re: Top 10 Posters Today And This Week Stats
Post by: Hoochie Coochie Man on February 24, 2008, 11:32:37 AM
Thank you very much Karl, works great!
Title: Re: Top 10 Posters Today And This Week Stats
Post by: senyorito on February 24, 2008, 11:49:10 AM
Quote from: karlbenson on February 24, 2008, 09:59:45 AM
@senyorito
Have you posted any posts that DAY. Or that WEEK?
Whats the link to your forum?

Yes bro karl.  I've made a test posts for 4 or 5 times I think to test your mod. 

My site is a test site.  Before I apply any mods to my live site, I test it to my test site first.  Here's the link of my test site bro...

http://pc-experts.isgreat.org/index.php?action=forum

Mind make some test bro karl?
Title: Re: Top 10 Posters Today And This Week Stats
Post by: karlbenson on February 24, 2008, 03:47:24 PM
I posted and then it counted me on the list.

Are there any errors in your error log?
Title: Re: Top 10 Posters Today And This Week Stats
Post by: D.S on February 24, 2008, 04:02:30 PM
it's working with me ..

thank u men for effort & keep up

best regards
Title: Re: Top 10 Posters Today And This Week Stats
Post by: senyorito on February 25, 2008, 12:33:12 AM
Quote from: karlbenson on February 24, 2008, 03:47:24 PM
I posted and then it counted me on the list.

Are there any errors in your error log?

Yeah bro, I saw 2 identical errors from your post I think.  Here's the error log...

8: Undefined index: description
File: /home/vol*/h*******.com/hp_*******/pc-experts.isgreat.org/htdocs/Themes/default/languages/Post.english.php (main sub template - eval?)
Line: 875


I checked on my Themes/default/languages/Post.english.php, it has 185 lines only.

Just a while ago, I've made my test post again and it is now displayed in Top 10 Posters This Week (I see yours and mine).  But Top 10 Posters Today is still blank.
Title: Re: Top 10 Posters Today And This Week Stats
Post by: shadow82x on February 25, 2008, 01:20:14 AM
Great mod Karlbenson. This one was long waited. ;) Works fine on SMF2.X
Title: Re: Top 10 Posters Today And This Week Stats
Post by: Hoochie Coochie Man on February 25, 2008, 03:23:51 AM
Karl, Mod is not working well.  ::)
I installed this mod yesterday. It showed up five members in "Top 10 posters this week!"

Everythigs ok  for now!

But today "Top 10 posters this week" modify (an equation) so that all the terms form an expression equal to zero.  :-\  Today no body posted in forum, and every two column are empty.

I thinks this is not right. It shouldn't be like that. That five members must still be there (Top 10 posters this week!)

If you don't any suggestion about that problem, I will remove this mod.

Thanks..
Best Regrats
Title: Re: Top 10 Posters Today And This Week Stats
Post by: senyorito on February 25, 2008, 05:29:54 AM
Quote from: Hoochie Coochie Man on February 25, 2008, 03:23:51 AM
Karl, Mod is not working well.  ::)
I installed this mod yesterday. It showed up five members in "Top 10 posters this week!"

Everythigs ok  for now!

But today "Top 10 posters this week" modify (an equation) so that all the terms form an expression equal to zero.  :-\  Today no body posted in forum, and every two column are empty.

I thinks this is not right. It shouldn't be like that. That five members must still be there (Top 10 posters this week!)

If you don't any suggestion about that problem, I will remove this mod.

Thanks..
Best Regrats

This is what exactly I'm encountering bro... you're not alone. :(
Title: Re: Top 10 Posters Today And This Week Stats
Post by: lookang on February 25, 2008, 08:49:39 AM
1.     Execute Modification     ./Sources/Stats.php     Test failed

how can i install it?

thanks!! ;D
Title: Re: Top 10 Posters Today And This Week Stats
Post by: wrw1509 on February 27, 2008, 08:44:17 AM
The installation went fine. Checked the stats everything was working. Installed yesterday Tuesday 2/26. This morning when I checked the stats it had dropped all the posters from yesterday in the weekly, and had only the posters from today in the weekly stats.

I checked stats.php everything there that should be.

Q. Does it have to cycle to Sunday for the weekly stats to start working?
Title: Re: Top 10 Posters Today And This Week Stats
Post by: daragor on February 27, 2008, 11:50:15 AM
i install well, but the mod not count weekly post! use the same value dialy

sorry for my english
Title: Re: Top 10 Posters Today And This Week Stats
Post by: waremock on February 27, 2008, 01:01:33 PM
Quote from: wrw1509 on February 27, 2008, 08:44:17 AM
The installation went fine. Checked the stats everything was working. Installed yesterday Tuesday 2/26. This morning when I checked the stats it had dropped all the posters from yesterday in the weekly, and had only the posters from today in the weekly stats.

I checked stats.php everything there that should be.

Q. Does it have to cycle to Sunday for the weekly stats to start working?


The same thing is happening to me, the weekly stats are dropping every day.
Title: Re: Top 10 Posters Today And This Week Stats
Post by: Basie on February 27, 2008, 02:12:26 PM
Would this count posts made in private/staff forums?
Title: Re: Top 10 Posters Today And This Week Stats
Post by: Rafferty on February 27, 2008, 09:27:13 PM
Can't find the problem here, Mod installs without error but no posts are being displayed at all in the forum stats although it has the box.
Title: Re: Top 10 Posters Today And This Week Stats
Post by: karlbenson on February 27, 2008, 10:16:22 PM
Sorry guys.
I'll take a look at this tomorrow and try to figure what the bug is.

Probably my fault for trying to clever and using your forum times.
Title: Re: Top 10 Posters Today And This Week Stats
Post by: Hoochie Coochie Man on February 28, 2008, 02:23:11 AM
No problem bro..
Have a good works..
Title: Re: Top 10 Posters Today And This Week Stats
Post by: senyorito on February 28, 2008, 09:25:05 AM
I'll be waiting for your update bro karl and hopefully bugs will be fixed then.
Title: Re: Top 10 Posters Today And This Week Stats
Post by: daragor on February 28, 2008, 12:15:29 PM
yes karl.. no problem mate!
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 28, 2008, 07:49:38 PM
Uninstall the old one before installing the new one.
(Note for those who just want to make the changes, all the edits to those which affect source files, so there should be no reason to redo the edits for custom themes.

1.1 - 29th February 2008
o Fixed (hopefully!) some issues with stats not reporting
o Added Turkish/Turkish-utf8 support (Thanks to eslao)
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rafferty on February 28, 2008, 08:30:06 PM
only did a couple of test posts myself and I'll give it a little while Karl but installing the updated mod did nothing, still no posts displaying
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 28, 2008, 08:34:36 PM
It should be instant.

I can't see what the problem would be.
Works perfectly on all 3 of my forums.

What version of PHP are your running?
Forum link?
Any errors in your error log?
Any other stats related mods installed?
Rafferty are you using 2.0 or 1.1.x?  If its 2.0 try clearing your file cache (admin > forum maintenance)
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rafferty on February 28, 2008, 08:43:36 PM
smf 1.1.4, Enhanced User Statistics mod & Monthly Statistics on Profile, php ver 4.4.7

error log:
Quote8: Undefined index: host
File: /home/www/16airdefence.org/forum/Sources/Subs.php
Line: 3274
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Lima_ on February 29, 2008, 11:10:19 AM
Dutch version please, thank you :)
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 29, 2008, 01:50:51 PM
I don't speak dutch.

If you provide the translated language strings. I'll add them.

Other than that, only expect English from me ;)
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: tahrim007 on February 29, 2008, 01:54:34 PM
i instrall new version but same problem

the mod not count weekly post! use the same value dialy

also sorry for my english
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: senyorito on February 29, 2008, 02:22:10 PM
Bro karl, still same problem on me.  The Top 10 Posters for Today is blank and not displaying anything.

QuoteWhat version of PHP are your running?
PHP v5.2.5

QuoteForum link?
You'd been there to my test site... Link Here! (http://pc-experts.isgreat.org/index.php?action=forum)

QuoteAny errors in your error log?
Yes, the same error from the past.  But the error is from Post.english.php and not related to the files that has been modified by your mod.

QuoteAny other stats related mods installed?
Invite Mod.  Hmmm, lemme try to uninstall this mod.  I'll let you know bro.


*edit*

Bro karl, I've installed my Invite Mod and everything works fine now.  It seems that it has a conflict with other Mods that "modified first" Stats.php and Stats.template.php.  Though sounds weird, but it seems like that.

After having some tests, it is stable and consistent.  Then, I reinstall my Invite Mod and your mod (Top 10 Posters Today And This Week Stats v1.1) is still working. 

My conclusion "in my case" and my advise to all that encountering the same bug @Rafferty and to others:  Try this workaround bro.  It could also work with you.

@karl:  Bro, it seems that your mod has a teritorial behaviour.  Heheh.

Good luck!
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 29, 2008, 04:58:27 PM
Thanks senyorito for your work debugging.

That is really strange.
I am confused why the invite mod would conflict as I don't believe there are any conflicting variables and the mod should be self contained *scratches head.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rafferty on February 29, 2008, 05:48:01 PM
I un-installed my two mods but no difference, stats still do not display
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 29, 2008, 05:50:19 PM
Please can you post me your forum link rafferty.
And attach your Themes/default/Stats.template.php AND Sources/Stats.php

I'll see if I can see something that is interfering.

Other than that, I'm completely stumped.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rafferty on February 29, 2008, 06:06:15 PM
Thx Karl, the forum is passworded so ill have to make you a temp account; Ill pm you
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: senyorito on February 29, 2008, 06:27:58 PM
Quote from: karlbenson on February 29, 2008, 04:58:27 PM
Thanks senyorito for your work debugging.

That is really strange.
I am confused why the invite mod would conflict as I don't believe there are any conflicting variables and the mod should be self contained *scratches head.

Hi bro karl!  It is true and I concur that Invite Mod and Top 10 Mod has no conflicting variables.  Because if it has, there'll be no way to make it work in my test site.  It is fine and working now with the workaround that I'd done.  Both Top 10 Mod and Invite Mod -- installed!

IMO, it is not the Invite Mod that makes conflict to Top 10 bro.  Because if so, Rafferty shouldn't have any problem since he is not using the Invite Mod.  My observation is this, it is Top 10 that has conflict to "any" other Mod installed in Stats.php and Stats.template.php and Top 10 need to work first without any other mod in Stats.php and Stats.template.php.  Like as I've said bro, it has a teritorial behaviour.

I like your Mod bro and I need it actually.  That's why I kept on finding ways to make it work.  Thanks for this useful Mod bro!

Quote from: Rafferty on February 29, 2008, 05:48:01 PM
I un-installed my two mods but no difference, stats still do not display

This exactly happened to my another forum.  So what I did, I uninstalled Top 10 and reinstalled Top 10.  Made some test, but to no avail.  Uninstalled Top 10 and reinstalled for the second time.  I've made a new post and viola, there she goes!

Once you've made Top 10 Mod works, you can now reinstall your other Mod.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 29, 2008, 06:37:47 PM
Rafferty.
I've been through it completely and can't see an obvious reason why it won't work.
In fact when I used yours stats file on my test forum, it worked fine.

Actually senyorito may be right.  You ARE using the invitemod stats.
The only issue I had was with InviteStats.


// Invite MOD.  Top 10 Inviters.
global $sourcedir;
require_once($sourcedir . '/Invite.php');
InviteStats();
// End Invite MOD.


My suggestion would be to try removing that (temporarily) from Sources/Stats.php and see if it then works.

I've also had a couple of people look over my mods, and they can't spot any issues and is working fine for them.
Other than that.  I don't know what to say.

[if it works with the invite stats disabled, then my response would be its an issue with invite mod]
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rafferty on February 29, 2008, 06:41:28 PM
Appreciate your help Karl, i'll play with it, seems its only me, cheers
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: senyorito on February 29, 2008, 06:45:13 PM
Yay, I saw the templates too.  Yeah Rafferty, you've got Invite Mod.  Try to uninstall it first and let make Top 10 works first.  When Top 10 works, you may reinstall Invite Mod afterwards.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: tahrim007 on February 29, 2008, 11:32:25 PM
Same problem week adn todays top post are same???? Please do Something...........
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on February 29, 2008, 11:53:07 PM
I've spent several hours pouring over the mod. And at this point I can't see anything wrong with it.
Its working fine on every forum I try it on.  I've asked 2 people to check it for me, and they can't see anything wrong.

Are you using the invite mod or any other mod which affects statistics?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: senyorito on March 01, 2008, 01:08:52 AM
Bro karl, Top 10 Posters "for Today" becomes inconsistent on my Test Site 1.  Hmmm, but on my Test Site 2, it's still working with the Invite Mod installed.  This bug is really weird.

Would you mind bro to install Invite Mod in one of your test site?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Jenni Lynn on March 01, 2008, 01:33:56 AM
I installed this mod and today's top poster(s) works fine however in this week's top posters is always reset each day is there a fix for this?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: senyorito on March 01, 2008, 01:49:21 AM
@jennilynn08:  Do you have Invite Mod installed to your forum?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Jenni Lynn on March 01, 2008, 03:16:07 AM
No Senyorito I do not  
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: santanu on March 01, 2008, 09:58:53 AM
I installed it in my smf 1.1.4.

Installed nicely yesterday. nothing showed up in the stats page except the area for display.

Today it showed but later all disappeared.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Jenni Lynn on March 01, 2008, 10:34:08 AM
I also installed it on smf 1.1.4 however since this weeks top poster function does not work I may just remove it.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: tahrim007 on March 01, 2008, 01:16:32 PM
any update.. anybody can help??? this weeks top poster function does not work .................
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 01, 2008, 04:09:52 PM
Are you using any mods which affect the stats page.

Including (but not limited to)
- Invite mod
- Advanced Statistics mod
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: waremock on March 01, 2008, 05:29:00 PM
I had Monthly Statistics on Profile installed. I will wait until tomorrow and see if removing this mod fixed the problem.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: jossanaijr on March 02, 2008, 09:37:37 AM
Thanks!
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: waremock on March 02, 2008, 10:43:03 AM
unfortunately everything reset again. It is still not working the way it should. Here are the other mods I have installed.


1.     TinyPortal      0.983
2.    Ad Managment    2.3
3.    Top 10 Posters Today And This Week Stats    1.1
4.    SMF Arcade    2.0.11
5.    nneonneo's AJAX ShoutBox    1.11
6.    Neat Board Layout    1.0    
7.    SMFbuy    1.2
8.    Mark Selected Topics As Read    1.0
9.    Users Online Today Mod    1.4.0    
10.    Welcome Topic Mod    1.0
11.    Move Old Topics    1.2
12.    YouTube BBC Tag (XHTML Compliant)    1.0
13.    Simple Award System    1.3.1


Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: dry3210 on March 03, 2008, 11:35:50 AM
Also having the weekly reset every day

I have Tinyportal installed also and the arcade.  (pointing out from the person above)  I have other stuff installed but nothing I would think would conflict with this mod.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: senyorito on March 03, 2008, 12:12:02 PM
@waremock:  Bro, "Users Online Today Mod" also modifies Stats.php and Stats.template.php .  This could possibly the cause in your case.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: waremock on March 03, 2008, 04:38:02 PM
Quote from: senyorito on March 03, 2008, 12:12:02 PM
@waremock:  Bro, "Users Online Today Mod" also modifies Stats.php and Stats.template.php .  This could possibly the cause in your case.

I will give that a try.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: kamili34 on March 07, 2008, 06:28:30 PM
thanks for this  ;)
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: NEMINI on March 08, 2008, 12:54:06 AM
I have the same issue.  Daily stats work but weekly is always reset each day so the two sections, daily and weekly always show the same numbers.

I have the following mods installed:

1.     TinyPortal     0.983     
2.    Karma Description Mod    2.3    
3.    Repeating Calendar Events v1.2.6    1.2.6    
4.    Automatically Remove Inbox Label Mod    1.0    
5.    vMoveTopic Notify by PM    0.901    
6.    User Email System    1.2    
7.    SMF 1.1.4 Search "brd" Bug Fix (1.0.1)    1.0.1    
8.    Count unread topics on index    1.1    
9.    Custom Profile Field Mod    3.16    
10.    Enhanced Quick Reply Box 2.0.2    2.0.2    
11.    Dilber MC    1.1    
12.    Save PM as HTML    1.0.5    
13.    New Topic Button    1.0    
14.    E-Arcade    2.5.0    
15.    Custom Action Mod    2.04    
16.    Users Online Today Mod    1.4.0    
17.    No Single Character Serach    1.0    
18.    Separated Birthdays from Events    1.0    
19.    Signature Settings Mod    1.1    
20.    Updated Registration Agreement    1.0    
21.    LogModAccountEdits    1.9    
22.    Social Bookmarks    1.1    
23.    SMF Gallery Pro    1.3.1    
24.    SMF Gallery Pro SSI    1.1    
25.    Post New Poll Link    1.1    
26.    PM On Registration    1.0.2    
27.    Remove Quoted Images    1.0    
28.    Add Sitepreview's    1.0    
29.    Auto Embed Video Clips    2.0    
30.    SMF Gallery Pro Recent Profile Images    1.0    
31.    Downloads System    1.0.3    
32.    Location on Member List    1.0    
33.    Recent posts user preference    2.51    
34.    Link Tree    1.0.0    
35.    AvatarOnBoard    1.0    
36.    MCLegendII    1.1    
37.    Treasury    2.08    
38.    SMF Gallery Pro Upgrade    1.3.14    
39.    SMF Gallery Pro Profile Link    1.0    
40.    SMF Gallery Pro Light Box Addon    1.1    
41.    Referrals Mod    2.0    
42.    Top 10 Posters Today And This Week Stats    1.1
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: MadTurki on March 08, 2008, 06:39:18 PM
I'm having an interesting problem...  The headings don't show up for these sections...

I have these mods installed:
1.     TinyPortal      0.971 
2.    Location Mod    1.2
3.    Users Online Today Mod    1.4.0
4.    Top 10 Posters Today And This Week Stats    1.1
5.    Location Mod - Additional Maps    1.2
6.    Signature Settings Mod    1.0
7.    SMF Arcade    2.0.7
8.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0
9.    SMF Poll Mod    1.1.1
10.    FontandSizeDropdown_1.2    1.3
11.    Custom Profile Field Mod    3.17
12.    Auto Embed Video Clips    2.1.1
13.    Stars And Badges    1.0

Thanks for the help!

I just  realized I also have "$txt['top_posters_day'] = 'Top 10 Posters Today'; $txt['top_posters_week'] = 'Top 10 Posters This Week';" at the top of the screen.  I guess I'm just wondering which file I need to edit.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: MadTurki on March 08, 2008, 06:46:07 PM
For the future reference of others...  In /Themes/default/languages/modifications.english.php the "?>" that's supposed to be at the end of the file had snuck in in front of the code that this mod added.  Moving it to the end of the file fixed both problems.

Thanks!
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 09, 2008, 06:17:48 AM
Yeah that sometimes can happen.
But it isn't not a bug in the mod directly, but smf.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Lima_ on March 09, 2008, 05:07:22 PM
How can you uninstall it?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: jossanaijr on March 09, 2008, 05:09:19 PM
Uninstalled it because week stat was not working and I cannot remove Invite Mod.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 10, 2008, 07:11:58 AM
@Lima_
Uninstall the same way you installed it.
Admn > Packages >
Top 10 Posters Today [uninstall]

@jossanaijr
Sorry to hear that.
As i've stated above, I'm stumped to see whats wrong without going through every stats package out there.
:(

Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: angelsluver on March 11, 2008, 01:04:02 AM
this is a very good mod...  but it seems that it is conflicting with other mods. i hope karl will find a way to make it work better.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 11, 2008, 02:24:28 AM
i am having the same problem.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 11, 2008, 09:23:08 AM
@angelsluver
I've been through the mod 10 times already.

As far as I can tell, this mod isn't conflicting with other mods.  But they are conflicting with mine.

Although if anyone can provide any evidence to the contrary, I'd be willing to look at it.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 11, 2008, 04:22:41 PM
here is my code from stats.template.php....  whatcha think?

   foreach ($context['top_posters_day'] as $poster)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $poster['link'], '</td>
                     <td width="20%" align="left" valign="top">', $poster['num_posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $poster['num_posts'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   

foreach ($context['top_posters_week'] as $poster)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $poster['link'], '</td>
                     <td width="20%" align="left" valign="top">', $poster['num_posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $poster['num_posts'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
         </tr><tr>
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 11, 2008, 06:26:03 PM
What do I think to?

Not sure what you want to do with that?   It looks exactly like the edit in the mod?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 11, 2008, 06:31:55 PM
i was showing you the code because on my site, the top 10 today and top 10 this week are identical.  the top 10 this week resets itself at midnight so i was wondering if something got jammed up in there somewhere.
here is what i have installed:

1.    Pagination Fix    1.0
2.    Digg Topic    1.0
3.    Admin Modification Menu Section
4.    Admin member list registration date    1.0
5.    Advanced Recent-Posts    1.1
6.    Ad Managment    2.3
7.    Auto Email Inactive Ordinary Users    1.4    
8.    Display Age and Location next to posts    1.0    
9.    Allow TAB in Postbox    1.1    
10.    Attachments Positioning    1.0    
11.    Attachments Download Permission    1.0    
12.    AvatarOnBoard    2.0    
13.    Avatar on Member List    1.0    
14.    Custom Profile Field Mod    3.16    
15.    Add Domaintools to TrackIP    1.0    
16.    Enchanced post template    1.0.2    
17.    FavIcon    1.1    
18.    RSS Feed Icon    1.1    
19.    SMF File Manager    2.0.3    
20.    Image Thumbnail BBCode    1.0    
21.    LinkImageToOriginalSize    1.0    
22.    Link Tree    1.1.0    
23.    Member List Position Filter    1.0.0
24.    MessagePreviewOnHover    1.5    
25.    Monthly Statistics on Profile    1.0    
26.    Most Popular Topic Today    2.0    
27.    Neat Board Layout    1.0    
28.    Sorted Package Manager Listing    0.1    
29.    Profile User Action    1.0    
30.    Remove Quoted Images    1.0    
31.    ShowTopics    1.1    
32.    Simple Spoiler Tag    1.0    
33.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    
34.    Spam Me Not Mod    1.02    
35.    Spoiler Show And Hide    1.0.3    
36.    Topic starter    1.4    
37.    Topics Filter    2.4    
38.    Top 10 Posters Today And This Week Stats    1.1
39.    User Control Panel By Alan S    2.0    
40.    User Email System    1.3    
41.    Users Online Today Mod    1.4.0
42.    Wrap Text Around Image    1.0    


Modification Packages — Installed - Not Uninstallable (no uninstall section for this version of SMF)
1.    Joined Date    1.0    
2.    TinyPortal    0.971    
3.    Member Notepad    1.0    
4.    Active Members In Topic    1.5    
5.    SMF 1.1.1 Update Package    1.1.1    
6.    SMF 1.1.2 Update Package    1.1.2    
7.    SMF 1.0.11 / 1.1.3 Update    1.1
8.    vReportBoard Mod    0.97
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 11, 2008, 10:53:14 PM
where is the actual computation done to calc. the weekly stats?  obviously the code above is OK but where else can i look for the 'crossed wires'?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 12, 2008, 09:09:04 AM
Sources/Stats.php
The the bit you copied is from Stats.template.php (which basically just writes out what has already been worked out).
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 12, 2008, 09:31:11 AM
i copied the code by hand out of the xml into both files but it still doesnt appear to be working.  this puzzles me...
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Lima_ on March 13, 2008, 02:14:03 PM
Quote from: karlbenson on March 10, 2008, 07:11:58 AM
@Lima_
Uninstall the same way you installed it.
Admn > Packages >
Top 10 Posters Today [uninstall]
Does not succeed
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 13, 2008, 02:36:09 PM
Have you installed any other mods since you installed this one?

If uninstall fails, you will need to manually uninstall it.

use a package manager to provide you with the edits to uninstall it
http://www.adrevenueshare.com/parser
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 13, 2008, 04:44:59 PM
karl, looking at my list installed mods above, do you have any idea why i can't get your mod to work properly?  the top 10 today works fine, the top 10 this week resets every night at midnite.  help!
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 13, 2008, 04:59:42 PM
I've no idea.
As I keep saying. At this point I can't see what else to change.
I've had other people check my mod.

The only suggestion at this point is that other mods are interferring with it.  Although how and where hasn't been discovered.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 20, 2008, 08:07:29 PM
FYI for those who asked me.
This does work on 2.0 beta 3 public.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: mrselnombre on March 21, 2008, 05:49:54 AM
this works fine on my 1.1.4 with lots of members but doesn't list the members in a quieter 1.1.4
could the less than 10 top posters today be an issue?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: SAMm on March 21, 2008, 08:48:15 AM
i've 1.1.4 nad works great karl ^^

but... can you say me how can i replace the post for the topics?
like i want to see the top 10 for the week of the topics

thx!!!
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: mrselnombre on March 22, 2008, 03:37:41 AM
mine seems to have reset after 1 day and isn't doing a cumulative for weekly.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: SAMm on March 28, 2008, 02:19:52 PM
can anyone edit for the topics?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: timned88 on March 28, 2008, 04:20:13 PM
unfortunately, i still haven't gotten the weekly potion to stop resetting every night at midnite.... even with a clean installation of the forum.  its a bummer because i really liked the idea of this mod.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on March 28, 2008, 05:14:59 PM
@timned88
Several people are reporting the same thing, but as I've said several times before.

I am at loss why its happening.  It works fine on my forum, my localhost test forums.
And I've had people check my code and said theres nothing wrong with it.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Marcus Forsberg on April 25, 2008, 12:34:48 AM
Swedish translation:

$txt['top_posters_day'] = '10 största författarna idag';
$txt['top_posters_week'] = '10 största författarna denna vecka';
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: holly.celeb.fan on April 26, 2008, 06:33:40 AM
Thanks for mod

Working fine.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: bozric on April 30, 2008, 02:06:08 PM
I'm using the mod, but having the same issue where the Week stats don't track the actual week, they only track the current day and then get reset the next day.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on April 30, 2008, 02:47:39 PM
what other mods are you using?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: bozric on April 30, 2008, 11:37:58 PM
It's a long list - this is one of 38 I have installed and running on my site right now. I've attached a snapshot of the list.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on April 30, 2008, 11:39:27 PM
Its probably a conflict issue with one of the advanced forum statistics mod or similar.
As per the previous pages.

I've been through the mod on a regular basis and can't see why it happens.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: bozric on May 01, 2008, 11:06:44 AM
I'll try disabling one or two of the other mods and see what happens.
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: 2pac on May 06, 2008, 12:03:11 AM
cool!(http://ninerskickass.com/forum/Smileys/smileysmore/shades.gif)
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: bozric on May 06, 2008, 09:32:11 AM
Well, I disabled all the other stats mods and I'm still having an issue where the weekly top 10 is only listing the same data as "today's top 10"
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: THE BRA1N on May 10, 2008, 03:05:26 PM
Add one more to the list. Using 2.0 Beta 3.1 Public and the mod does not keep the weekly totals. It only keeps the daily totals on both sides. These are my other mods..

1.     Users Online Today     1.5.2     
2.    Grouped Who's Online    1.0    
3.    Advanced Reputation System    1.4.1    
4.    DeInCreasePostBox    1.2    
5.    More Spiders    1.1    
6.    Modbreaktag    1.0    
7.    Auto Embed Video Clips    2.2    
8.    Top 10 Posters Today And This Week Stats    1.1
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: KameL on June 11, 2008, 04:37:02 AM
Great mod!
I want to use this mod on a two separated (day and week) TinyPortal blocks, can you help me drawing the tables and php strings for use on them?

PS:
Spanish translation:

Code (Find (at the end of the file)) Select
?>
Code (Add before) Select
$txt['top_posters_day'] = 'Top 10 de Posteadores Diarios';
$txt['top_posters_week'] = 'Top 10 de Posteadores Semanales';
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: [MaxX] on June 15, 2008, 08:22:02 AM
Nice mod.. although top 10 per week is equal to per day. http://www.funonthenet.in/forums/index.php?action=stats
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Richardgm on June 18, 2008, 11:42:13 PM
Quote from: [MaxX] on June 15, 2008, 08:22:02 AM
Nice mod.. although top 10 per week is equal to per day. http://www.funonthenet.in/forums/index.php?action=stats
I have the same issue. Using 1.1.5,
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: pp08 on June 21, 2008, 01:31:07 AM
im also using 1.1.5 and its doing the same day and week is same anyone know what to do to fix it?
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rocks-HD on August 18, 2008, 09:45:52 PM
Quote from: pp08 on June 21, 2008, 01:31:07 AM
im also using 1.1.5 and its doing the same day and week is same anyone know what to do to fix it?
where are the karlbenson???

I have the same problem with my smf 2.0
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: karlbenson on August 19, 2008, 11:09:06 AM
This mod has been taken over by BurtyBob.
http://custom.simplemachines.org/mods/index.php?mod=1231

I have been unable to reproduce the bug, and have had several people check my code also, and they have been able to reproduce it.,
Title: Re: Top 10 Posters Today And This Week Stats v1.1
Post by: Rafferty on August 21, 2008, 03:12:28 AM
Karl, just got round to installing the mod, no errors on install but reads only top posters this month, blank in this week. ?