Cool Codes (Syntax Highlighter)
Author Message
This plugin is problematic under PHP 7.x or newer.

This is pretty much a MyBB 1.4/1.6 port of my Syntax Highlighter for MyBB 1.2.
I've also added line numbers to this one.

To resolve speed issues, you may be interested in my preparser cache plugin.

See the following thread for examples of what this looks like: http://mybbhacks.zingaburga.com/showthread.php?tid=33 (note, no code edits required for this version of the plugin)
(This post was last modified: 02-28-2021 08:45 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: coolcode-1.26.7z (14.52 KB)
Plugin Version: 1.26
Last Updated: 11-24-2014, 10:39 PM

Downloads: 1,285
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #21
RE: Cool Codes (Syntax Highlighter)
(11-19-2010 04:22 AM)1master1 Wrote:  installed, preparser cache and coolcode plugins. but it isn't highlighing. coolcode is theme dependant? i'm using different theme than mybb default.

Did you try with PHP code, not only Code code?

(This post was last modified: 11-19-2010 05:53 AM by RateU.)
11-19-2010 05:52 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #22
RE: Cool Codes (Syntax Highlighter)
yes, i tried all. but no numbering and no highlighting too
11-19-2010 06:33 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #23
RE: Cool Codes (Syntax Highlighter)
You'll need to give more info, eg how to replicate on a clean forum + what theme you're using.

My Blog
11-19-2010 07:24 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #24
RE: Cool Codes (Syntax Highlighter)
the forum is clean and i'm using mynx theme.
11-19-2010 07:35 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: Cool Codes (Syntax Highlighter)
Can't find any theme named "mynx"...
Link?

My Blog
11-19-2010 09:09 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #26
RE: Cool Codes (Syntax Highlighter)
So it's MyNic, thanks.

But it works fine here: http://mybbhacks.zingaburga.com/testforu...http://mybbhacks.zingaburga.com/testforum/showthread
Didn't do anything special.

My Blog
(This post was last modified: 11-19-2010 10:12 AM by ZiNgA BuRgA.)
11-19-2010 10:12 AM
Find all posts by this user Quote this message in a reply
hoops Offline
Junior Member
**
Posts: 1
Joined: Nov 2010
Post: #27
RE: Cool Codes (Syntax Highlighter)
This plugin is nice!

Thanks!
(This post was last modified: 11-22-2010 03:32 PM by hoops.)
11-22-2010 03:22 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #28
RE: Cool Codes (Syntax Highlighter)
Updated to v1.22, bug fixed in the highlight algorithm, thanks to RateU for finding Smile

My Blog
11-28-2010 09:39 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: Cool Codes (Syntax Highlighter)
Thanks for the update, Yumi Smile

11-29-2010 02:16 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #30
RE: Cool Codes (Syntax Highlighter)
Ahh, the server is finally up again.

I want to report an issue with this plugin, it seems to appear in 1.6.1 only though since I've started to receive error messages today only after I had upgraded.

It seems the ob_end_flush function here is the problem:

PHP Code:
$GLOBALS['plugins']->add_hook('archive_thread_end', 'ob_end_flush');


The error is on line 101, inc/class_plugins.php:

PHP Code:
$returnargs = call_user_func_array($hook['function'], array(&$arguments));


Error:

Code:
Wrong parameter count for ob_end_flush()

12-16-2010 08:07 AM
Find all posts by this user Quote this message in a reply


Forum Jump: