Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Tags/Codes/Syntax
#1
Information 
----------------------------------------------------------------------------------------------------------------------------------------------
Hello Big Grin, difficulty creating a more organized and visually beautiful thread/post? So i can help you Angel
-----------------------------------------------------------------------------------------------------------------------------------------------

This forum uses MyCode syntax for effects.

So all you have to do is type theses codes in your threads. Shy



  • This is a quick list of all of the default MyCode:

Code:
┌────────────────┬──────────────────────────────────────────────┬──┐
│    Effects     │                    Syntax                    │  │
├────────────────┼──────────────────────────────────────────────┼──┤
│ bold           │ [b][/b]                                      │  │
│ italic         │ [i][/i]                                      │  │
│ underline      │ [u][/u]                                      │  │
│ strikethrough  │ [s][/s]                                      │  │
│ URL            │ [url]http://url.com[/url]                    │  │
│                │    or                                        │  │
│                │ [url=http://url.com]My URL[/url]             │  │
│                │                                              │  │
│ email          │ [email][email protected][/email]          │  │
│                │    or                                        │  │
│                │ [[email protected]]My Email[/email] │  │
│                │                                              │  │
│ quote          │ [quote][/quote]                              │  │
│                │    or                                        │  │
│                │ [quote=Author][/quote]                       │  │
│                │                                              │  │
│ code           │ [code][//code] <- only 1 "/"                 │  │
│                │    or                                        │  │
│                │ [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 [*]                        │  │
└────────────────┴──────────────────────────────────────────────┴──┘

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Bold, Italic, Underline & Strikethrough
  • Syntax:
    Code:
    [b]TEXT[/b]
    [i]TEXT[/i]
    [u]TEXT[/i]
    [s]TEXT[/i]
  • Result:
    • Bold text
    • Italicized text
    • Underlined text
    • Strikethrough text

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Size
  • Syntax:
    Code:
    [size=SIZE]TEXT[/size]

    SIZES: xx-small, x-small, small, medium, large, x-large, xx-large
  • Result:
    • XX-Small
    • X-Small
    • Small
    • Medium
    • Large
    • X-Large
    • XX-Large

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Font
Font list(Google): https://fonts.google.com/
  • Syntax:
    Code:
    [font=NAME_OF_FONT]TEXT[/font]
  • Result:
    • This is in Tahoma
    • This is in Courier

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Color
You can use HEX and Names to Colors. Nice website of colors, just copy the "HEX" code.
  • Syntax:
    Code:
    [color=THE_COLOR]TEXT[/font]
  • Result:
    • This is red
    • This is green
    • This is blue, in Hex form

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Position
  • Syntax:
    Code:
    [align=POSITION]TXT, IMAGE, ETC...[/align]

    POSITIONS: left, center, right, justify
  • Result:
    • Left-aligned
    • Center-aligned
    • Right-aligned
    • Justified
      (Justified is more noticeable when there are large blocks of text)

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Code Block
  • Syntax:
    PHP Code:
    [code]CODE HERE[/code
  • Result:
    • Code:
      <div class="menu">Text Here..             <- Those spaces won't be merged per example</div>
      Effects are not applied in Code Block

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: PHP Code Block
  • Syntax:
    Code:
    [php]PHP CODE HERE[/php]
  • Result:
    • PHP Code:
      <?php
      // Comment
      $mybb->user['var'] = "Hi";  ?>

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Image
If you do not set proportions, the image will be displayed with the original proportions.
  • Syntax:
    Code:
    To original proportions:
    [img]http://example.com/image.gif[/img]

    To set proportions:
    [img=WIDTHxHEIGHT]http://example.com/image.gif[/img]
  • Result:
    • Original proportions:
      [Image: rsz_1rsz_5d43b094596e1.png]
    • Edited proportions:
      [Image: rsz_1rsz_5d43b094596e1.png]

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Attachment
This shortcut only works for attachments that are attached to the post you are writing. It does not allow you to include attachments from other posts.
  • Syntax:
    Code:
    [attachment=ATTACHMENT_ID]
  • Result:
    To view the attachment ID of your current post:
    1. Before posting, add a new attachment by choosing your PC item
    2. Click "Add Attachment" and click "Preview Thread"
    3. Click your attachment, and then the url open, copy the number after "aid=" and replace it with "ATTACHMENT_ID" like the example above.

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: URL/Link
  • Syntax:
    Code:
    Link:
    [url]http://example.com[/url]

    Link Text:
    [url=http://example.com]Title[/url]

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Email

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: List
  • Syntax:
    Code:
    - Example 1:
    [list]
    [*]List Item #1
    [*]List Item #2
    [*]List Item #3
    ...
    [/list]

    - Example 2:
    [list]
    [*]List Item #1
    [list]
      [*]List Item #A
      [*]List Item #B
    [/list]
    ...
    [/list]

    - Example 3:
    [list=1]
    [*]List Item #A
    [*]List Item #B
    [*]List Item #C
    [/list]
  • Result 1:
    • List Item #1
    • List Item #2
    • List Item #3
      ...
  • Result 2:
    • List Item #1
      • List Item #A
      • List Item #B
      ...
  • Result 3:
    1. List Item #A
    2. List Item #B
    3. List Item #C

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Effect: Embedded Video
You can create an Embedded Video from Dailymotion, Facebook, Liveleak, MetaCafe, Mixer, Vemio, Youtube and Twitch.
You can only use one video per message.
  • Syntax:
    Code:
    [ video=VIDEO_TYPE]VIDEO_URL[/ video] <- Remove the spaces

    VIDEO_TYPES: dailymotion, facebook, liveleak, metacafe, mixer, vemio, youtube, twitch.
  • Result (YT Example):


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Any questions, ask your question and I will answer Blush


Please if I help you:



If there are any typo, please tell me Confused
Hello lovely person (:

[Image: KntgSU.png]
#2
Thumbs Up 
Good job!
#3
Good Work my friend :)
#4
Wink 
Thx guys (:
Hello lovely person (:

[Image: KntgSU.png]


Forum Jump:


Users browsing this thread: 1 Guest(s)