yeni kurmuş oldugum tema yı tam sayfa yapmak ve forumu tam sayfa yapmak istiyorum.ayrıca haberler bölümünündeki haberlerin zemini beyaz çıkıyor. yazılar siyah.ama yazıların üstü aynı seçili alanm gibi yeşil gölgeli.bunları düzeltmem için yardım edecek arkadaş varmı. theme.php dosyasında yazan lar aşagıda
PHP- Kodu:
<?php
$bgcolor1 = "#B3C1B4";
$bgcolor2 = "#B3C1B4";
$bgcolor3 = "#B3C1B4";
$bgcolor4 = "#B3C1B4";
$textcolor1 = "#000000";
$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 $bgcolor1, $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";
}
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\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $banners, $sitename;
echo "<body bgcolor=\"#4D5155\" text=\"#000000\" link=\"0000ff\">"
."<br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/MedalOfHoner/images/logo.jpg\" alt=\"Kolaysite.Net - Free PHP Nuke Themes\" hspace=\"0\"></a></td></td></tr></table></td></tr>\n"
."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"1\" valign=\"bottom\">\n"
."<a href=\"index.php\"><img border=\"0\" src=\"themes/MedalOfHoner/images/home.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/MedalOfHoner/images/account.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/MedalOfHoner/images/downloads.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Submit_News\"><img border=\"0\" src=\"themes/MedalOfHoner/images/submit.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Topics\"><img border=\"0\" src=\"themes/MedalOfHoner/images/topics.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Top\"><img border=\"0\" src=\"themes/MedalOfHoner/images/top10.gif\" width=\"140\" height=\"18\"></a>"
."</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#616C62\">\n"
."</td></tr></table>\n"
."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#616C62'>\n";
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"840\" cellpadding=\"0\" bgcolor=\"616C62\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td><img src=\"themes/MedalOfHoner/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"138\" bgcolor=\"616C62\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/MedalOfHoner/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"Kolaysite.Net - Free PHP-Nuke Themes\"></td><td width=\"100%\">\n";
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index;
echo "<br>";
if ($index == 1) {
echo "</td><td><img src=\"themes/MedalOfHoner/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"616C62\">\n";
blocks(right);
echo "<td><img src=\"themes/MedalOfHoner/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
}
else {
echo "</td><td colspan=\"2\"><img src=\"themes/MedalOfHoner/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
}
echo "<br><br></td></tr></table>\n"
."<br><center>";
footmsg();
echo "</center>";
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<img src=\"themes/MedalOfHoner/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes, $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr><tr><td bgcolor=\"#FFFFFF\" align=\"center\">\n"
."<font class=\"tiny\">"._POSTEDBY." ";
formatAidHeader($aid);
echo " "._ON." $time $timezone ($counter "._READS.")<br></font>\n"
."<font class=\"content\">$morelink</font></center>\n"
."<img src=\"themes/MedalOfHoner/images/pixel.gif\" border=\"0\" height=\"2\">\n"
."</td></tr></table>\n"
."</td></tr></table><br>\n";
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<img src=\"themes/MedalOfHoner/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes="", $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr></table>\n"
."</td></tr></table><br><br>\n";
}
function themesidebox($title, $content) {
if ($_GET['name']!="Forums") {
echo "<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="150"><tr><td> "
."<table border="0" cellpadding="3" cellspacing="0" bgcolor="#BDCE31" width="100%"><tr><td align=left> "
."<font class="content" color="#363636">$title</font> "
."</td></tr></table></td></tr></table> "
."<table border="0" cellpadding="3" cellspacing="0" width="150"> "
."<tr valign="top"><td> "
."$content "
."</td></tr></table> "
."<br> ";
}
}
?>
lütfen yardın