PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP Code Box



Harley
06.11.2002, 19:54
Hallo

ich habe alle meine Boxen angepasst, aber die PHP Codebox kommt ja meines Wissens nach aus der admin/funktions.php.

nun möchte ich diese Box aber gerne auch genauso haben, aber irgendwas mache ich falsch, also gibts Probleme beim parsen.

Kann mir bitte jemand was dazu sagen?
So will ich sie haben:
-----------------------------

<table border="0" align="center" width="70%" cellpadding="3" cellspacing="1">
<tr>
<td style="BORDER: #000000 1px solid; FONT-SIZE: 12px; COLOR: #66CC00; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #555555;">
<smallfont><b>PHP:</b></smallfont>
</td>
</tr>
<tr>
<td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};">{param}
</td>
</tr>
</table>

Boothby
06.11.2002, 21:30
such mal nach:



return "</normalfont><blockquote><pre><smallfont>PHP:</smallfont><hr>$buffer<hr></pre></blockquote><normalfont>";


und änder in:





return <<<PHPCODE
</normalfont>
<table border="0" align="center" width="70%" cellpadding="3" cellspacing="1">
<tr>
<td style="BORDER: #000000 1px solid; FONT-SIZE: 12px; COLOR: #66CC00; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #555555;">
<smallfont><b>PHP:</b></smallfont>
</td>
</tr>
<tr>
<td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};">$buffer
</td>
</tr>
</table>
<normalfont>
PHPCODE;

Harley
06.11.2002, 21:41
Super klasse affen Stark:D

Recht vielen dank, so soll es sein:)

Boothby
06.11.2002, 21:43
Na dann zeig doch mal, wie es aussieht :)