REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyCode Tutorial
#1
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.

Title
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

Replacement
And this is what happens when you type the Regular Expression

Enabled?
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
Code:
\[help\]

If you want to use a double tag, with ending it like [help]Content[/help] you type
Code:
\[help\](.*?)\[/help\]

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.

Code:
<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.

Thanks
Clone
Smile
#2
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]
#3
Thanks firechao!
Feedback is always appreciated Wink
Smile


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

Forum Jump:


Users browsing this thread: 1 Guest(s)