MyBB Community Forums
An easy MyCode developtment help - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: MyCodes (https://community.mybb.com/forum-117.html)
+--- Thread: An easy MyCode developtment help (/thread-127161.html)



An easy MyCode developtment help - asad3man - 2012-10-05

I am in need of making a MyCode.

So what i want to make it is.

A code like

[official] Text HERE [/official]

With official it will change the text color to the official color defined when making mycodes, The color of the text should be changed to
this HTML color... #9370DB

Can be closed now , I have made it Big Grin


RE: An easy MyCode developtment help - JordanMussi - 2012-10-05

So you don't need any help?


RE: An easy MyCode developtment help - asad3man - 2012-10-06

If you have feel free to post it here.

(2012-10-05, 09:39 PM)JordanMussi Wrote: So you don't need any help?



RE: An easy MyCode developtment help - JordanMussi - 2012-10-06

Regular Expression:
\[official\](.*?)\[/official\]

HTML Replacement:
<span style="color: #9370DB;">$1</span>

Example in MyCode:
[official]Official Text Here[/official]

Output:
Quote:Official Text Here



RE: An easy MyCode developtment help - asad3man - 2012-10-06

(2012-10-06, 12:24 PM)JordanMussi Wrote: Regular Expression:
\[official\](.*?)\[/official\]

HTML Replacement:
<span style="color: #9370DB;">$1</span>

Example in MyCode:
[official]Official Text Here[/official]

Output:
Quote:Official Text Here

I have did a same but in different method Big Grin