using wpmu dev forum which is for me the best in the world.

using wpmu dev forum which is for me the best in the world.
I see a tag that I 'like it's the tag' code '
which gives the code a pretty backgound and border.

So I want to know if it is possible how to create this kind of tag in a bbpress forum to see a nice background to the type of message.

example 1: the tag 'love' that will write a good love message and a good background and border.
<love> You know you're in love When you can not fall asleep Because reality is finally better than your dreams. </ love> in SC1

  Example 1:
Tag 'birth' to wish a good birthday massage birthday .

<birth> Joyeux Anniversaire </ birth> in SC2

and other tags ....
the principle that can be as ` and </ code> for Wpmudev.<br />
thank you`

  • Ash
    • WordPress Hacker

    Hello @mondoha13

    I hope you are well today and thanks for asking the question.

    Thank you for your comment. Not sure how much I can, but all of our staffs try their best to give you best support :slight_smile:

    About the 'tag' thing, let's do it with [love] instead of <love> as angle bracket represents html tags.

    So, create a textarea like:

    <textarea name="tag"></textarea>

    Then after submitting the form, get the value:

    $val = $_POST['tag'];
    $val = str_replace(array('[love]', '[/love]'), array('<div class="love">', '</div>'), $val);
    echo $val;

    Now the text in between [love] and [/love] should be wrapped with div of love class. You can now set the picture in love class.

    Please let me know if you find this is helpful, or if you have any further questions.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.