AryaM
August 16, 2023, 1:28pm
1
can someone help me with these two things?
How can I block some words from getting posted?
How do I insert some extra buttons on the screen? For example MS society has community guidelines button
I am really new to this platform and any help would be highly appreciated!
Lilly
August 16, 2023, 2:41pm
2
hi @AryaM
for this you can go to admin-customize-watched words
and use Block or Censor.
to do this you will likely need to create a theme component, depending on what you want the custom buttons or links to do. if you are more specific, perhaps we can help. Or you can post in marketplace if you are looking for someone to do this work for you.
i hope this helps
4 Likes
Canapin
(Coin-coin le Canapin)
August 16, 2023, 4:20pm
3
AryaM:
I am really new to this platform and any help would be highly appreciated!
There’s a learning curve on how to do that, but once you’re done, it will be of great help.
To make it short, the part from the tutorial about Discourse modification that is about what you want to achieve is here: https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#modifying-discourse-templates-22
If you want to have a ready-to-use skeleton, here’s what to do.
Create a new empty theme component from Admin → Customize → Themes (don’t forget to enable it in your theme(s), or select your current theme.
Go to Edit CSS/HTML .
In Head , paste this code:
<script type="text/x-handlebars" data-template-name="/connectors/above-main-container/custom-buttons">
<div class="wrap">
<div class="custom-buttons">
<a href="/faq">Community guidelines</a> | <a href="#">Contact Moderator</a>
</div>
</div>
</script>
In the CSS tab, paste this code:
.custom-buttons {
margin: 1em 0;
text-align: right;
}
The result will look like this:
5 Likes
AryaM
August 17, 2023, 10:14am
4
Thank you so much @Lilly @Canapin that was really helpful!
2 Likes
system
(system)
Closed
September 16, 2023, 10:15am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.