MyBB Community Forums

Full Version: Custom MyCode , How it works?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I went :
ACP>Message Filters># Custom MyCode >Add MyCode >
Regular expression : \[sup\](.*?)\[sup\]
Replacement <sup>\\1</sup>
or another try: <sup>$1</sup>

then post :
e=m*c[sup]^2[/sup]



Didn't work. Have I a mistake?
You have the code right.  This works for me.

Regular Expression:  \[sup\](.*?)\[/sup\]
Replacement:  <sup>$1</sup>

Make sure that there aren't any spaces in your regular expression. That'll mess you up Smile
Thanks for your guide but It didnt change.
I seperate all things and test times and times. No difference.
Are you absolutely certain that there's not a space in there accidentally?  I screwed up at first and put a space at the beginning of the regular expression and that caused it to not work for me.

[attachment=4152]
O^Op's

Regular expression : \[sup\](.*?)\[sup\]

Should be

Regular expression : \[sup\](.*?)\[/sup\]

That works fine for me too...

Wink

Q: Do you want to, know how to add a button to the editor for it ?
Ooops. I was stupidBig Grin
No Mate you were not... Wink

We're all guilty of the same thing. Toungue

Do you want too, or are you going to add a button for the function ?

I can help if you need it. Wink
Ozidave Wrote:No Mate you were not... Wink

We're all guilty of the same thing. Toungue

Do you want too, or are you going to add a button for the function ?

I can help if you need it. Wink

I might need it in the future, why don't you add a guide in the "User Submitted Tutorial" ? I will go have a look when I am free.
"User Submitted Tutorial"

They have to go to General first for the Guy's to have a look at them.. Smile

http://community.mybboard.net/showthread...3#pid83303
Ozidave Wrote:"User Submitted Tutorial"

They have to go to General first for the Guy's to have a look at them.. Smile

http://community.mybboard.net/showthread...3#pid83303

Good job. Thanks a lot...