MyBB Community Forums

Full Version: Creating Custom MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9
i cannot make this work
example :

[url="http://www.narutochaos.com"]NarutoChaos - sume episod ader kat cni[/url]

code

\[a\ href=(.*?)] title=(.*?)\](.*?)\[/a\]

rep
<a href="$1" title="$2">$3</a>

i even try the one in first post. it didnt work. it stayed like the above example
try this:

\[a\ href=(.*?)] title=(.*?)\](.*?)\[\/a\]
nope. that didn't work either

is this wrong too ?

\[center\](.*?)\[/center\]

<center>$1</center> 

coz this doesn't work either..
try this:

\[a href=(.*?) title=(.*?)\](.*?)\[\/a\]

shrek Wrote:nope. that didn't work either

is this wrong too ?

\[center\](.*?)\[/center\]

<center>$1</center> 

coz this doesn't work either..

and...

\[center\](.*?)\[\/center\]
You shouldn't use \ infront of /, you shouldn't need to as / is not an modifier in regexp. Only if it is used as an delimiter.

\[center\](.*?)\[/center\]
Works fine for me.
all does not work. i have make sure that mycode is activated. and forum do allow mycode.
And you're certain that you type [center]Message here[/center] in your message? Does it do nothing? Does it show up like [center]Message here[/center] in the post or what?
yes. here's a pic.


[Image: uhbi5.jpg]
You're center should work.
You're url is written wrong.
There is already an url tag in MyBB though Confused
Description without the quotes you have.
well that url came from bbcode of vbulletin. there's thousand of em in my forum.
and that center really didn't work. what should i do ?
Pages: 1 2 3 4 5 6 7 8 9