Comment ajouter du javascript pour Google Adsence ou Xiti à MoinMoin
Pour ajouter du code entre des balises javascripts pour Adsence ou Xiti au wiki MoinMoin il faut se rendre dans le fichier
wikiconfig.py est ajouter les valeurs à la variable page_footer1 comme par exemple ci dessous avec votre propre code Xiti ou Adsence :
#Add advertisement
page_footer1=’ ‘ ‘<a href= »http://www.xiti.com/xiti.asp?s=44566608″ title= »WebAnalytics » target= »_top »>
<script type= »text/javascript »>
<!–
Xt_param = ’s=44566608&p=’;
try {Xt_r = top.document.referrer;}
catch(e) {Xt_r = document.referrer; }
Xt_h = new Date();
Xt_i = ‘<img width= »80″ height= »15″ border= »0″ alt= »" ‘;
Xt_i += ’src= »http://logv11.xiti.com/g.xiti?’+Xt_param;
Xt_i += ‘&hl=’+Xt_h.getHours()+’x'+Xt_h.getMinutes()+’x'+Xt_h.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xt_s=screen;Xt_i+=’&r=’+Xt_s.width+’x'+Xt_s.height+’x'+Xt_s.pixelDepth+’x'+Xt_s.colorDepth;}
document.write(Xt_i+’&ref=’+Xt_r.replace(/[<>"]/g, »).replace(/&/g, ‘$’)+’ » title= »Internet Audience »>’);
//–>
</script>
<noscript>
Mesure d’audience ROI statistique webanalytics par <img width= »80″ height= »15″ src= »http://logv11.xiti.com/g.xiti?s=44566608&p= » alt= »WebAnalytics » />
</noscript></a>’ ‘ ‘