REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyCode Tutorial
How to create your own MyCode

To create your own MyCode you will need basic knowledge in HTML

Let's start.

Go to create a new MyCode in the Admin CP.

Now you will see six fields of options.

Here you insert the name of your new MyCode

Short Description
Information about your MyCode

Regular Expression
This is where you decide how your MyCode should be used

And this is what happens when you type the Regular Expression

On / Off Switch

Parse Order
In what order your MyCode will be displayed

First you need to think of the Regular Expression.

If you want to use a single tag without have to end it like [help] you type

If you want to use a double tag, with ending it like [help]Content[/help] you type

The (.*?) is the definition of what the Replacement will find. The first (.*?) is $1, and the second (.*?) is $2 and so on.

Now for your Replacement.

Let's say you want users to see this when people type [help]Content[/help]

This user has requested assistance : Content.

Then you will have to type this into the regular expression.

<bold>This user has requested assistance</bold> : <font color="red">$1</font>

See that I put the $1 there? It defines the first (.*?) used in the Regular Expression.

This is just something really simple that you could do.

This tutorial was written by Clone.

a helpful tutorial ^^ I think there's a plugin that simplifies the regular expression stage... but this certainly makes it easy enough!
[Image: firechaoeyebutton.png][Image: button.php?u=firechao]
Thanks firechao!
Feedback is always appreciated Wink

Possibly Related Threads...
Thread Author Replies Views Last Post
  MyCode in Thread Title Black Kat 7 7,836 Sep 12, 2010, 01:27 AM
Last Post: Kaleb
  Youtube Mycode labrocca 45 41,447 Aug 02, 2010, 10:10 AM
Last Post: Guru
  MyCode GOEAR darkmantk 9 6,111 Jul 22, 2010, 04:40 PM
Last Post: 88power88
  MP3 Player MyCode Elite Dash 12 7,966 Jul 22, 2010, 03:06 AM
Last Post: Elite Dash
  [Tutorial]Whois your users directly from Who's Online Glas 3 2,996 Jul 12, 2010, 11:38 AM
Last Post: Elite Dash

Forum Jump:

Users browsing this thread: 1 Guest(s)