1
senzaciona
istats problem
  • 2005/3/11 17:47

  • senzaciona

  • Just popping in

  • Posts: 64

  • Since: 2005/3/6 1


i add

.statstable { margin:0px; padding:0px; width:auto; font-size: small; font-weight: normal;}
.stats { vertical-align: bottom; width:625px; margin:0; border: 0;}
.statsimg { vertical-align: bottom; width:25px; text-align:center;}
.statsimgweekday { vertical-align: bottom; font-size: small; font-weight: normal;}
.statswords { border-width: 0; font-size: x-small; background-color: transparent; font-weight: normal; text-align:center; width:25px;}
.statsfore { width: 30%; padding:2px;}
.statsdiv { text-align:center; padding:0px;}

to *.css files and in theme.html i add this
<table width="100%" cellspacing="0">
<tr id="footerbar">
<td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a>
<{if $xoops_isadmin != 1}>
<script type="text/Javascript">
<!--
istat = new Image(1,1);
istat.src = "http://YOUR_XOOPS_SITE_URL/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;
//-->
</script>
<{/if}>
</td>
</tr>
</table>
</body>
</html>

but stats not working. Why not counting my logins.

2
jdseymour
Re: istats problem

In this:

Quote:
"http://YOUR_XOOPS_SITE_URL/


Did you change that to your site URL?

3
senzaciona
Re: istats problem
  • 2005/3/11 18:15

  • senzaciona

  • Just popping in

  • Posts: 64

  • Since: 2005/3/6 1


yes i test in localhost so i write localhost

4
jdseymour
Re: istats problem

So how are you testing exactly. By default istats sets a cookie not to recount the same computer for a certain length of time.

5
senzaciona
Re: istats problem
  • 2005/3/11 18:36

  • senzaciona

  • Just popping in

  • Posts: 64

  • Since: 2005/3/6 1


but i even don't have one record for istats.

all is 0

you can look athttp://mitjab.ibfo/xoops-2.0.9.2

6
dilbert166
Re: istats problem
  • 2005/3/11 18:39

  • dilbert166

  • Just popping in

  • Posts: 74

  • Since: 2004/6/4 1


maybe you´re testing as admin? the script is not called, when you´re in the admin group.

7
senzaciona
Re: istats problem
  • 2005/3/11 18:48

  • senzaciona

  • Just popping in

  • Posts: 64

  • Since: 2005/3/6 1


sorry my adress ishttp://mitjab.info/xoops-2.0.9.2

and it not working even if i loggedout and i am anonymous user

8
sylvainb
Re: istats problem
  • 2005/3/11 19:19

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello senzaciona,

I can't see the javascript code which must be included into your theme.html file (when I edited your website source).
If this javascript isn't present, the module cannot function.

If you're certain that you've added it into your theme.html file, try to erase all files (or at least your *theme.html file) into the templates_c folder of your XOOPS website.

Now, for those which for some time have problems with this module whereas it functioned correctly until now, could you try to see if your webhoster has implemented the mod_security into the apache configuration?
If it is the case, this mod is breaking the module (the url calling by the javascript code is considered as an xss request). I'm actually working on this problem!

9
senzaciona
Re: istats problem
  • 2005/3/11 19:41

  • senzaciona

  • Just popping in

  • Posts: 64

  • Since: 2005/3/6 1


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<head>
<meta http-equiv="content-type" content="text/html; charset=<{$xoops_charset}>" />
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<meta name="robots" content="<{$xoops_meta_robots}>" />
<meta name="keywords" content="<{$xoops_meta_keywords}>" />
<meta name="description" content="<{$xoops_meta_description}>" />
<meta name="rating" content="<{$xoops_meta_rating}>" />
<meta name="author" content="<{$xoops_meta_author}>" />
<meta name="copyright" content="<{$xoops_meta_copyright}>" />
<meta name="generator" content="XOOPS" />
<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>
<link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_url}>/xoops.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<{$xoops_themecss}>" />
<!-- RMV: added module header -->
<{$xoops_module_header}>
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
</script>
</head>
<body>
<table cellspacing="0">
<tr id="header">
<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" alt="" /></a></td>
<td id="headerbanner"><{$xoops_banner}></td>
</tr>
<tr>
<td id="headerbar" colspan="2">&nbsp;</td>
</tr>
</table>

<table cellspacing="0">
<tr>
<td id="leftcolumn">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<{include file="default/theme_blockleft.html"}>
<{/foreach}>
<!-- End left blocks loop -->

