Fork me on GitHub






ou mettre le code istats
Team FrXoops
Inscrit: 20/02/2006 23:21
Messages: 1162
bjr!! je vien d'installer i-Stats sur mon site!! j'ai fais tous les insctructions! sauf que je ne sais pas ou je peux mettre le code dans mon theme.html

voila le code sourcce de mon theme.html :
<!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 name="robots" content="noarchive">
<
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_pagetitle}>, <{$xoops_meta_keywords}>" />
<
meta name="Description" content="<{$xoops_pagetitle}>, <{$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="revisit-after" content="7">
<
meta name="Identifier-URL" content="http://www.marocanisme.com">
<
meta name="Replay-to" content="admin@marocanisme.com">
<
meta name="generator" content="Xoops" />
<
title><{$xoops_pagetitle}> :: <{$xoops_sitename}></title>
<
link href="<{$xoops_url}>/icone.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_url}>/themes/v2.8/theme.css" />
<
link rel="alternate" type="application/xml" title="RSS" href="<{$xoops_url}>/backend.php" />
<!-- 
RMVadded module header -->
<{
$xoops_module_header}>
<
script type="text/javascript">
<!--
<{
$xoops_js}>
//-->
</script>
<script type="text/javascript">
function toggle(notifs_form) 
{
obj=document.getElementById(notifs_form);
obj.style.display=!(obj.style.display=="block")? "block" : "none";  
}
function swapimage(swap)
{
img_plus="<{$xoops_imageurl}>images/plus.gif";
img_minus="<{$xoops_imageurl}>images/minus.gif";
obj=document.getElementById(swap);
obj.src=!(obj.src==img_minus)? img_minus : img_plus;  
}
</script>
</head>
<body><noscript><h1><{$xoops_pagetitle}></h1></noscript>
<div align="center" id="obCenter"> 
 <table align="center" cellspacing="0" id="obLayout"> 
   <tr> 
    <td rowspan="5" id="obSHL" ><img src="<{$xoops_imageurl}>/images/1px.gif" width="17" height="1" alt="" /></td> 
      <td id="obR1" ></td> 
     <td rowspan="5" id="obSHR" ><img src="<{$xoops_imageurl}>/images/1px.gif" width="17" height="1" alt="" /></td> 
    </tr> 
    <tr> 
 <td ><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.GIF" alt="MaroCanisme.com" title="MaroCanisme.com" /></a></td> 
    </tr> 
      <td><table id="obNav" cellspacing="0" width="966">            
            <td width="300" class="obNavWidth" ><span lang="fr">
            <form name="form2" class="formhaut" method="get" action="<{$xoops_url}>/search.php" style="text-align: left">
                <input name="query" type="text" class="form" value="Rechercher..." onblur="if(this.value=='') this.value='Rechercher...';" onfocus="if(this.value=='Rechercher...') this.value='';" type="text" size="12"/>
                <input type="hidden" name="action" value="results" />
                <input type="submit" value="Ok" /><font face="ADMUI3Lg"> </font>
                <font color="#000080" face="ADMUI3Lg" size="2">>></font><font face="ADMUI3Lg" size="2"><a href="/search.php">Recherche 
                avancée</a></font></form></span></td> 
            <td align="right" id="menuhaut" width="549">
                <form name="navigate" method="get"><td align="right"><select name="go" style="background-color: #f5f5f5; font-size: 10px; font-family: Arial, Helvetica, sans-serif;" onchange="window.location = navigate.go.options[navigate.go.selectedIndex].value;">
          <option>Selection...</option>
          <option value="/index.php">-Accueil</option>
          <option value="/modules/news/">-Actualités</option>
          <option value="/modules/newbb/">-Forums</option>
          <option value="/modules/xoopspoll/">-Sondages</option>
          <option value="/modules/xcgal/">-Galerie photos</option>
          <option value="/modules/smartmedia/">-Multimedia</option>
          <option value="/modules/weblinks/">-Annuaire Web</option>
          <option value="/modules/catads/">-Annonces</option>
          <option value="/modules/wordbook/">-Dico Maroc</option>
          <option value="/horoscope/">-Horoscope</option>
          <option value="/modules/snx_weather/">-Météo Maroc</option>
          <option value="/modules/MadGames/">-Jeux Flash</option>
          <option value="/modules/ircmod/">-Chat</option>
          <option value="/modules/smartpartner/">-Partenaire</option>
          <option value="/modules/smartfaq/">-FAQ</option>
          <option value="/modules/liaise/index.php?form_id=3">-Contactez-nous</option>
          </select></td>
        </form>
            </td></td> 
            <td class="obNavWidth" width="0" ></td> 
          </tr> 
        </table></td> 
    </tr> 
    <tr> 
      <td><table id="obMn" cellspacing="0"> 
          <tr> 
            <td id="leftcolumn" > 
              <!-- Start left blocks loop -->
              <{foreach item=block from=$xoops_lblocks}> <{include file="v2.8/obblock_l.html"}> 
              <{/foreach}> <br /> 
              <img src="<{$xoops_imageurl}>/images/1px.gif" class="obSpacer" alt="" /> 
              <!-- End left blocks loop --></td> 
            <td id="centercolumn" ><{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="v2.8/obblock_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="v2.8/obblock_c.html"}> <{/foreach}> 
                    <!-- End center-left blocks loop --> </td> 
                  <td id="centerRcolumn"> <!-- Start center-right blocks loop --> 
<{foreach item=block from=$xoops_crblocks}> <{include file="v2.8/obblock_c.html"}> <{/foreach}> 
                    <!-- End center-right blocks loop --> </td> 
                </tr> 
              </table> 
<{/if}> 
              <div id="content">
               <{$xoops_contents}>
              </div>
              <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
        <table cellspacing="0">
        <{if $xoBlocks.page_bottomcenter}>
        <tr><td id="bottomCcolumn" colspan="2">
            <{foreach from=$xoBlocks.page_bottomcenter item=block}><div style="padding: 5px;">
  <fieldset>
    <legend class="blockTitle"><{$block.title}></legend>
    <div class="blockContent"><{$block.content}></div>
  </fieldset>
</div><{/foreach}>
            </td>
        </tr>
        <{/if}>
        <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
        <tr>
            <td id="bottomLcolumn">
                <{foreach from=$xoBlocks.page_bottomleft item=block}><div style="padding: 0px 0px 0px 8px;">
  <fieldset>
    <legend class="blockTitle"><{$block.title}></legend>
    <div class="blockContent"><{$block.content}></div>
  </fieldset>
</div><{/foreach}>
            </td>
            <td id="bottomRcolumn">
                <{foreach from=$xoBlocks.page_bottomright item=block}><div style="padding: 0px 5px 0px 0px;">
  <fieldset>
    <legend class="blockTitle"><{$block.title}></legend>
    <div class="blockContent"><{$block.content}></div>
  </fieldset>
</div><{/foreach}>
            </td>
        </tr>
        <{/if}>
        </table>
        <{/if}>
              <br /> 
              <br /> 
              <br /> 
              <table cellspacing="0"> 
                <tr> 
                  <td id="cmsFooter" >
<hr color="#000000" size="1">
&nbsp;<p><{$xoops_banner}><br><br>
</p>
<hr color="#000000" size="1">
<span lang="fr"><b><a href="http://www.marocanisme.com/">
MaroCanisme</a></b> </span>est un portail<span lang="fr"> <b>
marocain</b> participatif,</span> mettant a la disposition de ses visiteurs : 
les <a href="/modules/news/">Actualités du Maroc et du monde</a>,
<a href="/modules/xcgal/">des albums photos</a>, <a href="/modules/catads/">des 
petites annonces gratuites</a>, <a href="/modules/newbb/">des forums de 
discussion</a>, <a href="/modules/snx_weather/">les prévisions <span lang="fr">
météo</span></a> des villes marocaines, <a href="/modules/weblinks/">un annuaire 
gratuit</a> de sites web, <a href="/modules/ircmod/">un espace chat</a> et bien 
d'autres choses à découvrir.<br><br>
<br><a href="/modules/rss/rss.php">
<img border="0" src="/modules/newbb/images/rss-a.gif" alt="Flux RSS" title="Flux RSS" width="36" height="14"></a><p>
<span lang="fr"><a href="/modules/pages/index.php?op=refer">Recommander-nous</a>
</span>|<span lang="fr"> <a href="/faire-un-lien/">Faire un lien</a> </span>|<span lang="fr">
<a href="/apropos/">A propos</a> </span>|<span lang="fr">
<a href="/modules/sitemap/">Plan du site</a></span></td> 
               </tr> 
                <tr> 
                  <td id="obBanner" ><span lang="fr">Copyright (c) 2006 </span>|<span lang="fr">
                    </span>Hébergé par 
                    <a href="http://www.itineweb.com/">Itineweb</a><span lang="fr">
                    </span>|<span lang="fr"> Powered By
                    <a href="http://www.xoops.org">Xoops</a></span></a></td>
                </tr> 
              </table></td> 
<{if $xoops_showrblock == 1}> 
            <td id="rightcolumn" ><{foreach item=block from=$xoops_rblocks}> <{include 
            file="v2.8/obblock_l.html"}> <{/foreach}><br /> 
            <img src="<{$xoops_imageurl}>/images/1px.gif" class="obSpacer" alt="" /></td> 
<{/if}> </tr> 
       </table></td> 
    </tr> 
    <tr> 
      <td id="obFooter" height="38" ><a href="http://www.mozilla.fr"> 
      <img src="/images/firefox.gif" alt="MaroCanisme conseille FireFox !!" title="MaroCanisme conseille FireFox !!" 
     </a></td>
    </tr> 
    <tr> 
      <td id="obLBC" >&nbsp;</td>
      <td id="obSHB" >&nbsp;Page Load Statistics: <{php}> $querycount = 0; foreach ($GLOBALS['xoopsLogger']->queries as $context) { $querycount += count($context); } echo round(($GLOBALS['xoopsLogger']->dumpTime()), 3)." Seconds | ".$querycount." Queries"; <{/php}></td>
      <td id="obRBC" >&nbsp;</td> 
    </tr> 
  </table> 
</div> 
</body>
</html>

merci d'avance !

Posté le : 19/09/2006 14:10

Edité par kris sur 19/09/2006 20:07:14
Edité par kris sur 19/09/2006 20:12:16
Partager Twitter Partagez cette article sur GG+
Re: ou mettre le code
Xoops accro
Inscrit: 15/07/2004 11:16
Messages: 4763
salut,
je n'utilise pas i-stats, qu'est-ce qui est donné comme consigne ?
tu peux nous coller l'indication qu'ils te donnent ?

Posté le : 19/09/2006 14:53
Partager Twitter Partagez cette article sur GG+
Re: ou mettre le code (installation du module I-Stats)
Newbie
Inscrit: 26/09/2005 20:58
Messages: 16
juste apres apres ca dans la partie footer de ton theme

<img src="/images/firefox.gif" alt="MaroCanisme conseille FireFox !!" title="MaroCanisme conseille FireFox !!" 
     
</a>


Tu ajoute ça

<{if $xoops_isadmin != 1}>
              <
script type="text/Javascript">
          <!--
          
istat = new Image(1,1);
          
istat.src "http://URL_DE_VOTRE_SITE_XOOPS/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;
          
//-->
          
</script>
        <{/if}>


ca devrai donner ca

<td id="obFooter" height="38" ><a href="http://www.mozilla.fr"
      <
img src="/images/firefox.gif" alt="MaroCanisme conseille FireFox !!" title="MaroCanisme conseille FireFox !!" </a>
<{if 
$xoops_isadmin != 1}>
              <
script type="text/Javascript">
          <!--
          
istat = new Image(1,1);
          
istat.src "http://URL_DE_VOTRE_SITE_XOOPS/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;
          
//-->
          
</script>
        <{/if}></td>


il faut aussi ajouter dans tes fichiers .css les classes suivantes

.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;}

Le module est livré quand même avec toutes ces explications...bref
Et aussi pour le titre de ton sujet "ou mettre le code" de quoi? où ? c'est pas tres explicite tout ça...

Posté le : 19/09/2006 16:12
Partager Twitter Partagez cette article sur GG+
Re: ou mettre le code (installation du module I-Stats)
Team FrXoops
Inscrit: 20/02/2006 23:21
Messages: 1162
merci !!!!!!!

Posté le : 19/09/2006 20:36
Partager Twitter Partagez cette article sur GG+
Re: ou mettre le code (installation du module I-Stats)
Newbie
Inscrit: 01/12/2005 21:27
Messages: 6
Bonsoir,

Je suis peut-être particulièrement bouché mais, j'ai beau effectuer toutes les modifs ci-dessus, je n'ai quand même rien dans ma page de stats... Tous les compteurs restent à 0...

Une idée, quelqu'un?

Posté le : 30/09/2006 01:23
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

52 Personne(s) en ligne (38 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 52 | Plus ...