Ciao,
dovrei inserire qualche linea di codice in un tema grafico di un sito per abilitare le statistiche del sito ma non ci riesco...ho provato ma non mi funziona:
Le istruzioni dello script su come isnerire queste benedett linee sono queste:
Mentre il codice del tema grafico originale è questo:codice:3 - Go in each theme.html file and add in the footer part of xoops the following code: Example resulting from the Default xoops theme: <table width="100%" cellspacing="0"> <tr id="footerbar"> <td>[img]<{$xoops_imageurl}>poweredby.gif[/img] <{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> This code will allow the stats module to count.
non dovrebbe essere una cosa molto complicata...se qualcuno mi dà una mano gliene sarei gratocodice:<!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> <{$xoops_module_header}> <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="generator" content="XOOPS" /> <title><{$xoops_sitename}> - <{$xoops_slogan}> - <{$xoops_pagetitle}></title> <link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" /> <link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" /> <link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" /> <script type="text/javascript"> <!-- <{$xoops_js}> //--> </script> <script type="text/javascript" src="<{$xoops_imageurl}>js/adminmenu.js"></script> <script type="text/javascript" src="<{$xoops_imageurl}>js/ie5.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> <style type="text/css" media="screen"> <{if $xoops_showrblock == 1}> td#centercolumn { padding: 20px 10px 10px 10px; } <{else}> td#centercolumn { padding: 20px 40px 10px 20px; } <{/if}> </style> </head> <body> <div id="page-ml"> <div id="page-mr"> <div id="header-l"><div id="header-r"> <div class="description"> [img]<{$xoops_imageurl}>images/header_logo.jpg[/img] </div> <div id="navigbar"> <{include file="$xoops_theme/navigation/theme_usernav.html"}> </div> </div></div> <div id="content"> <table> <tr> <{if $xoops_showlblock == 1}> <td id="leftcolumn"> <{foreach item=block from=$xoops_lblocks}> <{include file="$xoops_theme/blocks/theme_blockleft.html"}> <{/foreach}> </td> <{/if}> <td id="centercolumn"> <{if $xoops_showcblock == 1}> <table> <tr> <td id="centerCcolumn" colspan="2"> <{foreach item=block from=$xoops_ccblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_c.html"}> <{/foreach}> </td> </tr> <tr> <td id="centerLcolumn"> <{foreach item=block from=$xoops_clblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_l.html"}> <{/foreach}> </td><td id="centerRcolumn"> <{foreach item=block from=$xoops_crblocks}> <{include file="$xoops_theme/blocks/theme_blockcenter_r.html"}> <{/foreach}> </td> </tr> </table> <{/if}> <{$xoops_contents}> </td> <{if $xoops_showrblock == 1}> <td id="rightcolumn"> <{foreach item=block from=$xoops_rblocks}> <{include file="$xoops_theme/blocks/theme_blockright.html"}> <{/foreach}> </td> <{/if}> </tr> </table> </div> <div id="footer-l"><div id="footer-r"> <{$xoops_footer}></p> </div></div> </div></div> </body> <script type="text/javascript"> var menu1 = new AdMenu("menu1"); menu1.position.level1.top = 1; menu1.position.level1.left = 0; menu1.position.levelX.top = 0; menu1.position.levelX.left = 0; menu1.init(); </script> </html>
Grazie
Andrea

 
			
			 
					
					
					
						 Rispondi quotando
  Rispondi quotando 
						 
						