News:

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

Main Menu

Top Stats Forum Index

Started by Doug Heffernan, June 10, 2020, 01:08:57 AM

Previous topic - Next topic

Doug Heffernan

Link to the mod

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).

gorbi

Top for what period of time? Can you make a selection choice - day, week, month?

Doug Heffernan

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.

Bugo

Hi, Doug.

Please, use shorten_subject 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);

Doug Heffernan

Quote from: Bugo on June 10, 2020, 06:41:49 AM
Hi, Doug.

Please, use shorten_subject 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.

shadav

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

MF30

Thanks for this! Can you include in a future update one box with the top users who stay longer online?

Doug Heffernan

#7
The mod has been made compatible with the 2.1.x version. The TopForumStats21 package is compatible with the 2.1.x version.

Advertisement: