MyCode

From Hack Forums
Jump to: navigation, search

What is MyCode?

MyCode is a form of regular expression or pattern matching software built into Hack Forums. It parses certain expressions found in text in order to alter the displayed post, for example changing text color or embedding and image.

  • MyCode is enabled within:
    • Threads
    • Posts
    • Private Messages
    • Signatures
  • MyCode is disabled within:
    • User titles
    • User names
    • Thread titles

Glossary of MyCode tags

Below are the various accepted expressions. To utilize one, place the tags around the text you wish to alter.

Alignment

There are four different alignments on Hack Forums. Changing the alignment will alter the position of the text when it is displayed.

Align Left

  • Code:
    • [align=left]This text is aligned left.[/align]

Align Center

  • Code:
    • [align=center]Centered text.[/align]

Align Right

  • Code:
    • [align=right]This text is aligned right.[/align]


Justify

  • Code:
    • [align=Justify]This text is justified.[/align]

Bold

There is only one option for boldness on Hack Forums. Using the bold tags will make text appear in the font's bold formatting.

  • Code:
    • [b]This text is in bold formatting[/b]

Code

There is only one option for the code MyCode on Hack Forums. The code tag will take a piece of text and display it with no modifications. In other words it is not parsed by Hack Forums with the exception of word blocks and filters.

  • Code:
    • [code]This text is within a code block.[/code]

Color

There are various colors selectable on Hack Forums. All colors work off of hexadecimal representations of the color. The purpose of this tag is to give text a certain color.

  • [color=#FF0000]Red[/color]
  • [color=#4682B4]Blue[/color]
  • [color=#32CD32]Green[/color]
  • [color=#FFD700]Yellow[/color]
  • [color=#C71585]Purple[/color]

E-Mail

There are two different tag sets for the e-mail MyCode on Hack Forums. These codes will start any e-mail programs locally if applicable.

Regular

  • Code:
    • [email]example@example.com[/email]

Custom Text

  • Code:
    • [email=example@example.com]Custom Text[/email]

Help Docs

There is only one option for this tag. The purpose of this MyCode is for helping members by telling them to read the Help Docs. This is not to be spammed.

  • Code:
    • [help]

Image

There are two options when using images on Hack Forums. This tag is used to embed images into any onsite text area. Optionally you can automatically re-size images.

Regular

Resize

Italics

The italics feature only has one recognized tag. This MyCode will change the font to the italic

  • Code:
    • [i]This text is Italic[/i]

List

There are three different list options for the List MyCode. The point of this tag is to organize data into lists based on a user's specification.

Ordered

  • Code:
[list][*]Ordered List
[*]Parent
[*]Parent
[*]Parent
[list][*]Child
[*]Child
[list][*]Sub Child
[*]Sub Child[/list]
[*]Child[/list]
[*]Parent[/list]

Numeric

  • Code:
[list=1][*]Ordered List
[*]Parent
[*]Parent
[*]Parent
[list][*]Child
[*]Child
[list][*]Sub Child
[*]Sub Child[/list]
[*]Child[/list]
[*]Parent[/list]

Alphabetical

  • Code:
[list=a][*]Ordered List
[*]Parent
[*]Parent
[*]Parent
[list][*]Child
[*]Child
[list][*]Sub Child
[*]Sub Child[/list]
[*]Child[/list]
[*]Parent[/list]

PM me

There is only one option for this tag. The purpose of this MyCode is to give users a direct link to private message you with ease.

  • Code:
    • [pmme=Subject Here]Click This to PM me![/pmme]


Quote

There are two recognized Quote tags. This tag serves to distinguish a select block of text from the rest of the text area. It can and often times is also used to show who wrote the text.

No Author

  • Code:
    • [quote]Text Here[/quote]

Author

  • Code:
    • [quote="AuthorName"] Text Here [/quote]

Skype

There is only one option for the Skype tag. This MyCode will embed an image detailing whether the Skype account in online, as well as link which will start Skype if the browser supports it.

  • Code:
    • [skype]SkypeUsername[/skype]

SoundCloud

Hack Forums only has one recognized Sound Cloud tag. The point of this is to allow users to easily embed songs into allowed areas.

  • Code:
    • [soundcloud]Full URL here[/soundcloud]

Spoiler

There are two options regarding the Spoiler tag on Hack Forums. The point of this is to mask or hide certain text or content.

Description with Spoiler

  • Code:
    • [spoiler=Description]This is what is hidden.[/spoiler]

No Description

  • Code:
    • [spoiler]This is what is hidden.[/spoiler]

Strikeout

There is only one option for the Stikeout MyCode. The purpose of this tag is to cross out text.

  • Code:
    • In this sentence the word [s]blank[/s] is crossed out.

Underline

The Underline MyCode only has one recognized tag. The point of this tag is to underline text to draw attention for it.

  • Code:
    • In the following sentence the word [u]blank[/u] is underlined.

URL

There are two options with respect to the URL tag. The point of this MyCode is to embed a hyperlink, either as a full URL or a description.

No Description

With Description