MyBB Community Forums

Full Version: Default BBCODE Edit?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-09-16, 12:07 PM)dragonexpert Wrote: [ -> ]Go to the /inc/class_parser.php file.

thanks but, which code I replace?

I think, I found my solve. I need change "codebox" to "quotebox"

because "quotebox" convert link to url.

But How to change "codebox" to "quotebox"?[/quote]
Still I dont fix my problem
Try modifying the regex.
(2011-09-19, 08:33 AM)Sama34 Wrote: [ -> ]Try modifying the regex.

how to do this?(regex)
I'm not sure where but some part in .inc/class_parser.php
		// If MyCode needs to be replaced, first filter out [code] and [php] tags.
		if($this->options['allow_mycode'])
		{
			preg_match_all("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", $message, $code_matches, PREG_SET_ORDER);
			$message = preg_replace("#\[(code|php)\](.*?)\[/\\1\](\r\n?|\n?)#si", "<mybb-code>\n", $message);
		}
I found this but still I dont understand. What I do here? Which code need change?
still wait your help Confused
Pages: 1 2