Witam!
Męcze i męcze się z tym.
Chciałbym mieć licznik odwiedzin na mojej stronie (www.bohaterowieje...) w stopce.
Gdzie mam wstawić ten kawałek, abym w stopce ładnie miał licznik odwiedzin ?
echo "<td align='right' class='sub-header'>[b]".showcounter()."[/b]</td>\n";
Tutaj jest mój plik theme.php
<?
$body_text = "#332A0F";
$body_bg = "#E4DDCB";
$theme_width = "100%";
$theme_width_l = "185";
$theme_width_r = "185";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td class='side_mleft'><img width='43' src='".THEME."images/side_mleft.gif' height='1' alt=''></td>
<td class='mbody' align='right'>$header_content<br>
<table width='100%' align='center' cellspacing='0' cellpadding='0'>
<tr>
<td width='11' height='25'><img src='".THEME."images/menu_01.gif' width='11' height='25' alt=''></td>
<td class='menu'>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo " \n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/bullet_menu.gif' width='7' height='7' alt=''>\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>
<td class='menu' align='right'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>
<td width='11' height='25'><img src='".THEME."images/menu_03.gif' width='11' height='25' alt=''></td>
</tr>
</table>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bottom_01.gif' width='10' height='10' alt=''></td>
<td class='bottom_top'><img src='".THEME."images/bottom_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/bottom_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='bottom_left'><img src='".THEME."images/bottom_04.gif' width='10' height='1' alt=''></td>
<td class='mbottom' align='right'>Powered by: <b><a href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> <br>
<b>voodz</b> theme by: <b><a href='http://webmer.tk' target='_blank'>sonar</a></b></td>
<td class='bottom_right'><img src='".THEME."images/bottom_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/bottom_07.gif' width='10' height='23' alt=''></td>
<td class='bottom_bottom'><img src='".THEME."images/bottom_08.gif' width='1' height='23' alt=''></td>
<td><img src='".THEME."images/bottom_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>
</td>
<td class='side_mright'><img width='43' src='".THEME."images/side_mright.gif' height='1' alt=''></td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $settings,$locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.gif' width='10' height='10' alt=''></td>
<td class='table_top'><img src='".THEME."images/table_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/table_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='table_left'><img src='".THEME."images/table_04.gif' width='10' height='1' alt=''></td>
<td class='side-body2'><b>$subject</b><br>$news
<br>
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ~\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ~
".$info['news_reads'].$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a>
</td>
<td class='table_right'><img src='".THEME."images/table_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/table_07.gif' width='10' height='23' alt=''></td>
<td class='table_bottom' align='center'><img src='".THEME."images/table_10.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/table_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.gif' width='10' height='10' alt=''></td>
<td class='table_top'><img src='".THEME."images/table_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/table_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='table_left'><img src='".THEME."images/table_04.gif' width='10' height='1' alt=''></td>
<td class='side-body2'><b>$subject</b><br>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br>
<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif' width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ~
".$info['article_reads'].$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' >
</td>
<td class='table_right'><img src='".THEME."images/table_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/table_07.gif' width='10' height='23' alt=''></td>
<td class='table_bottom' align='center'><img src='".THEME."images/table_10.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/table_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/table_01.gif' width='10' height='10' alt=''></td>
<td class='table_top'><img src='".THEME."images/table_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/table_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='table_left'><img src='".THEME."images/table_04.gif' width='10' height='1' alt=''></td>
<td class='side-body2'><b>$title</b><br>\n";
}
function closetable() {
echo "</td>
<td class='table_right'><img src='".THEME."images/table_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/table_07.gif' width='10' height='23' alt=''></td>
<td class='table_bottom' align='center'><img src='".THEME."images/table_10.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/table_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n";
}
function openside($title) {
global $p_data;
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/panel_01.gif' width='10' height='10' alt=''></td>
<td class='panel_top'><img src='".THEME."images/panel_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/panel_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='panel_left'><img src='".THEME."images/panel_04.gif' width='10' height='1' alt=''></td>
<td class='side-body'><b>$title</b><br>\n";
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td>
<td class='panel_right'><img src='".THEME."images/panel_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/panel_07.gif' width='10' height='23' alt=''></td>
<td class='panel_bottom'><img src='".THEME."images/panel_10.gif' width='165' height='23' alt=''></td>
<td><img src='".THEME."images/panel_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>"; }
else {
echo "</td>
<td class='panel_right'><img src='".THEME."images/panel_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/panel_11.gif' width='10' height='23' alt=''></td>
<td class='panel_bottom'><img src='".THEME."images/panel_13.gif' width='165' height='23' alt=''></td>
<td><img src='".THEME."images/panel_12.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n";
}
tablebreak();
}
function opensidex($title,$open="on") {
global $p_data;
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/panel_01.gif' width='10' height='10' alt=''></td>
<td class='panel_top'><img src='".THEME."images/panel_02.gif' width='1' height='10' alt=''></td>
<td><img src='".THEME."images/panel_03.gif' width='10' height='10' alt=''></td>
</tr>
<tr>
<td class='panel_left'><img src='".THEME."images/panel_04.gif' width='10' height='1' alt=''></td>
<td class='side-body'><b>$title</b> <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</div>
</td>
<td class='panel_right'><img src='".THEME."images/panel_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/panel_07.gif' width='10' height='23' alt=''></td>
<td class='panel_bottom' align='center'><img src='".THEME."images/panel_10.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/panel_09.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n"; }
else {
echo "</div>
</td>
<td class='panel_right'><img src='".THEME."images/panel_06.gif' width='10' height='1' alt=''></td>
</tr>
<tr>
<td><img src='".THEME."images/panel_11.gif' width='10' height='23' alt=''></td>
<td class='panel_bottom' align='center'><img src='".THEME."images/panel_13.gif' width='287' height='23' alt=''></td>
<td><img src='".THEME."images/panel_12.gif' width='10' height='23' alt=''></td>
</tr>
</table>\n"; }
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='2'></td>
</tr>
</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Proszę o odpowiedź i pozdrawiam :) |