MyCode


This article or section requires attention.
Reason: Needs to be completed


myCode is used to format posts in MyBB. If you know HTML, myCode will not be a problem. myCodes are enclosed in square brackets : [ ].

Contents

[edit] Types of MyCode

There are many types of MyCodes.

  • There are kinds with an opening tag and a closing tag like the bold tag: [b]text[/b]
  • There are kinds with only one tag: [hr]
  • There are kinds with attributes within the tags: [font=Comic Sans MS]This will be in Comic Sans MS[/font]
  • There are kinds that need an opening tag, a closing tag, and tags in the middle (such as in lists)

[edit] MyCode Quick Reference

Here's a list of all MyCodes available. The next several sections will describe each code in detail.

bold [b][/b]
italic [i][/i]
underline [u][/u]
strikethrough [s][/s]
URL [url]http://url.com[/url]
[url=http://url.com]My URL[/url]
email [email]myemail@mydomain.com[/email]
[email=myemail@mydomain.com]My Email[/email]
quote [quote][/quote]
[quote=Author][/quote]
code [code][/code]
[php][/php]
image [img]http://mysite.com/mypic.jpg[/img]
font color [color=red][/color]
font size [size=3][/size]
font face [font=tahoma][/font]
text alignment [align=center][/align]
listing [list][/list] and [*]

[edit] MyCode Detailed Reference

[edit] Text Formatting

[edit] Bold, Italics, Underline, Strikethrough

[edit] Examples

[b]Bold text[/b]
[i]Italicized text[/i]
[u]Underlined text[/u]
[s]Strikethrough text[/s]

[edit] Result

Bold text
Italicized text
Underlined text
Strikethrough text

[edit] Font Size

[edit] Syntax

[size=SIZE]TEXT[/size]

[edit] Examples

[size=small]Small[/size]
[size=medium]Medium[/size]
[size=large]Large[/size]
[size=x-large]X-Large[/size]
[size=xx-large]XX-Large[/size]

[edit] Result

Small
Medium
Large
X-Large
XX-Large

[edit] Font Face

[edit] Syntax

[font=NAME_OF_FONT]TEXT[/font]

[edit] Examples

[font=Tahoma]This is in Tahoma[/font]
[font=Courier]This is in Courier[/font]

[edit] Result

This is in Tahoma
This is in Courier

[edit] Font Color

[edit] Syntax

[color=THE_COLOR]TEXT[/font]

[edit] Examples

[color=red]This is in Red[/color]
[color=green]This is in Green[/color]

[edit] Result

This is in Red
This is in Green

[edit] Text Alignment

[edit] Preformatted Text

[edit] General Code

[edit] Syntax

[code]CODE HERE[/code]

[edit] Examples

[code]<div class="menu">Text Here..</div>[/code]
[code]<a href="http://domain.com/">Text Here..</a>[/code]

[edit] Results

<div class="menu">Text Here..</div>
<a href="http://domain.com/">Text Here..</a>

[edit] PHP Code

[edit] Syntax

[php]PHP CODE HERE[/php]

[edit] Examples

[php]<?php echo "Hi!"; ?>[/php]
[php]<?php 
// Comment
$mybb->user['var'] = "Hi";  ?>[/php]

[edit] Results

<?php echo "Hi!"?>
<?php 
// Comment
$mybb->user['var'] = "Hi";  
?>

[edit] Images and Attachments

[edit] Images

[edit] Attachments

[edit] Links

[edit] URL

[edit] Syntax

[url]http://mybboard.net[/url]
[url=http://mybboard.net]MyBB[/url]

[edit] Examples

[url]http://community.mybboard.net[/url]
[url=http://community.mybboard.net]Support Communtiy[/url]

[edit] Results

http://community.mybboard.net
Support Communtiy

[edit] Email

[edit] Lists

[edit] Unordered Lists

[edit] Ordered Lists


Archive Mode - Attachments - Multiquote - MyCode - Polls - Private Messages - RSS Syndication - Smilies - Subscriptions - Usergroups - User Referrals
This is obviously not the complete feature list. See Features.
This page was last modified 06:05, 7 November 2006.