Solved

Hide the quote string for answers/replies or make it look not clickable in closed topics? 

  • 18 March 2024
  • 8 replies
  • 73 views

Userlevel 2
  • Veteran Rookie
  • 54 replies

Hello,

when a topic is closed for comments, the UI string for answering/replying still does show.  Like in this example. Also in replies created in Control.

In our private community, a user wondered why she cannot reply/answer a closed topic.  I checked:

The stings for quoting look clickable in both, the topic and in the admin’s reply created in Control, just like the strings for liking and subscribing, but clicking has no effect.
(I have to admit that our message in the closed-topic box is not clear enough, roughly translating to Your ...contacts will be happy to answer any questions or feedback you may have):

--> is it possible to hide the quote string or make it look not clickable in closed topics?
Or is the only possibility here to make the info in the closed-topic box more specific and meaningful?

thanks!

icon

Best answer by arminfpop 19 March 2024, 17:08

View original

8 replies

Userlevel 6
Badge +5

Or is the only possibility here to make the info in the closed-topic box more specific and meaningful?

Yes, you can edit this phrase to your liking. 

 

--> is it possible to hide the quote string or make it look not clickable in closed topics?

Not sure on this one. You can definitely hide the quote option with CSS, but only on closed topics would probably require a third party script for the conditional logic. 

Userlevel 2

Hi, @Eva

As Danny said, you can hide the button for closed topics by adding some Javascript to your Third Party Scripts. 

Essentially, you will want to hide the quote button if the banner exists, and do nothing if it does not. The element should look something like this:

 

 

 

 

Hope that helps, and let me know if I can help with anything else.

Userlevel 6
Badge +5

@Eva if you or someone else figures out the javascript, please share. I just realized that I have this same use case. 

Userlevel 2

 

Or is the only possibility here to make the info in the closed-topic box more specific and meaningful?

Yes, you can edit this phrase to your liking. 

 

--> is it possible to hide the quote string or make it look not clickable in closed topics?

Not sure on this one. You can definitely hide the quote option with CSS, but only on closed topics would probably require a third party script for the conditional logic. 

Thanks!
I kind of expected this 😅
So I think, our message in the closed-topic box needs to be improved/clearer for users.

(But it would be nice if the quote string could be hidden in this case, one day….
registered users might wonder why there’s a message (by a Control user) if they can’t answer) 


…..ah new replies while I was typing…...I will check the third-party script and let you know here. Thanks 👍

Userlevel 2

@Eva & @DannyPancratz - this should work. 

<script>

if (document.querySelectorAll(".qa-mesg-topic-closed").length) {
document.querySelectorAll("a.qa-icon-quote.post__action-link").forEach((quoteLink) => {
quoteLink.style.display = "none"
})
}

</script>

 

Userlevel 2

Thanks @arminfpop, it works. I raise my coffee cup to you! 🙂

Userlevel 2

Great to hear, @Eva!

 

And thanks for the coffee cup raise! 😊

Userlevel 6
Badge +5

Thanks @arminfpop, it works. I raise my coffee cup to you! 🙂

+1 @arminfpop. Thank you! 

Reply