Hallo zusammen!
Ich hab da n klein/großes Problem! Ich hab absolut keinen Plan von PHP und will bei meinen News das Design verändern.
Das hier ist die template.dat:
<?php
if($counter == 1){$cmtext = "Kommentar";} else {$cmtext = "Kommentare";}
?>
<center>
<table width="98%" border="0" cellspacing="1" cellpadding="0" bgcolor="#666666">
<tr>
<td bgcolor="#666666" width="100%">
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="<?php echo $design[1]; ?>">
<tr>
<td bgcolor="<?php echo $design[2]; ?>" width="100%"><font face="Verdana, Arial, Sans-Serif" size="2" color="<?php echo $design[9]; ?>"><b><?php echo $entry[2]; ?></b></font><font face="Verdana, Arial, Sans-Serif" size="1" color="<?php echo $design[10]; ?>"><br>Geschrieben von <a href="mailto:<?php echo $entry[6]; ?>"><?php echo $entry[1]; ?></a> am <?php echo $entry[0]; ?> um <?php echo $entry[4]; ?></font></td>
</tr>
<tr>
<td bgcolor="<?php echo $design[4]; ?>"><font face="Verdana, Arial, Sans-Serif" size="2" color="<?php echo $design[12]; ?>"><?php echo $entry[3]; ?></font></td>
</tr>
<?php if ($action != "comments" && $action != "mail") { echo"
<tr>
<td bgcolor="$design[5]"><font face="Verdana, Arial, Sans-Serif" size="1">( <a href="$PHP_SELF?action=comments&id=$id">$counter $cmtext</a> | <a href="$PHP_SELF?action=print&id=$id" target="_blank"><img src="img/printer.gif" alt="Druckerfreundliche Version anzeigen" border="0"></a> <a href="$PHP_SELF?action=mail&id=$id"><img src="img/mail.gif" alt="Diesen Artikel weiterempfehlen" border="0"></a> )</font></td>
</tr>
"; } ?>
</table>
</td>
</tr>
</table>
<br>
</center>
Und da muss jetzt die gesammte Tabelle ein Hintergrundbild verpasst bekommen. Der Pfad zum Hintergrund ist images/tableback2.jpg.
Bin für jede Hilfe dankbar!
greetz
MakkuZ