</td>

<td id="centercolumn">

<!-- Display center blocks if any -->
<{if $xoops_showcblock == 1}>

<table cellspacing="0">
<tr>
<td id="centerCcolumn" colspan="2">

<!-- Start center-center blocks loop -->
<{foreach item=block from=$xoops_ccblocks}>
<{include file="default/theme_blockcenter_c.html"}>
<{/foreach}>
<!-- End center-center blocks loop -->

</td>
</tr>
<tr>
<td id="centerLcolumn">

<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<{include file="default/theme_blockcenter_l.html"}>
<{/foreach}>
<!-- End center-left blocks loop -->

</td><td id="centerRcolumn">

<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<{include file="default/theme_blockcenter_r.html"}>
<{/foreach}>
<!-- End center-right blocks loop -->

</td>
</tr>
</table>

<{/if}>
<!-- End display center blocks -->

<div id="content">
<{$xoops_contents}>
</div>
</td>

<{if $xoops_showrblock == 1}>

<td id="rightcolumn">
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<{include file="default/theme_blockright.html"}>
<{/foreach}>
<!-- End right blocks loop -->
</td>

<{/if}>

</tr>
</table>

<table width="100%" cellspacing="0">
<tr id="footerbar">
<td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a>
<{if $xoops_isadmin != 1}>
<script type="text/Javascript">
<!--
istat = new Image(1,1);
istat.src = "http://localhost/xoops-2.0.9.2/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;
//-->
</script>
<{/if}>
</td>
</tr>
</table>
</body>
</html>

is that ok

