News:

Join the Facebook Fan Page.

Main Menu

Topic Solved

Started by Diego Andrés, July 09, 2022, 08:21:40 PM

Previous topic - Next topic

Diego Andrés

Link to the mod




Topic Solved
Developed by Diego Andrés



Introduction
Topic Solved mod provides a very basic functionality to mark topics as solved.

Features
  • Permissions
    • Solve any topic
    • Solve own topics
  • Select boards where it applies
  • Color the solved topics in messageindex
  • Integration with Best Answer

Localization
English
Russian by Bugo
Italian by ParmaU
Romanian by Aimond


Changelog
GitHub

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

During uninstall, the hook isn't removed. Is that common?
DO NOT pm me for support!

Diego Andrés

Seems there's a typo, I wrote remove instead of reverse when uninstalling.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

So the mod has been updated?
DO NOT pm me for support!

Diego Andrés

Nope, I'll be back tomorrow  :P

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

DO NOT pm me for support!

Diego Andrés

Had some time and fixed it.

1.0.1 - 10 July 2022
  • Bug Fix Fixed hook not being removed during uninstall.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Steve

DO NOT pm me for support!

Diego Andrés

1.0.2 - 13 July 2022
  • Translation Russian translation provided by Bugo

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

Hello,

Thanks @Diego Andrés

It would be great if it was compatible with the data of the old mod (https://github.com/SimpleDesk/Team-Mods-TopicSolved)

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Diego Andrés

Just change the column name to "solved" for the topics table, and any t.is_solved to t.solved :P

Or actually, you can just rename the old column to is_solved

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

Thanks.

A solution for everyone would be better :)

There may be an option to import

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

FredT

Giving back to the community: Topic Solved-German translation. Tested on smf v2.1.2

Make a new php file, call it SolveTopic.german.php
Copy it to Themes/default/languages or wherever your language files reside:



// Version: 2.1a; Topic solved mod - German translation
global $helptxt;

$txt['topic_solved_title'] = 'Topic Gelöst Mod';
$txt['solve_topic'] = '<strong style="color: green">Markiere Topic als gelöst</strong>';
$txt['unsolve_topic'] = '<strong style="color: red">Markiere Topic als nicht gelöst</strong>';
$txt['modlog_ac_solve'] = 'Gelöst &quot;{topic}&quot; von {member}';
$txt['modlog_ac_unsolve'] = 'Ungelöst &quot;{topic}&quot; von{member}';
$txt['modlog_solve_log'] = '"Topic gelöst" Log';
$txt['modlog_solve_log_desc'] = 'Unten befindet sich eine Liste mit allen Topics die von Benutzern als gelöst oder nicht gelöst markiert wurden.<br /><strong>Bitte beachten:</strong> Die Einträge können nicht aus dem Log gelöscht werden, wenn sie nicht mindestens 24 Stunden alt sind.';
$txt['modlog_solve_log_no_entries_found'] = 'Es gibt derzeit keine Einträge über gelöste Topics im Log File.';
$txt['solve_log_help'] = '<strong>"Topic gelöst" Log</strong><br />Dieser Bereich erlaubt Benutzern des Moderatoren Teams die gelösten/ungelösten Topics einzusehen. Um sicherzustellen, dass Moderatoren neue Markierungen nicht gleich entfernen, müssen die gelösten Topics mindestens 24 Stunden alt sein.';
$helptxt['solve_log'] = $txt['solve_log_help'];

$txt['permissionname_solve_topic'] = 'Markiere Topics gelöst/nicht gelöst';
$txt['permissionhelp_solve_topic'] = 'Erlaube dem Benutzer seine eigenes Topic als gelöst/ungelöst zu markieren.';
$txt['permissionname_solve_topic_any'] = 'Irgendein Topic';
$txt['permissionname_solve_topic_own'] = 'Eigenes Topic';
$txt['permissionname_simple_solve_topic_own'] = 'Markiert eigene Topics als gelöst';
$txt['permissionname_simple_solve_topic_any'] = 'Markiert irgendein Topics als gelöst';

$txt['cannot_solve_topic_any'] = 'Es fehlen die Rechte um das Topic als gelöst zu markieren.';
$txt['cannot_solve_topic_own'] = 'Es fehlen die Rechte um das Topic als gelöst zu markieren.';
$txt['enable_solved_log'] = '"Topic gelöst" Log File anlegen (benötigt Moderator Logs aktiviert)';
$txt['topicsolved_board_desc'] = '<span class="smalltext">Markieren Sie entsprechende Foren um dort "Topic gelöst" zu aktivieren.</span>';
$txt['topicsolved_highlight'] = 'Gelöste Topics im Nachrichten Inhalt hervorheben';
$txt['topicsolved_highlight_col1'] = 'Farbe für hervorgehobene "Topic gelöst" (hellere, zum Beispiel Antworten/Ansichten)';
$txt['topicsolved_highlight_col2'] = 'Farbe für hervorgehobene "Topic gelöst" (dunklere, zum Beispiel Thema/Gestartet von)';
$txt['topicsolved_display_notice'] = 'Zeige Hinweise in den gelösten Topics';
$txt['topicsolved_is_solved'] = '<strong style="color: green;">Topic gelöst</strong><br />Dieses Topic wurde als gelöst markiert und benötigt keine Antworten mehr, ausser Sie wollen das Thema gerne weiter diskutieren.';
$txt['topicsolved_not_enabled'] = 'Topic gelöst ist in diesem Forum nicht aktiv.';
$txt['cannot_solve_own'] = 'Man nicht seine eigenen Topics als gelöst markieren';
$txt['cannot_solve_any'] = 'Man kann nicht irgendein Topic als gelöst markieren';


Diego Andrés

1.1 - 15 October 2022
  • Bug Fix Fixed setting not updating the boards inputs.


Quote from: FredT on August 26, 2022, 06:33:24 AMGiving back to the community: Topic Solved-German translation. Tested on smf v2.1.2
Oops I keep forgetting about this, which is why you guys should attach files or send PR's on GitHub  :P
I'll add this in the next update.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mareid

I would like to be able to change the wording from "Topic Solved" to something else but I have no idea how.  Can you help?

Diego Andrés

You can do so by editing the language file.
Themes/default/languages/TopicSolved/.english.php

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mareid

That's what I thought, but when I look at the files on the server the directory.
Themes/Default/languages/TopicSolved is empty.  The mod is installed (I used the package manager) and I'm running 2.13.

Diego Andrés

That's odd, you could try editing the file locally and then uploading it to the folder.
As to why they don't appear, it's possible that on certain servers (specially windows) files that start with a dot are hidden, you might want to look for a setting that shows them.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Mareid

That was the problem. Files beginning with a . are hidden on my host.  I was able to find, download and modify the file locally and reupload it.  Works great

Matias-

Hello Diego, a report:

In 2.1 it works perfectly, when marking a topic as solved it is marked in green, the problem is that when closing the topic this green color is lost.

Example Topic Solved OK:



Example Topic Solved + Topic Closed:



The idea is that even when closing the issue, it continues to be seen green to identify that it is a resolved issue.

Advertisement: