Link to the mod (https://custom.simplemachines.org/index.php?mod=4227)
This mod will display top posters, top topic starters and top topics for each individual board on the message index page.
You can enable/disable the mod at its settings page in the Admin Panel as well as exclude boards from showing their top stats,
set the stats limit and decide how to order top topics display, which is based on their views or replies.
If you have any questions post them in the mod 's support topic.
This mod is released under Mozilla Public License 2.0 (MPL-2.0).
I like how it shows it per board. I think you should extend this to topic view too
Excellent mod. I would need it to be responsive for my site though.
I could not leave you before the translations into Latin Spanish, whatever you tell me!
Regards!
Love this mod. Thanks for doing it :)
Hi, is it possible to show the plugin in the forum?
Quote from: stoneageman on April 13, 2019, 05:55:10 AM
Love this mod. Thanks for doing it :)
You are welcome :)
Quote from: VirusLucky on August 21, 2019, 05:11:25 AM
Hi, is it possible to show the plugin in the forum?
It can be done with minimal changes. I will submit a separate mod for that.
The mod has been made compatible with the 2.1.x version. The BoardStats21 package is compatible with the 2.1.x version.
Attempting to install... I get this error:
3. Extract File ./Themes/default/BoardStats.template.php File not found
I have not tried to ignore the error thus far.
;)
Quote from: FrizzleFried on May 13, 2022, 03:28:31 PMAttempting to install... I get this error:
3. Extract File ./Themes/default/BoardStats.template.php File not found
I have not tried to ignore the error thus far.
;)
I can not reproduce this. What package did you try to install?
Works fine for me too
@FrizzleFried
I just re-downloaded the package (vers. 2.1) and attempted to install (on my sandbox site)...
ScreenHunter 442.jpg
If there is supposed to be a BoardStats.template.php in the package somewhere... (which I think there is), it's no in there. I just opened the zip file and it's missing.
EDIT: I think it should be right there...
ScreenHunter 443.jpg
I suspect Steve already had said file in said default template hence he didn't experience the same issue?
Quote from: FrizzleFried on May 13, 2022, 05:35:51 PMIf there is supposed to be a BoardStats.template.php in the package somewhere... (which I think there is), it's no in there. I just opened the zip file and it's missing.
I had uploaded the wrong package by mistake. I am sorry for any inconvenience. I reuploaded the correct one now. Can you please try to download the package again?
Quote from: FrizzleFried on May 13, 2022, 05:36:39 PMI suspect Steve already had said file in said default template hence he didn't experience the same issue?
Steve had the correct package.
Thanks for the confirmation I am not as crazy as I thought I was...
Quote from: FrizzleFried on May 13, 2022, 05:43:52 PMThanks for the confirmation I am not as crazy as I thought I was...
It was my fault. In my haste I had uploaded the incorrect mod package. I had uploaded first the correct package and then somehow it got mixed up with the incorrect one. Thank you for bringing it to my attention.
Working... however it needs a little tweaking. Usernames are being cut off... etc...
ScreenHunter 444.jpg
BTW... I don't much care for TOPICERS (doesn't read right). Maybe Top Topic Creators?
I agree that Topicers feels wrong when trying to read it.
Quote from: FrizzleFried on May 13, 2022, 05:43:52 PMI am not as crazy as I thought I was...
Don't be so sure. :P
Quote from: FrizzleFried on May 13, 2022, 05:48:24 PMWorking... however it needs a little tweaking. Usernames are being cut off... etc...
It is by design. Because long usernames will break into a new line. You can adjust the number of how many characters of usernames you want to display by editing the following code at the BoardStats.php file.
if (strlen($row['real_name']) > 6)
{
$row['real_name'] = substr($row['real_name'], 0, 6) . "...";
}
All you need to edit here is the number 6.
Suggest you use $smcFunc['strlen'] there so that non-English/UTF-8 names are handled correctly.
Quote from: FrizzleFried on May 13, 2022, 05:49:24 PMBTW... I don't much care for TOPICERS (doesn't read right). Maybe Top Topic Creators?
You can edit the phrasing to whatever you want by editing the BoardStats.english.php file inside the languages folder of the mod.
In this case the code that you are looking for is this.
$txt['top_topic_starters'] = 'Top Topicers';
Change Top Topicers to whatever text you like.
SMF 2.1.2
Getting this error when this is set to "0"...
Board Stats Limit
This field controls the number of stats that will be displayed. By default it is set to show 5.:But if I set it to "5" the error goes away!
QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: board_stats_limit
File
/home/*****/public_html/*****/*****/Themes/default/languages/BoardStats.english.php
Line
13
URL of page causing the error
https://*****.*****.com/index.php?action=admin;area=modsettings;sa=boardstats
Backtrace information
#0: smf_error_handler()
Called from /home/*****/public_html/*****/*****/Themes/default/languages/BoardStats.english.php on line 13
#1: require()
Called from /home/*****/public_html/*****/*****/Sources/Load.php on line 3457
#2: template_include()
Called from /home/*****/public_html/*****/*****/Sources/Load.php on line 3117
#3: loadLanguage()
Called from /home/*****/public_html/*****/*****/Sources/BoardStatsAdminHooks.php on line 10
#4: BoardStatsAdminArea()
Called from /home/*****/public_html/*****/*****/Sources/Subs.php on line 5759
#5: call_integration_hook()
Called from /home/*****/public_html/*****/*****/Sources/Subs-Menu.php on line 75
#6: createMenu()
Called from /home/*****/public_html/*****/*****/Sources/Admin.php on line 460
#7: AdminMain()
Called from /home/*****/public_html/*****/*****/index.php on line 191
Quote from: Shades. on May 14, 2022, 01:06:07 PMSMF 2.1.2
Getting this error when this is set to "0"...
Thank you for reporting this. It has been fixed and the new package containing the fix has been uploaded.
Any way to get this and the forum index version working on 1.2.4??
Quote from: Varlov on October 07, 2023, 09:40:01 AMAny way to get this and the forum index version working on 1.2.4??
Did you mean 2.1.4? If so, the mod is compatible with the 2.1.x series.
Quote from: Doug Heffernan on October 07, 2023, 10:08:18 AMQuote from: Varlov on October 07, 2023, 09:40:01 AMAny way to get this and the forum index version working on 1.2.4??
Did you mean 2.1.4? If so, the mod is compatible with the 2.1.x series.
Oops typo - yes that's what I meant. Thank you very much!
Quote from: Varlov on October 07, 2023, 10:12:33 AMOops typo - yes that's what I meant. Thank you very much!
No problem.