![]() |
Here's the original code I have:
[PHP] /* Highlight function names in [php] */ $allfuncs = get_defined_functions(); $searches = array(); $replaces = array(); foreach ($allfuncs['internal'] as $name) { $searches[] = "/([^a-z])$name(<\/font><font color=\"" . ini_get('highlight.keyword') . "\">){0,1}( {0,1})\(<\/font>/i"; $replaces[] = "\\1<a href=\"http://www.php.net/$name\" target=\"_blank\">$name</a>\\2\\3(</font>"; } $buffer = preg_replace($searches, $replaces, $buffer); /* end Highlight function names in PHP Code:
PHP Code:
|
replace the whole first php code with
PHP Code:
|
I did what you said above and got this error at the top of the page:
Warning: Invalid argument supplied for foreach() in /home/bear/public_html/forum/admin/functions.php on line 1266 and the links were not there. |
ah i see, you have a differnte structure than we have here ;)
put PHP Code:
|
Well, that got rid of the error, but still no links in the php code. ;)
|
then i can't help ya more, that's how it works here.
|
Quote:
|
it's in the user options :)
|
All times are GMT. The time now is 08:32 AM. |
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:
|