Don
November 24, 2024, 1:31pm
1
Install this theme component
Hello
This theme component adds a banner to below the OP if there is no reply in the topic. This can encourage a response.
This banner won’t appears if user can’t reply and in PMs.
There are some settings to customize it. You can select from icon or image depends what you want to use. The title and description are HTML ready and you can add emoji too them.
For example
title
Be the first to reply :rocket:
description
No one has replied to this topic yet. <br> <strong>Be the first</strong> to start the conversation.
9 Likes
Jagster
(Jakke Lehtonen)
November 24, 2024, 2:13pm
2
iPad and iPhone, the Hub and Safari: all I see is the ghost. No such errors I can find.
1 Like
It works fine on Theme Creator .
Jagster
(Jakke Lehtonen)
November 24, 2024, 2:22pm
4
And for me it doesn’t work with default theme where is only this component in use Sure, I can try disable plugins too via safe mode .
About theme creator I don’t know anything.
edit
And using safe mode all plugins disabled broke my forum. Sometimes I’m a bit tired for all of this… Well, must start solving out what the heck is acting badly this time.
Don
November 24, 2024, 2:33pm
5
Hey @Jagster , I checked on iPad and it works for me. I registered to your forum to check what is happening. Can you please enable the theme component?
Jagster
(Jakke Lehtonen)
November 24, 2024, 2:35pm
6
It’s enabled now for every themes.
Thanks.
2 Likes
Lilly
November 24, 2024, 2:42pm
7
works fine here. very nice Don
I really like this. thank you for sharing
desktop
mobile
and yes it goes away as soon as a reply appears, without a refresh
3 Likes
Don
November 24, 2024, 2:44pm
8
Thanks, I’ve merged a fix, please update the component.
3 Likes
Jagster
(Jakke Lehtonen)
November 24, 2024, 2:47pm
9
Splendeed indeed
May I ask what did you find? I propably don’t understand, but is there some hiding potential issues I shoud know?
1 Like
Don
November 24, 2024, 2:52pm
10
It was a compatibility issue with older Discourse versions. Your site is on this Commits · discourse/discourse · GitHub commit. And there was an update with i18n import paths
later here DEV: Consolidate i18n import paths (#29804) · discourse/discourse@32665cf · GitHub so the text not appears because I used the new way.
2 Likes
Jagster
(Jakke Lehtonen)
November 24, 2024, 2:55pm
11
Off topic already, but that wasn’t too old setup… few days. Not funny for you code gurus
1 Like
Don
November 24, 2024, 3:00pm
12
That’s ok I just changed everything on my site and did it automatically here as well, but I didn’t have to change it because it works great now with all versions. Thanks for the report
1 Like
patrickemin
(Patrick EMIN)
November 24, 2024, 3:38pm
13
Great component, thanks !
2 Likes
KhoiUSA
November 24, 2024, 4:00pm
14
Very cool, I’ve used quite a few theme components from Don without a problem and this component will certainly be a perfect fit for my site.
Will share the results once I install it.
Edit: Here is the final result! Customized the background and colors a bit, turned out great.
1 Like
patrickemin
(Patrick EMIN)
November 24, 2024, 5:34pm
15
That would be nice to be able to exclude some categories.
2 Likes
Lilly
November 24, 2024, 6:03pm
16
Patrick EMIN:
exclude some categories.
easy to do. in common - css of a theme or another component:
.category-[CATEGORY_SLUG] .first-reply-statement {
display: none;
}
for multiple categories, ie::
$categories: 'vip', 'site-feedback', 'staff';
@each $category in $categories {
.category-#{$category} .first-reply-statement {
display: none;
}
}
3 Likes
Jagster
(Jakke Lehtonen)
November 24, 2024, 6:24pm
17
Should sub-categories obey that too
2 Likes
Lilly
November 24, 2024, 6:26pm
18
yes, just use the slug, preceded by the parent category:
parent-category-name-subcategry-name { etc...
2 Likes