Link to the mod (https://custom.simplemachines.org/index.php?mod=4339)
(https://smftricks.com/logos/logo.png) (https://smftricks.com/)
(https://img.shields.io/badge/License-MIT-248049) (https://img.shields.io/badge/Hooks%20Only-Yes-6041a3) (https://img.shields.io/badge/SMF-2.1-3f73a0)
Topic SolvedDeveloped by Diego Andrés (https://smftricks.com/index.php?action=profile;u=1)
IntroductionTopic 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 (https://custom.simplemachines.org/index.php?mod=4274)
Localization(https://www.simplemachines.org/site_images/lang/english.gif) English
(https://www.simplemachines.org/site_images/lang/russian.gif) Russian by Bugo (https://www.simplemachines.org/community/index.php?action=profile;u=229017)
(https://www.simplemachines.org/site_images/lang/italian.gif) Italian by ParmaU (https://github.com/ParmaU)
(https://www.simplemachines.org/site_images/lang/romanian.gif) Romanian by Aimond (https://www.simplemachines.org/community/index.php?action=profile;u=654752)
Changelog (https://github.com/SMFTricks/Topic-Solved/blob/main/CHANGELOG.md)GitHub (https://github.com/SMFTricks/Topic-Solved)
During uninstall, the hook isn't removed. Is that common?
Seems there's a typo, I wrote remove instead of reverse when uninstalling.
So the mod has been updated?
Nope, I'll be back tomorrow :P
Roger that.
Had some time and fixed it.
1.0.1 - 10 July 2022
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) Fixed hook not being removed during uninstall.
Thanks Diego.
1.0.2 - 13 July 2022
- (https://camo.githubusercontent.com/33b5ae016b1a4c742049dc443886d242b5129207264c7d76586052d316646876/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6c616e67756167652e706e67) Russian translation provided by Bugo (https://www.simplemachines.org/community/index.php?action=profile;u=229017)
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)
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
Thanks.
A solution for everyone would be better :)
There may be an option to import
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 "{topic}" von {member}';
$txt['modlog_ac_unsolve'] = 'Ungelöst "{topic}" 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';
1.1 - 15 October 2022
- (https://camo.githubusercontent.com/5ba14cc5b307fd7683ab0b95737b5548d492d0029f2ce6f42c7cda8cc1c90fb9/68747470733a2f2f736d66747269636b732e636f6d2f6173736574732f6368616e67656c6f672f6275672d2d6d696e75732e706e67) 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.
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?
You can do so by editing the language file.
Themes/default/languages/TopicSolved/.english.php
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.
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.
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
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:
(https://i.imgur.com/mntsT0X.png)
Example Topic Solved + Topic Closed:
(https://i.imgur.com/226GJmS.png)
The idea is that even when closing the issue, it continues to be seen green to identify that it is a resolved issue.
It's done with that intend.
You can change it by editing Themes/default/css/topicsolved.css
Remove .locked from the list. of styles.
.windowbg.solved:not(.sticky, .locked)
As a matter of fact, I'll be adding the approve class in here too, seems I forgot about it...
Quote from: Diego Andrés on February 24, 2023, 09:16:30 PMIt's done with that intend.
You can change it by editing Themes/default/css/topicsolved.css
Remove .locked from the list. of styles.
.windowbg.solved:not(.sticky, .locked)
As a matter of fact, I'll be adding the approve class in here too, seems I forgot about it...
Thanks, I got it.
For me the idea of the topic solved is to be able to mark the topic as solved and that:
- The tilde of solved is seen.
- The topic is seen in green. (Since this is how it is distinguished if it is solved or not) regardless of whether the topic is closed or open.
Thanks!!
Hi,
There is a conflict with the Avatars display integration (v1.5.4) mod. The topic solved icons do not appear.
Yup it's an issue with the other MOD, documented here (https://www.simplemachines.org/community/index.php?topic=583323.0). At the moment nothing can be done about it I'm afraid.
Quote from: gevv on September 14, 2023, 01:04:37 PMHi,
There is a conflict with the Avatars display integration (v1.5.4) mod. The topic solved icons do not appear.
Quote from: Diego Andrés on September 14, 2023, 01:10:41 PMYup it's an issue with the other MOD, documented here (https://www.simplemachines.org/community/index.php?topic=583323.0). At the moment nothing can be done about it I'm afraid.
quick fix for that conflict is here (https://www.simplemachines.org/community/index.php?msg=4160108)
Hi,
How do I add "solved" text at the end of the titles?
The method I used in old mod. (https://github.com/SimpleDesk/Team-Mods-TopicSolved) I tried it in new Topic Solved mod it doesn't work, nothing appeared.
Find Sources MessageIndex.php
'css_class' => $colorClass,
add after;
'solved_link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">'.$txt['TSolved'].'</a> '
Themes MessageIndex.template.php
<div class="message_index_title">
add after;
'.(!empty($topic['solved']) ? $topic['solved_link'] : '').'
language;
$txt['TSolved'] = '<span class="solved2">Solved</span>';
css;
.solved2 {
background-color: #2E78E8;
border: 1px solid #1B5BBA;
border-radius: 2px;
color: #FFFFFF;
font-family: sans-serif;
font-size: 10px;
font-weight: bold;
padding: 1px 5px;
}
Quote from: gevv on September 16, 2023, 11:18:48 AMadd after;
'.(!empty($topic['solved']) ? $topic['solved_link'] : '').'
I don't use a 'solved' column.
Try with 'is_solved'.
'.(!empty($topic['is_solved']) ? $topic['solved_link'] : '').'
Thanks
@Diego Andrés it works 👍
i installed the mod but i dont see the new button anywhere on topics
You need to enable it per board when editing each, or select the boards where it applies in the settings of the MOD.
Yeah ok got it... It seems to be enabled by default but one board it was not, i just happen to be in that board. But i see it now..... Thanks
When using checkboxes for 'Show quick-moderation as', would it be difficult to add 'Mark Solved' to the dropdown list of options?
Could be, is it something that would be useful? I've personally never really needed to mark many as solved at once.
I would use it but I don't know that it would be useful for others.
Diego, not sure if this is a theme issue or a mod issue but have a look, this is how the solved topic highlight is displayed. Looks like its using the original default theme color and just needs a color change. :) maybe just make a note for the next version :)
resolvedsample.jpg
found it... its in
minified_8b486e37369017d0b309b03d104fe32e.css?smf214_1703261977
.windowbg.solved:not(.sticky,.locked,.approvetopic) {
background: #c5edc5;
}
suggestions green gold and red, i prefer the red but its up to you what you think is best :)
suggestions only #133a13 or #46230e a red #340909
:)
Just FYI i had to do them separately because my editor was tossing errors if i combined them. However according to the docs your combined syntax is perfect. So its my editor issue..
.windowbg.solved:not(.sticky) {
background: #340909 !important;
}
.windowbg.solved:not(.locked) {
background: #340909 !important;
}
.windowbg.solved:not(.approvetopic) {
background: #340909 !important;
}
The highlighted background was a deal-breaker for me too. Couldn't the background code be eliminated or made to match the current windowbg?
Quote from: Steve on December 23, 2023, 07:51:53 AMThe highlighted background was a deal-breaker for me too. Couldn't the background code be eliminated or made to match the current windowbg?
Well yeah it could im sure but the problem is that there are also colors for sticky, locked, and approvetopic items so if noone cares about this being different then sure but if not then it has to be a different color for those that want a different color. However, yeah i see what your saying just have the checkmark and leave the hightlight alone (meaning dont have one at all). I guess maybe have a config value for that, highlight on or off, and color lol
Quote from: durangod on December 22, 2023, 10:34:14 PMDiego, not sure if this is a theme issue or a mod issue but have a look, this is how the solved topic highlight is displayed. Looks like its using the original default theme color and just needs a color change. :) maybe just make a note for the next version :)
That's something you'd need to adjust for a custom theme.
For Repulse, you could add this at the end of custom_edits.css
:root[data-colormode="dark"] .windowbg.solved:not(.sticky, .locked, .approvetopic) {
background: #4e654e;
}
Quote from: Steve on December 16, 2023, 03:01:43 PMI would use it but I don't know that it would be useful for others.
Yes I was just checking this on my site as I had some issues and lost the topics that were solved, now I need to go through them again and do each one individually so the droplist option would be great