10
sylvainb
Re: istats problem
  • 2005/3/11 20:44

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Again, going to visit your site (http://mitjab.info/xoops-2.0.9.2/modules/news/) I can't see the javascript into the website source.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="sl" lang="sl">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=ISO-8859-2" />
<
meta http-equiv="content-language" content="sl" />
<
meta name="robots" content="index,follow" />
<
meta name="keywords" content="news, technology, headlines, xoops, xoop, nuke, myphpnuke, myphp-nuke, phpnuke, SE, geek, geeks, hacker, hackers, linux, software, download, downloads, free, community, mp3, forum, forums, bulletin, board, boards, bbs, php, survey, poll, polls, kernel, comment, comments, portal, odp, open, source, opensource, FreeSoftware, gnu, gpl, license, Unix, *nix, mysql, sql, database, databases, web site, weblog, guru, module, modules, theme, themes, cms, content management" />
<
meta name="description" content="XOOPS is a dynamic Object Oriented based open source portal script written in PHP." />
<
meta name="rating" content="general" />
<
meta name="author" content="XOOPS" />
<
meta name="copyright" content="Copyright © 2001-2003" />
<
meta name="generator" content="XOOPS" />
<
title>Mitja Bstran Novice</title>
<
link href="http://localhost/xoops-2.0.9.2/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="screen" href="http://localhost/xoops-2.0.9.2/xoops.css" />
<
link rel="stylesheet" type="text/css" media="screen" href="http://localhost/xoops-2.0.9.2/themes/default/styleNN.css" />

<!-- 
RMVadded module header -->

<
script type="text/javascript">
<!--
//--></script><script type="text/javascript" src="http://localhost/xoops-2.0.9.2/include/xoops.js"></script><script type="text/javascript"><!--
//-->
</script>
</
head>
<
body>
  <
table cellspacing="0">
    <
tr id="header">
      <
td id="headerlogo"><a href="http://localhost/xoops-2.0.9.2/"><img src="http://localhost/xoops-2.0.9.2/themes/default/logo.gif" width="150" height="80" alt="" /></a></td>
      <
td id="headerbanner"><div><a href="http://localhost/xoops-2.0.9.2/banners.php?op=click&bid=1" target="_blank"><img src="http://localhost/xoops-2.0.9.2/images/banners/xoops_banner.gif" alt="" /></a></div></td>
    </
tr>

    <
tr>
      <
td id="headerbar" colspan="2">&nbsp;</td>
    </
tr>
  </
table>

  <
table cellspacing="0">
    <
tr>
      <
td id="leftcolumn">
        <!-- 
Start left blocks loop -->

                  <
div class="blockTitle">Prijava</div>
<
div class="blockContent"><form style="margin-top: 0px;" action="http://localhost/xoops-2.0.9.2/user.php" method="post">
    
Uporabniško ime: <br />
    <
input type="text" name="uname" size="12" value="" maxlength="25" /><br />
    
Geslo: <br />
    <
input type="password" name="pass" size="12" maxlength="32" /><br />
    <!-- <
input type="checkbox" name="rememberme" value="On" class ="formButton" /><br /> //-->
    
<input type="hidden" name="xoops_redirect" value="/xoops-2.0.9.2/modules/news/" />

    <
input type="hidden" name="op" value="login" />
    <
input type="submit" value="Prijava" /><br />
    
</
form>
<
a href="http://localhost/xoops-2.0.9.2/user.php#lost">Ste izgubili geslo?</a>
<
br /><br />
<
a href="http://localhost/xoops-2.0.9.2/register.php">Registriraj se!</a></div>                  <div class="blockTitle">Glavni meni</div>
<
div class="blockContent"><table cellspacing="0">
  <
tr>
    <
td id="mainmenu">

      <
class="menuTop" href="http://localhost/xoops-2.0.9.2/">Domov</a>
      <!-- 
start module menu loop -->
            <
class="menuMain" href="http://localhost/xoops-2.0.9.2/modules/articles/">&#268;lanki</a>
                    
<class="menuMain" href="http://localhost/xoops-2.0.9.2/modules/contact/">Kontaktirajte me</a>
                    <
class="menuMain" href="http://localhost/xoops-2.0.9.2/modules/mylinks/">Spletne povezave</a>
                    <
class="menuMain" href="http://localhost/xoops-2.0.9.2/modules/news/">Novice</a>

                  <
class="menuSub" href="http://localhost/xoops-2.0.9.2/modules/news/submit.php">Pošlji novico</a>
                  <
class="menuSub" href="http://localhost/xoops-2.0.9.2/modules/news/archive.php">Arhiv</a>
                    <
class="menuMain" href="http://localhost/xoops-2.0.9.2/modules/xoopspoll/">Ankete</a>
                    <
class="menuMain" href="http://localhost/xoops-2.0.9.2/modules/istats/">Statistike obiskov</a>
                    <!-- 
end module menu loop -->
    </
td>
  </
tr>

</
table></div>                  <div class="blockTitle">Števec obiskov</div>
<
div class="blockContent"><script language="JavaScript" src='http://localhost/xoops-2.0.9.2/modules/count/index.php?id=count&s=1'></script></div>                <!-- End left blocks loop -->

      </
td>

      <
td id="centercolumn">

        <!-- 
Display center blocks if any -->
        
        <
table cellspacing="0">

          <
tr>
            <
td id="centerCcolumn" colspan="2">

            <!-- 
Start center-center blocks loop -->
                        <!-- 
End center-center blocks loop -->

            </
td>
          </
tr>
          <
tr>
            <
td id="centerLcolumn">

            <!-- 
Start center-left blocks loop -->
                          <!-- 
End center-left blocks loop -->

            </
td><td id="centerRcolumn">

            <!-- 
Start center-right blocks loop -->
                              <
div style="padding: 0px 5px 0px 0px;">
  <
fieldset>
    <
legend class="blockTitle">Nedavni &#269;lanki</legend>

    
<div class="blockContent"><ul>
    <
li> <a href="http://localhost/xoops-2.0.9.2/modules/articles/article.php?id=2">MySQL ukazi</a> <!--[2005-03-06 19:29:49]--></li>
    <
li> <a href="http://localhost/xoops-2.0.9.2/modules/articles/article.php?id=1">Namestitev Apache...</a> <!--[2005-03-06 19:28:20]--></li>
</
ul></div>
  </
fieldset>
</
div>                          <!-- End center-right blocks loop -->

            </
td>
          </
tr>
        </
table>

                <!-- 
End display center blocks -->

        <
div id="content">
            <
div style="text-align: center;">
    <
form name="form1" action="index.php" method="get">

    <
select name='storytopic'>
<
option value='0'>----</option>
<
option value='1'>Svet ra&#269;unalništva</option>
</select>
 <
select name="storynum"><option value="5" selected="selected">5</option><option value="10">10</option><option value="15">15</option><option value="20">20</option><option value="25">25</option><option value="30">30</option></select> <input type="submit" value="Pojdi!" /></form>
  </
div>

<!-- 
start news item loop -->
  <
div class="item">
  <
div class="itemHead"><span class="itemTitle"><a href='http://localhost/xoops-2.0.9.2/modules/news/index.php?storytopic=1'>Svet ra&#269;unalništva</a>&nbsp;:&nbsp;<a href='http://localhost/xoops-2.0.9.2/modules/news/article.php?storyid=2'> PostgreSQL 8.0</a></span></div>
  
<div class="itemInfo">
    <
span class="itemPoster">Avtor <a href='http://localhost/xoops-2.0.9.2/userinfo.php?uid=1'>senzacionale</a></span> <span class="itemPostDate">ob 7.3.2005 9:43:41</span> (<span class="itemStats">1 prebrano</span>)
  </
div>

  <
div class="itemBody">
    <
a href='http://localhost/xoops-2.0.9.2/modules/news/index.php?storytopic=1'><img src='http://localhost/xoops-2.0.9.2/modules/news/images/topics/favicon.gif' alt='Svet ra&#269;unalništva' hspace='10' vspace='10' align='right' /></a>
    <
class="itemText"><p align=justify><br />Izšla je nova razli&#269;ica podatkovne baze PostgreSQL, ki nosi oznako 8.0. Prinaša obilico novosti: dolgo pri&#269;akovano podporo za operacijski sistem Windows, možnost uporabe "savepointov", ki omogo&#269;ajo razveljavitev samo dolo&#269;enega dela transakcije, na podro&#269;ju varovanja pred izgubo podatkov je na voljo "point-in-time recovery", za razdelitev podatkovne baze na ve&#269; diskov pa podpora za podatkovne prostore. Prav tako je pove&#269;ana zmogljivost ob visokih obremenitvah; precejšen del aplikacij pa je tudi poslovenjen.<br /><br />Ve&#269; informacij je na voljo na <a href="http://www.postregsql.org">postgresql.org</a> in na <a href="http://www.pg-si.com.">pg-si.com<a/>.<br /><p align=justify></p>
  
</div>
  <
div class="itemFoot">

    <
span class="itemAdminLink"></span> <span class="itemPermaLink"><a href="http://localhost/xoops-2.0.9.2/modules/news/article.php?storyid=2">Komentar?</a></span>
  </
div>
</
div>  <br />
  <
div class="item">
  <
div class="itemHead"><span class="itemTitle"><a href='http://localhost/xoops-2.0.9.2/modules/news/index.php?storytopic=1'>Svet ra&#269;unalništva</a>&nbsp;:&nbsp;<a href='http://localhost/xoops-2.0.9.2/modules/news/article.php?storyid=1'>Microsoft trdi, da je varnost Linuxa mit</a></span></div>
  
<div class="itemInfo">

    <
span class="itemPoster">Avtor <a href='http://localhost/xoops-2.0.9.2/userinfo.php?uid=1'>senzacionale</a></span> <span class="itemPostDate">ob 6.3.2005 18:21:18</span> (<span class="itemStats">2 prebrano</span>)
  </
div>
  <
div class="itemBody">
    <
a href='http://localhost/xoops-2.0.9.2/modules/news/index.php?storytopic=1'><img src='http://localhost/xoops-2.0.9.2/modules/news/images/topics/favicon.gif' alt='Svet ra&#269;unalništva' hspace='10' vspace='10' align='right' /></a>
    <
class="itemText"><p align="justify"><br />Predstavnik Microsofta v Veliki BritanijiNick McGrathje pred dnevi medije obvestil <a href="http://www.vnunet.com/news/1160853/">o grozni napaki</a>, ki jo dela strokovna javnost v zvezi s poudarjanjem pregovorno varnega Linux okolja v primerjavi z Windows okoljemPredvsem izpostavi dejstvoda v svetu Linuxa nih&#269;e ni odgovoren za napake, ki se pojavijo v jedru. Tako Red Hat ne more sprejeti odgovornosti za te napake, saj sam ne programira jedra, ampak pripravlja le distribucijo. (Pri tem pozablja, da Red Hat sprotno popravlja odkrite napake in ima lasten sistem za zagotavljanje kakovosti za stranke, ki takšno podporo potrebujejo.)<br /><br />Prav tako ga moti kopica dejstev, ki nimajo ni&#269; z varnostjo Linuxa. Prepri&#269;an je, da Linux ni pripravljen za t.i. mission-critical naloge, pri katerih si ne moremo privoš&#269;iti niti sekundnega izpada. To argumentira z dejstvi, da ni enotnega sistema za prijavo (Microsoft ima .Net Passport) in pomanjkanje enotnega razvojnega okolja.<br /><br />Vsekakor je vrhunec prispevka njegova omemba dejstva, da "odprtokodni razvojni model ustvarja varnostne probleme že v samem bistvu." Kakšni pa so ti problemi, nam žal v prispevku ne uspe razkriti.<br /><p align="justify"></p>

  
</div>
  <
div class="itemFoot">
    <
span class="itemAdminLink"></span> <span class="itemPermaLink"><a href="http://localhost/xoops-2.0.9.2/modules/news/article.php?storyid=1">Komentar?</a></span>
  </
div>
</
div>  <br />
<!-- 
end news item loop -->

<
div style="text-align: right; margin: 10px;"></div>

        </
div>

      </
td>

      
      <
td id="rightcolumn">
        <!-- 
Start right blocks loop -->
                  <
div class="blockTitle">&#269;i</div>
<div class="blockContent"><form style="margin-top: 0px;" action="http://localhost/xoops-2.0.9.2/search.php" method="get">
  <
input type="text" name="query" size="14" /><input type="hidden" name="action" value="results" /><br /><input type="submit" value="Iš&#269;i" />
</
form>
<
a href="http://localhost/xoops-2.0.9.2/search.php">Napredno iskanje</a></div>                  <div class="blockTitle">Prisotni uporabniki</div>

<
div class="blockContent"><b>2</buporabnikov povezanih (<b>1</buporabnikov brska po <b>Novice</b>)<br /><br />&#268;lani: 0<br />Gosti: 2<br /><br /> <a href="javascript:openWithSelfMain('http://localhost/xoops-2.0.9.2/misc.php?action=showpopups&type=online','Online',420,350);">ve&#269;...</a></div>                  <div class="blockTitle">Novi &#269;lani</div>
<div class="blockContent"><table cellspacing="1" class="outer">
      <
tr class="even" valign="middle">

      <
td align="center">
            <
a href="http://localhost/xoops-2.0.9.2/userinfo.php?uid=2">Juventus</a>
      </
td>
      <
td align="center">7.3.2005</td>
    </
tr>
      <
tr class="odd" valign="middle">
      <
td align="center">
            <
a href="http://localhost/xoops-2.0.9.2/userinfo.php?uid=1">senzacionale</a>

      </
td>
      <
td align="center">6.3.2005</td>
    </
tr>
  </
table></div>                  <div class="blockTitle">Ankete</div>
<
div class="blockContent"><form style="margin-top: 1px;" action="http://localhost/xoops-2.0.9.2/modules/xoopspoll/index.php" method="post">
<
table class="outer" cellspacing="1">
  <
tr>
    <
th align="center" colspan="2"><input type="hidden" name="poll_id" value="1" />Kdo bo letos osvojil Scudeto?</th>

  </
tr>

    <
tr class="even">
    <
td align="center"><input type="radio" name="option_id" value="1" /></td>
    <
td align="left">Juventus</td>
  </
tr>
    <
tr class="odd">
    <
td align="center"><input type="radio" name="option_id" value="2" /></td>
    <
td align="left">Milan</td>

  </
tr>
    <
tr class="even">
    <
td align="center"><input type="radio" name="option_id" value="3" /></td>
    <
td align="left">Fiorentina</td>
  </
tr>
    <
tr class="odd">
    <
td align="center"><input type="radio" name="option_id" value="4" /></td>
    <
td align="left">Lazio</td>

  </
tr>
    <
tr class="even">
    <
td align="center"><input type="radio" name="option_id" value="5" /></td>
    <
td align="left">Lazio</td>
  </
tr>
    <
tr class="odd">
    <
td align="center"><input type="radio" name="option_id" value="6" /></td>
    <
td align="left">Parma</td>

  </
tr>
    <
tr class="even">
    <
td align="center"><input type="radio" name="option_id" value="7" /></td>
    <
td align="left">Inter</td>
  </
tr>
    <
tr class="odd">
    <
td align="center"><input type="radio" name="option_id" value="8" /></td>
    <
td align="left">Kdo drugi</td>

  </
tr>
  
  <
tr>
    <
td class="foot" align="center" colspan="2"><input type="submit" value="Glasuj!" /> <input type="button" value="Rezultati" onclick="location='http://localhost/xoops-2.0.9.2/modules/xoopspoll/pollresults.php?poll_id=1'" /></td>
  </
tr>
</
table>
</
form>
</
div>                <!-- End right blocks loop -->
      </
td>

      
    </
tr>

  </
table>

  <
table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img src="http://localhost/xoops-2.0.9.2/themes/default/poweredby.gif" alt="" /></a></td>
    </
tr>
  </
table>
</
body>
</
html>

Login

Who's Online

94 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 94


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits