![]() |
My first hack for vB :D
In functions.php, add this in at line 425, just after several lines of code about $replacearray PHP Code:
PHP Code:
I know that this is not very useful for many people, but it could be easily modified for other programming languages. John [edit - there's something funny going on with the slashes in the PHP code. Quote this message, and use the code straight from the reply window to get it accurately within any escaping problems.] |
Wow, this is amazing!!!
Together with the big amount of "wordfiles" at http://www.ultraedit.com/downloads/additional.html this is very helpful, Thanks & cheers, -Tom |
Anybody know how to install this on vB 2.2.4? I don't see anything about $replacearray on 425, so would somebody please quote a few lines of code I can search for?
|
Um...please? :(
|
Add the code John posted right BEFORE this:
Code:
} // end version check |
Cheers, Chen, it worked :) Like John said though, I still had to quote his message and then copy the text. Weird. *shrug*
|
please post screenshot of this hack. :)
|
Quote:
|
I'm not so good at reg exp... Here you are only replacing if the keyword is found in the exact case it is in the $kw array. How can you change that? We have a ton of developers and they never follow standards.
What would be really nice is if it could find them in ANY case, and format them to the right case (and add color colding). codebit=ereg_replace("([\r\n\\(\\)>, .])$keyword([\r\n <,.$\\(\\)])","\\1<font color=\"#FF0000\">$keyword</font>\\2",$codebit); |
I haven't looked at the code, but from what you posted I think you will need to replace all calls to "ereg_replace" with calls to "eregi_replace".
|
All times are GMT. The time now is 01:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|