MyBB Community Forums

Full Version: Delete mycode.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, can someone create for me a delete Mycode? So whatever text you enter in [delete] gets wiped?
MyCode:
\[delete\](.*?)\[/delete\]
Replacement:
<span style="display: none;">$1</span>

I don't understand why you would want this but there you go.
That wouldn't wipe it; by quoting or viewing the source it'd still be there.
Perhaps you could have it as some kind of censor, meaning that if something matched the regex of [delete](.*)[/delete], it'd replace it with a single space.
But I still don't see why you would want that code you could just remove the line?
(2010-04-06, 08:04 AM)Prentice Wrote: [ -> ]But I still don't see why you would want that code you could just remove the line?

For new threads i am going to have a posting template. I don't want parts to stay though.
oh I see... Sorry I don't know that.
Just do this:

Regex:
[delete](.*&)[/delete]

Replacement:
Just a space.
(2010-04-06, 06:10 PM)Tierney Wrote: [ -> ]Just do this:

Regex:
[delete](.*&)[/delete]

Replacement:
Just a space.

Thank you.
(2010-04-06, 11:42 PM)41shots Wrote: [ -> ]
(2010-04-06, 06:10 PM)Tierney Wrote: [ -> ]Just do this:

Regex:
[delete](.*&)[/delete]

Replacement:
Just a space.

Thank you.

No problem.