Thread Rating:
  • 8 Vote(s) - 3.13 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating Custom MyCode
#21
i cannot make this work
example :

Code:
[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
Reply
#22
try this:

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

is this wrong too ?

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

<center>$1</center>

coz this doesn't work either..
Reply
#24
try this:

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

shrek Wrote:nope. that didn't work either

is this wrong too ?

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

<center>$1</center>

coz this doesn't work either..

and...

Code:
\[center\](.*?)\[\/center\]
Reply
#25
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.

Code:
\[center\](.*?)\[/center\]
Works fine for me.
Reply
#26
all does not work. i have make sure that mycode is activated. and forum do allow mycode.
Reply
#27
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?
Reply
#28
yes. here's a pic.


[Image: uhbi5.jpg]
Reply
#29
You're center should work.
You're url is written wrong.
There is already an url tag in MyBB though Confused
[url=<site here>]Description[/url] without the quotes you have.
Reply
#30
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 ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)