How can I stop Syntext Highighting in MyBB with a mod
mrgtb Offline
Junior Member
**
Posts: 10
Joined: Jan 2011
Post: #7
RE: How can I stop Syntext Highighting in MyBB with a mod
(01-18-2011 03:39 PM)ZiNgA BuRgA Wrote:  If you don't mind editing files, take a look at inc/class_parser.php, in particular, this part:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
		// Replace MyCode if requested.
		if($this->options['allow_mycode'])
		{
			$message = $this->parse_mycode($message, $this->options);
		}
		
		// Parse Highlights
		if($this->options['highlight'])
		{
			$message = $this->highlight_message($message, $this->options['highlight']);
		}

		// Run plugin hooks
		$message = $plugins->run_hooks("parse_message", $message);


I'm not sure what you want me to do with that file, in editing it?

I've attached my class_parser.php file below. Any chance you can do the edits to that file you think need doing manually. Then I can install the mod, over-right the php file with your edited one and test it.


Attached File(s)
.php  class_parser.php (Size: 34.84 KB / Downloads: 422)
(This post was last modified: 01-23-2011 05:22 AM by mrgtb.)
01-23-2011 05:21 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: How can I stop Syntext Highighting in MyBB with a mod - mrgtb - 01-23-2011 05:21 AM

 Standard Tools
Forum Jump: