function themeheader() {
****************************
}
function themefooter() {
***********************
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath, $c o o k i e, $loonr, $vasak, $parem, $kokku, $storyhome, $storynum;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$loonr = ($loonr+1);
if (isset($c o o k i e[3])) {
$storynum = $c o o k i e[3];
} else {
$storynum = $storyhome;
}
$ridaaa1 = round($loonr/2);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
if (($ridaaa1*2) != $loonr) {
$tmpl_file = "themes/Temanız/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
$vasak .= "$r_file";
} else {
$tmpl_file = "themes/Temanız/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
e v a l($thefile);
$parem .= "$r_file";
}
if ($loonr == $storynum OR $loonr == $kokku) {
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo "<tr>";
echo "<td width=\"49%\" valign=\"top\">";
print $vasak;
echo "</td>";
echo "<td width=\"5\" cellpadding=\"0\" cellspacing=\"0\" valign=\"top\"></td>";
echo "<td width=\"49%\" valign=\"top\">";
print $parem;
echo "</td>";
echo "</tr>";
echo "</table>";
}
}
function themearticle (******) {
***************
}
function themesidebox(*******) {
***********************
}
?>
Yukarıda verdiğim kod theme.php ye ait. *** koyduğum yerlerde bir işlem yapmayacan demek oluyor. Sadece olması gereken yerleri yazdım. Bu dosyaya bakarak kendi theme.php dosyanda istediğini yapabilirsin.
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız