MyBB Community Forums

Full Version: Insert the card
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Now I have url tags in Forums
Code:
[Url = http://google.com] google [/ url]

I want to add tags
Code:
[Cd] [/ cd]
in 2 of the card automatically url ie


Code:
[Cd] [url = http://google.com] google [/ url] [/ cd]

So you have to do.
You can make a MyCode for this;
Go to: ACP > Configurations > MyCodes > Add New, and add these settings;

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

- Replacement:
[url=http://google.com]Google[/url]

- Example:
Now when you write [cd][/cd] in posts, it'll automatically converted to;
[url=http://google.com]Google[/url]
Wrong. Replacement: " in html"
Example
I want to replace
[url]google.com[/url] or [url=http://google.com]Google[/url] to [cd][url]google.com[/url][/cd] or [cd][url=http://google.com]Google[/url][/cd] automatically in Editor
[/code]