MyBB Community Forums

Full Version: [Tutorial] My Code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,Smile
I am posting a very useful tutorial that is useful for both biggeners to experts, so here we are starting,

You can use MyCode, a simplified version of HTML, in your posts to create certain effects. Some of these are outlined below,

1. BOLD TEXT:
<b></b>

Example:
<b>This text is bold</b>

2. ITALIC TEXT:
<i></i>

Example:
<i>This text is italicized</i>

3. Under Line Text:
<u></u>

Example:
<u>This text is underlined</u>

4. Website Link:
<a href="URL">http://www.example.com/</a>

Example:
<a href="http://www.example.com/">http://www.example.com/</a>

5. Website Link inside Text:
<a href="URL">Example.com</a>

Example:
<a href="http://www.example.com/">Example.com</a>

6. Email Link:
<a href="YOUR EMAIL">[email protected]</a>

Example:
<a href="mailto:[email protected]">[email protected]</a>

7. Email Link inside Text:
<a href="YOUR EMAIL">E-mail Me!</a>

Example:
<a href="mailto:[email protected]">E-mail Me!</a>

8. Email Link with Subject:
<a href="YOUR EMAIL?subject=spam">E-mail with subject</a>

Example:
<a href="mailto:[email protected]?subject=spam">E-mail with subject</a>

9. Quoted Text:
<quote></quote>

Example:
<quote>Quoted text will be here</quote>

10. Text with Preserved Formatting:
<code></code>

Example:
<code>Text with preserved formatting</code>

11. Image URLs :
<img src="URL">

Example:
<img src="http://www.php.net/images/php.gif">

12. Images with Specified Dimensions:
<img src="URL" width="50" height="50">

Example:
<img src="http://www.php.net/images/php.gif" width="50" height="50">

13. Text Color:
<font color="red"></font>

Example:
<font color="red">This text is red</font>

14. Text Size:
<font size="3"></font>

Example:
<font size="3">This text is size 3</font>

15. Text Font:
<font face="Tahoma"></font>

Example:
<font face="Tahoma">This font is Tahoma</font>

16. Text Alignment: Center
<div align="center"></div>

Example:
<div align="center">This is centered</div>

17. Text Alignment: Right
<div align="right"></div>

Example:
<div align="right">This is right-aligned</div>

18. List Items:
<ul>
<li>List item #1</li>
<li>List item #2</li>
<li>List Item #3</li>
</ul>

Example:
<ul>
<li>List item #1</li>
<li>List item #2</li>
<li>List Item #3</li>
</ul>

You can make an ordered list by using
  1. for a numbered, and
    1. for an alphabetical list.

      19. Marquee Text:
      <marquee></marquee>

      Example:
      <marquee>Your Text</marquee>

      20. Blinking Text:
      <blink></blink>

      Example:
      <blink>Your Text</blink>

      21. Script Text:
      <script></script>

      Example:
      <script>Your Scripted Text</script>

      Thats all for Now, hope you Enjoy it , Smile

      Thankyou for Reading

      Heart
You should maybe look at your tutorial, you're using the HTML equivilant to MyCode.

For example:

<b>bold text</b>

Should be

[b]bold text[/b]
Yes , but in my forum it is working just okay, here i saw the arror in manipulating the BB code Sad
It's probably because you have HTML in posts turned on, or a WYSIWYG editor plugin. By default, MyBB does not have / allow either, so in many cases (and here) it won't work.

For a list of MyCode, see: [Wiki: MyCode] (Broken link, head over to docs.mybb.com instead)
that's like the help document, anyways
This tutorial will only work if you have HTML turned on which is risky.
Ya Tomm you are right actually, i activated WYSIWYG editor plugin
and thankyou for your comments indigored