MyBB Community Forums

Full Version: making a Mycode ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i make a mycode for just "[something]" without any closing tags.

And when this code is used it should show something like "Deleted Content".How do i do that ?

Thanks Wink
Sounds like you want a word censor.

Go to Admin>Config>Settings>Word Filter

Type whatever it is you want censored on top and whatever you want it changed to on the bottom.
NO NO.Not a word filter.When he uses "[something]" a standard Text should come so that he doesn't have to do again and again.
Guess I'm not following. You said "[Something]" without the closing tags. So no, [/Something]? Or are you just talking about "Something"?

Can't you give a better example than, "Something"?

For example: If I say "rolling on the floor", I want that phrase to be converted to "rofl"
Example 2: If someone says "[lala]", I want "[lala]" to be converted to "Lala yourself!"
Example 3: If someone says "lime", I want "lime" to be converted to "buttocks"
NOOOOOOOOOOO

I want [sometag] (Not closing tag) to display a particular HTML !!
The code tag?

<a href="http://mybb.com"><img src="http://www.google.com.sg/intl/en_com/images/srpr/logo1w.png"></a>
(2010-11-15, 12:01 PM)5416339 Wrote: [ -> ]NOOOOOOOOOOO

I want [sometag] (Not closing tag) to display a particular HTML !!

Sheesh!! You never said anything about HTML! How do you expect anyone to help you if you can't make it clear on what you want!?
<--- I'm still lost! Good luck!

(2010-11-15, 11:17 AM)5416339 Wrote: [ -> ]How do i make a mycode for just "[something]" without any closing tags.

And when this code is used it should show something like "Deleted Content".How do i do that ?

Thanks Wink

(2010-11-15, 11:39 AM)5416339 Wrote: [ -> ]NO NO.Not a word filter.When he uses "[something]" a standard Text should come so that he doesn't have to do again and again.

(2010-11-15, 12:01 PM)5416339 Wrote: [ -> ]NOOOOOOOOOOO

I want [sometag] (Not closing tag) to display a particular HTML !!

Just don't put a closing tag...

Regular Expression: \[something\]
Replacement: Whatever text you want to show.