News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Top 10 Posters Today And This Week Stats v1.1

Started by karlbenson, February 23, 2008, 08:37:44 PM

Previous topic - Next topic

karlbenson


TOP 10 POSTERS TODAY AND THIS WEEK STATS v1.1
By Karl Benson

Link to Mod | Support Topic | Demo | 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
Manual Installation Of Mods
How Do I Modify Files?

Donate
Has this modification helped you? Support the developer by Donating

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)

eslao

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';


ApplianceJunk

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

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


karlbenson

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.


ApplianceJunk

ok, sounds good.
Works great on our site just as it is. :)

Thank you..

senyorito

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.

edi67

Excellent work Karl let me try this was what i need :)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

jackregan

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?
Bible Study, Catholic News, Youth Group Stuff (my humble attempt at an SMF site... I'm grateful to the amazing people who have made SMF what it is!!

karlbenson

@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?

Hoochie Coochie Man

İnadına SMF 1.1.X

senyorito

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?

karlbenson

I posted and then it counted me on the list.

Are there any errors in your error log?

D.S

it's working with me ..

thank u men for effort & keep up

best regards

senyorito

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.

shadow82x

Great mod Karlbenson. This one was long waited. ;) Works fine on SMF2.X
Colin B
Former Spammer, Customize, & Support Team Member

Hoochie Coochie Man

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
İnadına SMF 1.1.X

senyorito

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. :(

lookang

1.     Execute Modification     ./Sources/Stats.php     Test failed

how can i install it?

thanks!! ;D

wrw1509

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?

daragor

i install well, but the mod not count weekly post! use the same value dialy

sorry for my english
Webscom: Wordpress + SMF
Software Libre, Noticias y Entretenimiento.-

Advertisement: