Statystyki Strony

Wszystko związane ze skryptami JS, DHTML itd.
wolf3092
Posty: 7
Rejestracja: 07 sie 2009, 09:03:58
Strona na CBA.pl: www.animemax-online.cba.pl
Płeć: Niewybrana
User Agent: Chrome Windows 1366x768

Statystyki Strony

Post autor: wolf3092 »

Witam. Mam problem mianowicie chce umieścić na swojej stronie statystyki ale po wklejeniu kodu w panel nic się nie dzieje. Panel w ogóle się nie pokazuje :evil:. Może trzeba wkleić to gdzieś indziej?

Kod: Zaznacz cały

 <script language="javascript" type="text/javascript">
<!--

  // Start hit counter code for Statystyki-Stron.pl
  var data = '&r=' + escape(document.referrer)
    + '&n=' + escape(navigator.userAgent)
    + '&p=' + escape(navigator.userAgent)
    + '&g=' + escape(document.location.href);

  if (navigator.userAgent.substring(0,1)>'3')
    data = data + '&sd=' + screen.colorDepth 
    + '&sw=' + escape(screen.width+'x'+screen.height);

  document.write('<a href="http://www.statystyki-stron.pl" target="_blank" >');
  document.write('<img border=0 hspace=0 '+'vspace=0 src="http://www.statystyki-stron.pl/counter.php?i=7747' + data + '">');
  document.write('</a>');
  // End hit counter code for Statystyki-Stron.pl

// -->
</script>
Próbowałem rejestrować się także na innych stronach i od nich pobierać kod ale sytuacja była ta sama. Co mam z tym fantem zrobić?

Proszę o pomoc

Pozdrawiam
Awatar użytkownika
Koskel
Posty: 91
Rejestracja: 17 sie 2009, 22:42:51
Strona na CBA.pl: http://demo.y0.pl/
Lokalizacja: 9203afaf9d
Płeć: Mężczyzna
User Agent: Safari MacOS 1024x768
Kontakt:

Re: Statystyki Strony

Post autor: Koskel »

Ehh... Otóż masz edytować plik ze twoją stroną i wkleić ten kod. Potrzebny jest on by zbierał dane o userach oglądających twoją stronę. Przykład potrzebny?
http://demo.cba.pl - Czeka na odpalenie ;)
wolf3092
Posty: 7
Rejestracja: 07 sie 2009, 09:03:58
Strona na CBA.pl: www.animemax-online.cba.pl
Płeć: Niewybrana
User Agent: Chrome Windows 1366x768

Re: Statystyki Strony

Post autor: wolf3092 »

Czyli gdzie dokładnie mam wkleić ten skrypt? W jakiś plik na serwerze? Czy może w skórkę? Wcześniej miałem stronę na **** i tam wystarczyło nowy panel utworzyć ale tutaj to inna bajka ;) Jeśli to pomoże to mam zainstalowane EF IV.
Awatar użytkownika
Koskel
Posty: 91
Rejestracja: 17 sie 2009, 22:42:51
Strona na CBA.pl: http://demo.y0.pl/
Lokalizacja: 9203afaf9d
Płeć: Mężczyzna
User Agent: Safari MacOS 1152x864
Kontakt:

Re: Statystyki Strony

Post autor: Koskel »

Wcześniej miałem stronę na **** i tam wystarczyło nowy panel utworzyć ale tutaj to inna bajka
Przykład lenistwa w praktyce :P A tak po linii idąc to też się nie wysilasz korzystając ze zewnętrznych statsów. eStats-y Emdek-a to jest to ;)

Cóż jak masz PHP-Fusion mod. ExtremePack v. 4 to ja bym spróbował wkleić w skórkę (najlepiej tam gdzie masz buttony, czy w stopce). Wklej tam ten kod, a następnie wejdź na twoją stronę, następnie podejrzyj kod źródłowy szukając kodu statystyk (najlepiej posłużyć się urwykiem kodu) np.

Kod: Zaznacz cały

