News:

Wondering if this will always be free?  See why free is better.

Main Menu

mark topic solved

Started by peter_mein, August 19, 2022, 06:28:05 AM

Previous topic - Next topic

peter_mein

Hello
Is it possible this Button as modification for all user ?


peter_mein

That is not the same.
This mod don´t set a green stick.
And i can´t see which topic is solved.

Dzonny

You haven't specified what exactly the mod should do. Can you try this one maybe:
https://github.com/SimpleDesk/Team-Mods-TopicSolved

That one should work like the one we have installed here though.

Diego Andrés

Quote from: peter_mein on August 19, 2022, 07:14:51 AMThat is not the same.
This mod don´t set a green stick.
And i can´t see which topic is solved.

The mod does this, what do you mean exactly?
I added screenshots to the mod page so you can see it.


SMF Tricks - Free & Premium Responsive Themes for SMF.

Speed King

Quote from: Diego Andrés on August 19, 2022, 07:49:43 PM
Quote from: peter_mein on August 19, 2022, 07:14:51 AMThat is not the same.
This mod don´t set a green stick.
And i can´t see which topic is solved.

The mod does this, what do you mean exactly?
I added screenshots to the mod page so you can see it.

Yes, but maybe there is a conflict with another mod - Avatars Display Integration.
On my test forum, Topic Solved works fine, but testing on my working forum with ADI installed results what @peter_mein says.

Diego Andrés

#6
Oh yea it's an issue with the Avatar Display mod, already reported it but the author didn't fix it.
@Pipke is replacing the class instead of concatenating.
$context['topics'][$topic['id_topic']]['css_class']

SMF Tricks - Free & Premium Responsive Themes for SMF.

peter_mein

Hello
Yes that is the problem with mod ADI.
I write this to the forum: https://www.simplemachines.org/community/index.php?topic=571891.160
Maybe he'll get in touch

Pipke

Quote from: Diego Andrés on August 19, 2022, 11:16:42 PMOh yea it's an issue with the Avatar Display mod, already reported it but the author didn't fix it.
@Pipke is replacing the class instead of concatenating.
$context['topics'][$topic['id_topic']]['css_class']

So what's wrong with my code? That's how I built the mod and it works...so what's wrong with that ;)
i just 'hook' in the array so the avatar can be placed in that spot, if your mod does the same i can't help it.
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

peter_mein

Then the mod Basic Topic Solved go to another place.
Perhabs the green hook at the place from message icon.
And the other mod from here https://github.com/SimpleDesk/Team-Mods-TopicSolved
need also another place.
I hope a solution will be found.

Peter


Diego Andrés

#10
Quote from: Pipke on August 21, 2022, 12:49:29 PMSo what's wrong with my code? That's how I built the mod and it works...so what's wrong with that ;)
Well there are some small issues actually, for starters the HTML issues, one per topic

You cannot view this attachment.


PS: I'll mark this as solved as the original question got an answer.

SMF Tricks - Free & Premium Responsive Themes for SMF.

gevv

#11
Hi,

@Pipke  Is there a solution to this problem?



I come from here   ;D

+
Disabling first poster from settings didn't work. Topic solved icon does not appear
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Pipke

Quote from: gevv on September 14, 2023, 01:40:59 PMHi,

@Pipke  Is there a solution to this problem?



I come from here   ;D

+
Disabling first poster from settings didn't work. Topic solved icon does not appear

yeah got a quick fix for that

in file at ..Sources/AvatarsDisplayIntegration.php around line 842
Note for other users; only do this edit if you have both mods installed.

Code (find) Select
                    // Hook it into context   
                    $context['topics'][$topic['id_topic']]['css_class'] = 'adi_print '.$topic['css_class'].'">'.$first.$last.'<span></span class="';

Code ("replace by") Select
                    // Hook it into context   
                    $context['topics'][$topic['id_topic']]['css_class'] .= ' adi_print '.($topic['is_solved'] ? 'solved' : '').'">'.$first.$last.'<span></span class="';
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

peter_mein

Hello
With this mod https://custom.simplemachines.org/index.php?mod=4339 it works now.
But with this mod https://custom.simplemachines.org/index.php?mod=4339 it does not work yet.
See attachment. Is there also a solution for this?

Steve

@peter_mein - both your links are to the same mod ... besides:

Please keep modification problem discussions in the relevant mod's support topic.
DO NOT pm me for support!


peter_mein

I made another mistake.
The correct error message can be found in the appendix.

Kindred

Please ask mod specific questions in the support thread for the mod
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

peter_mein

I don´t find a support thread for this mod.
Should I just create a new topic in Modifications and Packages ?

Pipke

@peter_mein replace the line with this:
// Hook it into context   
                    $context['topics'][$topic['id_topic']]['css_class'] .= ' adi_print '.(isset($topic['is_solved']) && $topic['is_solved'] ? 'solved' : '').'">'.$first.$last.'<span></span class="';
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Advertisement: