Welcome, Guest. Please Login or Register.
May 28, 2024, 06:32:21 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.0]PHP Highlighting Mod (in threads) « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Done 1.4.0]PHP Highlighting Mod (in threads)  (Read 12424 times)
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
[Done 1.4.0]PHP Highlighting Mod (in threads)
« on: June 01, 2002, 05:26:49 PM »
Reply with quote

I finished this, got the idea from vb. I saw some attemtps where already made earlier while browsing the subs file. They were probably stopped or given up. I don't know. Well, here it is, it's zipped this time, because while switching operating systems I figured I made an error, and I didn't want to switch back again...

DOWNLOAD:
http://www.emulation-inc.com/Packages/PHP_Highlighting.zip

INSTALL:
- Apply the mod using boardmod
- Copy image to images directory

SCREENSHOT:
This also shows the RPG Mod and the Unlimited Signature mod.
« Last Edit: August 19, 2002, 04:56:53 AM by Nemesis » Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #1 on: June 02, 2002, 03:32:08 AM »
Reply with quote

hmmm let me see if I can get this added to 1.4 release, should make that work with code: also?
« Last Edit: June 02, 2002, 03:34:51 AM by Nemesis » Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Shindou Hikaru
Honinbou
YaBB Crony
YaBB God
*****
Posts: 1358


ICQ - 152652980mephidmann@emulation-inc.com WWW
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #2 on: June 02, 2002, 08:00:12 AM »
Reply with quote

I think it should be a seperate tag. is to be used for anything that's not php. I contacted the folks at zend and php and asked them for some more highlighting functions and programming language detection functions. That way, once those are implented in php, we can make code automatically detect language and highlight as appropriate.
Logged

Please do not message me for support, use the support boards
Amazon Wishlist | ThinkGeek Wishlist | My Blog
tore-
Sr. Member
****
Posts: 291


I love YaBB SE!

Re:[Done]PHP Highlighting Mod (in threads)
« Reply #3 on: June 02, 2002, 05:58:47 PM »
Reply with quote

nice!
Logged

Star wars rules!
asora
Guest
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #4 on: June 02, 2002, 07:41:47 PM »
Reply with quote

YaBB !
thx for the mod.
 ;)
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #5 on: July 05, 2002, 03:05:07 PM »
Reply with quote

This is the orignal PHP mod that was stolen by SK15.

SK15 please stop doing this. Search the board and see if one was made before making the mod.

Thanks You, Nemey!
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #6 on: August 18, 2002, 02:25:21 PM »
Reply with quote

I am having a small problem with it, for some reason it's not working with returns, for example:


<?php 
echo 'test';
echo 
"test";
?>


Turned out as this in the php area:
<?phpecho 'test';echo "test";?>


Any ideas?
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #7 on: August 18, 2002, 04:45:21 PM »
Reply with quote

Well from what you've posted it looks like it's not detecting the linebreaks. Because it sees it as <?phpecho and not...

<?php
echo

...it doesn't parse it properly.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:[Done]PHP Highlighting Mod (in threads)
« Reply #8 on: August 18, 2002, 08:44:32 PM »
Reply with quote

Pretty much, but how to fix it is beyond me :-\
Logged
bsiegel
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.4.0]PHP Highlighting Mod (in threads)
« Reply #9 on: August 20, 2002, 04:49:50 AM »
Reply with quote

In Subs.php find:

       $code = str_replace("<br>", "", $code);
       $code = str_replace("<br />", "", $code);

Replace with:

       $code = str_replace("<br>", "\n", $code);
       $code = str_replace("<br />", "\n", $code);
Logged
bsiegel
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.4.0]PHP Highlighting Mod (in threads)
« Reply #10 on: August 20, 2002, 04:52:35 AM »
Reply with quote

While you're at it, correct this error too:

In Subs.php Find:

return "<font size=1><b>PHP:</b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td class=quote>$buffer</td></tr></table>";

Replace With:

return "<font size=1><b>PHP:</b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td class=code>$buffer</td></tr></table>";
« Last Edit: August 20, 2002, 04:53:09 AM by bsiegel » Logged
bsiegel
Noobie
*
Posts: 3


I'm a llama!

Re:[Done 1.4.0]PHP Highlighting Mod (in threads)
« Reply #11 on: August 20, 2002, 05:15:18 AM »
Reply with quote

Might as well fix this too...

In Subs.php Find:
       $code = str_replace("&#039;", "'", $code);

Add After:
       $code = str_replace("&#124;", "|", $code);
Logged
TREO
Noobie
*
Posts: 24


2 evil 4 u

WWW
Re:[Done 1.4.0]PHP Highlighting Mod (in threads)
« Reply #12 on: December 23, 2002, 01:06:25 PM »
Reply with quote

404 Not found
[/b]
Sorry, missing.

The page you requested could not be located on this server.
Please contact the domain owner below if you feel you have gotten this page in error.

www.emulation-inc.com
/Packages/PHP_Highlighting.zip
Webmaster: [email protected]

Can't get it!
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.0]PHP Highlighting Mod (in threads) « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.098 seconds with 20 queries.