document.write('<a href="http://www.statystyki-stron.pl" target="_blank" >');  
Jeżeli nie znajdziesz nic, wciśnij gdzieś ten kod w pliku index.php to już powinno pomóc. Jak nie zadziała, przejdź na produkt "innej firmy" :)
http://demo.cba.pl - Czeka na odpalenie ;)
wolf3092
Posty: 7
Rejestracja: 07 sie 2009, 09:03:58
Strona na CBA.pl: www.animemax-online.cba.pl
Płeć: Niewybrana
User Agent: Chrome Windows 1366x768

Re: Statystyki Strony

Post autor: wolf3092 »

Prawdopodobnie dodaje ten kod w złym miejscu w skórce :(.
<?
/*--------------------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2006 |
| web: http://www.php-fusion.co.uk |
| email: nick@php-fusion.co.uk |
|---------------------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------------------*/
/*------------------------------------------------------+
| IMC Theme for PHP-Fusion v6 |
|---------------------------------------------------------|
| author: [-DT-] © 2005-2007 |
| web: http://www.holstebronx.com |
| email: dennis_ostergaard@msn.com |
+--------------------------------------------------------*/

$body_text = "#cccccc";
$body_bg = "#373737";
$theme_width = "920";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='left' valign='top'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='left' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td align='left' width='60%' background='".THEME."images/logo_bg.gif' height='100'><img

src='".THEME."images/newlogo.jpg'></td>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='0' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif' alt=''> "; } 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."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td align='right' class='cellpic' nowrap><strong>";
echo "<div align='right' class='date' id='Clock'></div>";
echo "<script type='text/javascript'>
<!--
var DayNam = new Array(
'Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota');
var MnthNam = new Array(


'Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień');
//-->
</script>";
echo "<div align='right' class='date'><script type='text/javascript' src='".THEME."/js/clock.js'></script></div>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#373737' cellspacing='0' border='0'>";
}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='30'>";
echo "<tr><td class='footer' valign='middle' width='35%'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' target='blank'><b>PHP-Fusion</b></a> &copy; 2003-2006";
}
echo "</td>";
echo "<td class='footer' align='center' width='22%'>";
echo "IMC Theme by: <a href='http://www.holstebronx.com' target='blank'><b>DT</b></a>";
echo "</td>";
echo "<td class='footer' align='right' width='33%'><span class='stats'><b>".$settings['counter']."</b></span>

".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></center></table></table></table>\n";
}


function render_news($subject, $news, $info) {

global $locale;

echo "<table style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic.gif' height='23'><img src='".THEME."images/arrow.gif' alt=''

hspace='3'><font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='news'><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'>&nbsp;";
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='24' 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']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

echo "<table style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic.gif' height='24'><img src='".THEME."images/arrow.gif' alt=''

hspace='3'><font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' 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']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

function opentable($title) {

echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #202020'>";
echo "<tr><td background='".THEME."images/cellpic.gif' bgcolor='#373737' height='23'><font

class='head-title'>&nbsp;$title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td class='main-body'>\n";
}

function closetable() {
echo "</td></tr></table>\n";
}

function openside($title) {

echo "<table style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic.gif'>";
echo "<center><img src='".THEME."images/arrow.gif' alt='' hspace='3'><font class='block-title'>$title</font><img

src='".THEME."images/arrowb.gif' alt='' hspace='3'></center>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body' width='100%'>";
}

function closeside() {
echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
tablebreak();
}

function opensidex($title,$open="on") {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

echo "<table border='0' style='border: 1px solid #202020' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic.gif'>";
echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt=''

onclick=\"javascript:flipBox('$boxname')\"><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":"").">\n";
}


function closesidex() {

echo "</div></td></tr></table>";
tablebreak();
}

function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Gdzie ten kod trzeba dodać? Jak dodawałem to po wgraniu tego pliku na serwer na stronie nie było nic. Tylko reklama została po niej.
Gdy wrzuciłem stary plik wszystko było ok. Co robić?

Jeżeli nie znajdziesz nic, wciśnij gdzieś ten kod w pliku index.php to już powinno pomóc.
Ale w jaki index.php ? Tam jest ich kilka. Czy ten w głównym katalogu? Czy może ten w katalogu themes ? A może w całkiem innym?

Proszę o pomoc
ODPOWIEDZ