Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: kelvincool on May 08, 2022, 04:00:04 PM

Title: Top Replies
Post by: kelvincool on May 08, 2022, 04:00:04 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4330)

Top Replies shows the most liked or most thanked replies at the top of the topic.

This allows users to quickly see the most useful replies in the topic.

An example scenario is if someone posted a topic asking a question, the top reply could be the best answer as voted by the community.

Requirements

This mod requires PHP 7.4.10 or above.

This mod has only been tested on MySQL. Postgres may not work.

You must have either Likes functionality enabled or the Say Thanks (http://custom.simplemachines.org/mods/index.php?mod=3898) mod installed to use this feature.

This has been tested in Firefox 99, Chrome 100.0.4896.127 and IE Edge 101.0.1210.32.

Translation Credits
Turkish - gevv
Russian - digger

Support
Support for this modification can be found in the support topic.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby%2F3.0%2F80x15.png&hash=e2441d8ee83709b284e795913d60f5b7dfdd41f4) (http://creativecommons.org/licenses/by/3.0)
This work is licensed under a Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0)
Title: Re: Top Replies
Post by: gevv on May 20, 2022, 04:07:05 PM
Hi,

Thanks @kelvincool nice mod

Title: Re: Top Replies
Post by: gevv on May 20, 2022, 04:26:11 PM
Conflict with Message Bookmarks (https://custom.simplemachines.org/index.php?mod=4312) mod.

Posts cannot be added to message bookmarks.

Quoteindex.php?/topic,80714.msg619251.html
Sources/Class-MessageBookmarks.php (Line 211)
Backtrace information

Type of error: Undefined
Error message Select
8: Undefined index: bookmark_id


Type of error
Undefined_vars
Error message
8: Undefined index: bookmark_id
File
Sources/Class-MessageBookmarks.php
Line
211
URL of page causing the error
index.php?/topic,80714.msg619251.html
Backtrace information

    #0: smf_error_handler()
    Called from Sources\Class-MessageBookmarks.php on line 211
    #1: prepareDisplayContext()
    Called from Sources\Subs.php on line 5796
    #2: call_integration_hook()
    Called from Sources\Display.php on line 1654
    #3: prepareDisplayContext()
    Called from Sources\TopReplies.php on line 119
    #4: displayTopReplies()
    Called from Themes\default\Display.template.php on line 256
    #5: template_main()
    Called from Sources\Load.php on line 2747
    #6: loadSubTemplate()
    Called from Sources\Subs.php on line 4178
    #7: obExit()
    Called from index.php on line 194


Title: Re: Top Replies
Post by: kelvincool on May 23, 2022, 05:15:07 PM
@gevv just released v1.1.0 that resolves that conflict with Message Bookmarks mod, also included your turkish translation, thanks for that!
Title: Re: Top Replies
Post by: gevv on May 23, 2022, 05:22:21 PM
Thanks  @kelvincool  👍


just a suggestion

there must be a setting for the background color  top replies
Title: Re: Top Replies
Post by: kelvincool on May 23, 2022, 05:46:47 PM
@gevv that's a good suggestion, not sure how to implement that yet but will have a think
Title: Re: Top Replies
Post by: kelvincool on May 25, 2022, 06:00:13 PM
Released v1.1.1

Title: Re: Top Replies
Post by: kelvincool on June 02, 2022, 03:27:44 PM
Released v1.2.0

Title: Re: Top Replies
Post by: gevv on June 02, 2022, 05:18:16 PM
Thanks  @kelvincool
Title: Re: Top Replies
Post by: digger on December 16, 2022, 07:56:03 PM
Russian translation.