Help with Blocked words and custom button links

can someone help me with these two things?

  1. How can I block some words from getting posted?
  2. 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!

hi @AryaM :wave:

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 :slight_smile:

4 Likes

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.

  1. 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.

  2. Go to Edit CSS/HTML.

  3. 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>
  1. In the CSS tab, paste this code:
.custom-buttons {
    margin: 1em 0;
    text-align: right;
}

The result will look like this:

5 Likes

Thank you so much @Lilly @Canapin that was really helpful!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.