Zaczne od tego, ze szukalem juz podobnych watkow, ale byly one albo bez odpowiedz, albo nierozwiazane do konca...
Chcialbym umiescic kod, ktory otrzymalem od livelink.pl i linkuj.pl obok licznika wizyt. Nie bawie sie na codzin w PHP, wiec nie mam pojecia jak to zrobic.
Sądze, ze kod bedzie umieszczony w theme.php, a ostatnio troche go "po swojemu" przerabialem i wyglad fusiona wyszedl mi taki na jaki oczekiwalem, ale nie wiem, czy czegos przy tym nie poprzestawialem, gdyz nie czuje sie w tym pewny.
Nizej podaje zawartosc mojego pliku theme.php, kody do linkuj.pl i livelink.pl:
Theme.php:
<?
$body_text = "#000000";
$body_bg = "#1A769F";
$theme_width = "100%";
$theme_width_l = "160";
$theme_width_r = "160";
function render_header($header_content) {
global $theme_width,$settings;
echo "<br><center><img src='../images/logo.png'></center>";
echo "<table class='bodyline' align=center width='850' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table background='".THEME."images/logobg.gif' width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='100%' height='69'>";
echo "</td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<div align='center'>";
echo "<table cellpadding='3' cellspacing='0' width='98%'>";
echo "<tr><td align='center' >";
echo "".stripslashes($settings['footer'])."";
if ($license == false) {
echo "";
}
echo "Copyright © by <a href='mailto:'>Syber</a> 2007 :: Zanotowano ".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."\n");
echo " :: Strona istnieje od 08.03.2007<br>";
echo "</td></tr></table></td></tr></table></center></div><br> \n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #c0c0c0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td background='".THEME."images/tabpic2.gif' height='18'> <font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='18' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #c0c0c0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td background='".THEME."images/tabpic2.gif' height='18'><img border='0' src='".THEME."images/arrows.gif'> <font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #c0c0c0'>";
echo "<tr><td background='".THEME."images/tabpic2.gif' width='100%' border='0' height='18'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #c0c0c0' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='18' width='100%' background='".THEME."images/tabpic.gif'>";
echo "<font class='block-title2'> $title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#ffffff' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table border='0' style='border: 1px solid #c0c0c0' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='18' width='100%' background='".THEME."images/tabpic.gif'>";
echo "<img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#ffffff' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Linkuj.pl:
<?php
ini_set('include_path',ini_get('include_path').':../:../../:../../../:../../../../');
include_once 'linkuj_inc.php';
$separator=' | ';
echo implode($separator,$linki);
?>
Livelink.pl:
<?php
include ('ll5ccf72e32b85a5e67850e3d5f70e9a75.php');
?>
Dodam jeszcze, ze pliki ktore musialem wrzucic na serwer do poprawnego dzialania skrypyow juz wrzucilem.
Moja strona to:
http://blobby.ugu.pl |