You can view working examples at this thread, on my forum.
7 Custom MyCodes for your Forum
Hey guys, me again, and this time I'm here to show you how to add a couple new custom Mycodes to your forum.
Ones I'll teach you to add will be:
--------------
1. Marquee
Regular expression:
Replacement:
2. Hilighted Text
*Users will have to specify a hex code for the hilight color desired
Regular expression:
Replacement:
3. Module
*This will create a 'module', following your forum theme.
Regular expression:
Replacement:
4. Fieldset
Regular Expression:
Replacement:
5. Custom spacing in between text
Regular expression:
Replacement:
6. Small Capital Letters Text
Regular Expression:
Replacement:
7. Image Text Background
Regular Expression:
Replacement:
----------
Usage:
Marquee:
Module:
Fieldset:
Custom spacing in between text:
Image Text Background (hilighted text, just with a bg image)
You can view working examples at this thread, on my forum.
Thank you.
7 Custom MyCodes for your Forum
Hey guys, me again, and this time I'm here to show you how to add a couple new custom Mycodes to your forum.
Ones I'll teach you to add will be:
- Marquee Text
- Hilighted Text
- Module
- Fieldset
- Custom Spacing in between text
- Small Capitals Text
- Image Text Background
--------------
1. Marquee
Regular expression:
\[marquee\](.*?)\[/marquee\]
Replacement:
<marquee>$1</marquee>
2. Hilighted Text
*Users will have to specify a hex code for the hilight color desired
Regular expression:
\[hilight color=(.*?)\](.*?)\[/hilight\]
Replacement:
<span style="background-color:#$1;">$2</span>
3. Module
*This will create a 'module', following your forum theme.
Regular expression:
\[module title=(.*?)\](.*?)\[/module\]
Replacement:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>$1</strong></td></tr>
<tr><td class="trow1">
$2
</td></tr>
</table>
4. Fieldset
Regular Expression:
\[fieldset title=(.*?)\](.*?)\[/fieldset\]
Replacement:
<fieldset class="bbfieldset"><legend class="bblegend"><span style="color:#2222ac;">$1</span></legend>$2</fieldset>
5. Custom spacing in between text
Regular expression:
\[spacing pixels=(.*?)\](.*?)\[/spacing\]
Replacement:
<span style="letter-spacing:$1px;">$2</span>
6. Small Capital Letters Text
Regular Expression:
\[smallcaps\](.*?)\[/smallcaps\]
Replacement:
<span style="font-variant:small-caps;" >$1</span>
7. Image Text Background
Regular Expression:
\[textbg img=(.*?)\](.*?)\[/textbg\]
Replacement:
<span style="background-image:url('$1')" >$2</span>
----------
Usage:
Marquee:
[marquee]Text[/marquee]
[b]Hilighted Text:[/b]
[code][hilight color=Color Hex Code]Text[/hilight]
Module:
[module title=Title for your module]Content here[/module]
Fieldset:
[fieldset title=Title for your fieldset]Content here[/fieldset]
Custom spacing in between text:
[spacing pixels=Pixels you want in between letters]Text[/spacing]
[b]Small Capital Letters Text:[/b]
[code][smallcaps]Text[/smallcaps]
Image Text Background (hilighted text, just with a bg image)
[textbg img=URL TO YOUR IMAGE]Text Here.[/textbg]
You can view working examples at this thread, on my forum.
Thank you.