The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
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:
|
#22
|
||||
|
||||
replace the whole first php code with
PHP Code:
|
#23
|
||||
|
||||
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. |
#24
|
||||
|
||||
ah i see, you have a differnte structure than we have here
put PHP Code:
|
#25
|
||||
|
||||
Well, that got rid of the error, but still no links in the php code.
|
#26
|
||||
|
||||
then i can't help ya more, that's how it works here.
|
#27
|
|||
|
|||
Quote:
|
#28
|
||||
|
||||
it's in the user options
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|