MyBB Community Forums

Full Version: Change BBCode?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Remove them?? They're not required by MyBB, you don't need to put the " " around them...
(2011-02-22, 09:16 PM)MattRogowski Wrote: [ -> ]Remove them?? They're not required by MyBB, you don't need to put the " " around them...

like this: I just want to change the BBCode, that's all. So instead of
[url=http://www.yoursitehere.com]look[/url]
it would be
[URL="yoursitehere.com"]Click Here[/URL]

Same thing for the color,alignment and text size.
(2011-02-22, 09:24 PM)pavemen Wrote: [ -> ]http://community.mybb.com/thread-88926-p...#pid649381

I have no clue how to do that, that's why I'm asking for assistance
http://community.mybb.com/thread-88926-p...#pid649391

You said you need to remove the quotation marks (") around them, yet in your 2nd example you have them? And, why do you need it to be caps?
Yeah that's why I was confused, in post #10 you said you wanted to remove the " " but they're not there in the first place... and it'll already work in capitals.

If you really need to add " " though, which will only mean you're having to type more text... on line 275 of ./inc/class_parser.php:

$nestable_mycode['color']['regex'] = "#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#si";

Change this to:

$nestable_mycode['color']['regex'] = "#\[color=\"([a-zA-Z]*|\#?[0-9a-fA-F]{6})\"](.*?)\[/color\]#si";

Does that work?? That'll do it for the [color] tag.
(2011-02-22, 09:33 PM)Derek M. Wrote: [ -> ]http://community.mybb.com/thread-88926-p...#pid649391

You said you need to remove the quotation marks (") around them, yet in your 2nd example you have them? And, why do you need it to be caps?

omg....look I'll explain everything as clear as possible. I want to transfer threads from vBulletin to MyBB, but the BBCode is different. It is a real pain to have to change every single line. The CAPS part doesn't matter, it was just the example of code I copied and pasted. I meant by the vBulletin code has the ("") while MyBB DOESN'T. I had it backwards, my bad. So I just want to be able to add the ("") in so instead of the BBCode that MyBB has now for the URL that is this:
[url=http://www.yoursitehere]texthere[/url]
I would want it to be like this:
[url="http://www.yoursitehere"]texthere[/url]
(2011-02-22, 09:43 PM)Mets08123 Wrote: [ -> ]I want to transfer threads from vBulletin to MyBB, but the BBCode is different.

This is the first time you've mentioned this. If you're unclear about things and say one thing one minute and another the next, it's not fair to complain to us when we ask questions as all we're doing is trying to figure out what you actually want. I've given you something to try above, see if it works.
(2011-02-22, 09:39 PM)MattRogowski Wrote: [ -> ]Yeah that's why I was confused, in post #10 you said you wanted to remove the " " but they're not there in the first place... and it'll already work in capitals.

If you really need to add " " though, which will only mean you're having to type more text... on line 275 of ./inc/class_parser.php:

$nestable_mycode['color']['regex'] = "#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#si";

Change this to:

$nestable_mycode['color']['regex'] = "#\[color=\"([a-zA-Z]*|\#?[0-9a-fA-F]{6})\"](.*?)\[/color\]#si";

Does that work?? That'll do it for the [color] tag.

grrr I can't access my FTP atm, I will test later, thanks for providing a solid answer
well it works, BUT if you use the BBCode editor like when you make a thread. It doesn't work :'( So if you would click the Center Button, it wouldn't work :'( anyone know how to fix?
Pages: 1 2 3