The MyCode section allows you to create your own custom MyCode using regular expressions. This allows for additional formatting options when making a post. On the MyCode listing page, you can view the various MyCodes you have on your forum, along with a short description of their functionality. You can further manage the MyCode, as well as deactive/activate MyCode without having to edit the MyCode itself.
Configuration: Add MyCode
[edit] Add/Edit MyCode
- Title
- A name for administrators to classify the MyCode by.
- Short Description
- A description for administrators that describes the function of the MyCode (example: \[b\](.*?)\[/b\])
- Regular Expression
- A PHP regular expression that will search for a combination of characters. This must be valid - no validation is performed. (example: <strong>$1</strong>)
- Replacement
- The replacement for the regular expression above.
- Enabled
- Should this MyCode be available for use?
- Parse Order
- When should this MyCode be parsed in relation to other MyCode?
[edit] MyCode Sandbox
When both adding and editing a custom MyCode, you can test your regular expression and replacement without leaving or reloading the page, to ensure it works before saving.
- Test Value
- You should enter the MyCode that should be replaced along with anything else that should accompany it. For the example included above, you would enter: [b]Test text[/b]
Then, click on "Test MyCode," which will load the results without reloading the page. The results include:
- HTML Result
- The HTML returned as a result of your MyCode.
- Actual Result
- The text that will actually be displayed when the MyCode is used.