so, ich hab jetzt angefangen ein neues Theme zu proggen. Bin dabei nach deiner PDF - Datei gegangen und hab im Prinzip deinen Quelltext übernommen und angepasst. Kannst du mal schauen, ob das der richtige weg ist, also ob ich das richtig gemacht habe?Hier mein bisheriger Quelltext:
<?php
/****************************************/
/* Theme created by Martin Thiede */
/* TaekwondoForum.de */
/* (
http://www.taekwondoforum.de) */
/****************************************/
/* THEME NAME: TKD_Forum_Orange */
/* modifieziert für VKP_mxxx */
/* Marty am 11.11.2002 */
/*
http://www.taekwondooforum.de */
/*
info@taekwondoforum.de */
/****************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. */
/* $bgcolor2 is generaly used for the */
/* tables border as you can see on */
/* OpenTable() function, $bgcolor1 is */
/* for the table background and the */
/* other two bgcolor variables follows */
/* the same criteria. $texcolor1 and 2 */
/* are for tables internal texts. */
/****************************************/
global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $css_link, $css_vlink,
$css_alink, $textcolor1, $textcolor2;
$thename = "TKD_Forum_Orange";
$css_link = "#0000FF";
$css_vlink = "#0000FF";
$css_alink = "#d5ae83";
$bgcolor1 = "#ffa82b";
$bgcolor2 = "#ffcc62";
$bgcolor3 = "#ffa82b";
$bgcolor4 = "#ffcc62";
$bgcolor5 = "#efefef";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#FFFFFF";
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"
bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\"
bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor2, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"bgcolor2\"
align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\"
bgcolor=\"bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* FormatStory */
/* */
/* Here we'll format the look of the stories in our site. */
/* If you dig a little on the function you will notice that */
/* we set different stuff for anonymous, admin and users */
/* when displaying the story. */
/************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._Note."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" != "$informant") {
echo "<font class=\"content\" color=\"$textcolor2\">$thetext$notes</font>\n";
} else {
if ($informant != ""){
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a>";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff =" $thetexte $notes\n";
echo "<font class=\"content\" color=\"$textcolor2\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $admin, $fszcounter, $prefix, $dbi,
$bgcolor2, $bgcolor3, $css_link, $css_vlink, $css_alink, $textcolor1, $textcolor2;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
# Zeile 1 Hintergrund Definition
echo "<body bgcolor=\"$bgcolor1\" text=\"#000000\" link=\"$css_link\"
vlink=\"css_vlink\" alink=\"css_alink\">\n";
# Zeile 2 Balken
echo "<br><table cellpadding=\"0\" cellspacing=\"0\" width=\"801\" ,border=\"0\"
align=\"center\" bgcolor=\"$bgcolor3\">\n"
."<tr>\n"
."<td><img src=\"themes/TKD_Forum_Orange/images/titleBar.gif\" width=\"100%\"
height=\"10\" border=\"0\">\n</td></tr>\n</table>\n";
#Zeile Kopflogo
# erste Grafik Spalte 1 Zeile 1
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"801\" borer=\"0\"
align=\"center\" bgcolor=\"$bgcolor3\">\n" // Kopftabelle
."<tr>\n"
."<td bgcolor=\"$bgcolor3\" align=\"left\" valign=\"middle\">\n"
."<a href=\"index.php\"><img src=\"themes/TKD_Forum_Orange/images/logo_1.gif\"
alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n";
# zweite Zeile, 1. Spalte Grafik 2 inkl. Counter
echo "<tr><td><a href=\"index.php\"><img src=\"themes/TKD_Forum_Orange/images/logo_2.gif\"
alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>$fszcounter<a href=\"index.php\"><img
src=\"themes/TKD_Forum_Orange/images/logo_3.gif\" alt=\""._WELCOMETO." $sitename\"
border=\"0\"></a></td></tr>\n";
# dritte Zeile, 1. Spalte Grafik
echo "<tr><td><a href=\"index.php\"><img
src=\"themes/TKD_Forum_Orange/images/logo_4.gif\" alt=\""._WELCOMETO." $sitename\"
border=\"0\"></a></td></tr></table>\n";
echo "</select></font></td></tr></table></td></tr></table>\n";