MyBB Community Forums

Full Version: How to Make "" In Links To Work ? (Also [Center]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok This will be hard to explain but i will try and say as simple as i can

When you insert a link Already from vB it will come like below
[URL="http://google.com"]Google[/URL]

But when you click Post Thread
on the thread it comes as below in the way you typed it
[URL="http://google.com"]Google[/URL]

But i found out a way to post like that
And that is to take out the " "
Google

So you see it works ! But how can you make it so even with the " " it comes as it does when it is without them
Google

Is there any way ?

and can you make [Center] codes work ?

Thanks for checking the thread !
Nuddgee

Any way ? Please i need this
Here you go!
Go to Admin CP > Configuration > MyCode > Add New

Regular Expression = \[url="(.*?)"\](.*?)\[/url\]
Replacement = <a href="$1" target="_blank">$2</a>
For Center, do the same except for:

Regular = \[center\](.*?)\[/center\]
Replacement = <center>$1</center>
WOW
it works ! thanks alot

Can this be done with center ? so align center can also just be [Center]
How is the VB center code laid out? If you show me how it is, I can make it for you.

Is it: [align=center][/center] ?
its [CENTER] [/CENTER]

so its just the first one making trouble
This should work for you then...

Regular = \[center\](.*?)\[/center\]
Replacement = <center>$1</center>
Yes it does

Thanks alot , really really appreciated !
Yeah, no problem Smile