Link to the mod (https://custom.simplemachines.org/index.php?mod=4263)
This mod will display top posters, top topic starters and top topics of your forum on the index page.
You can enable/disable the mod at its settings page in the Admin Panel as well as 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 do not hesitate to post them in the mod 's support topic.
This mod is released under Mozilla Public License 2.0 (MPL-2.0).
Top for what period of time? Can you make a selection choice - day, week, month?
Quote from: gorbi on June 10, 2020, 03:31:49 AM
Top for what period of time? Can you make a selection choice - day, week, month?
There is no time period. And there are no plans to add one for the time being.
Hi, Doug.
Please, use shorten_subject (https://support.simplemachines.org/function_db/index.php?action=view_function;id=240) function instead of substr(). It will help to resolve possible problems with Cyrillic.
Quick example. In Subs-TopStats.php you are using now:
if (strlen($row['real_name']) > 10)
{
$row['real_name'] = substr($row['real_name'], 0, 10) . "...";
}
I suggest replace it (and all other similar lines) with it:
$row['real_name'] = shorten_subject($row['real_name'], 20);
Quote from: Bugo on June 10, 2020, 06:41:49 AM
Hi, Doug.
Please, use shorten_subject (https://support.simplemachines.org/function_db/index.php?action=view_function;id=240) function instead of substr(). It will help to resolve possible problems with Cyrillic.
Quick example. In Subs-TopStats.php you are using now:
if (strlen($row['real_name']) > 10)
{
$row['real_name'] = substr($row['real_name'], 0, 10) . "...";
}
I suggest replace it (and all other similar lines) with it:
$row['real_name'] = shorten_subject($row['real_name'], 20);
Done Bugo. Thanks for the suggestion.
just a suggestion maybe....instead of showing on the top of the index, maybe have it's own separate page as to not gunk up the index
maybe throw it into the stats page/info center
Thanks for this! Can you include in a future update one box with the top users who stay longer online?
The mod has been made compatible with the 2.1.x version. The TopForumStats21 package is compatible with the 2.1.x version.