Per inserire il Tuo codice html di un contattore visite o statistiche esterno, su Joomla (fondo pagina template e centrato), devi entrare nell'area amministrativa di Joomla e dal menù "Sito":
Gestione template--->template del sito--->spuntare il tuo template predefinito--->dal menù "Gestione template"sopra sulla destra, clicca
Mod.HTML--->inserisci il codice fornito per il Tuo contattore tra (vedi porzione di codice sotto)<!-- Inizio Codice Contattore--> e <!-- Fine Codice Contattore-->, SALVA .Il Tuo codice comparirà in fondo pagina del Tuo template. Se hai assegnato altri template a pagine differenti, devi ripetere l'operazione sopra, spuntando il template prescelto e ripeti le operazioni. Tieni da parte la porzione di codice base (sotto) per inserire il contattore, potrà servirti in futuro per altri inserimenti.
Esempio porzione codice html:
--------------------------------------------------------------
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!-- Inizio Codice Contattore -->
<!-- Fine Codice Contattore -->
</td>
</tr>
</table>
</body>
</html>
--------------------------------------------------------------
Buon lavoro!
scusa, questo è il mio codice, dove inserisco lo script del contatore?
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body class="body">
<div align="center">
<table width="954" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="954" height="150" colspan="3" background="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/images/header.jpg"></td>
</tr>
<tr>
</tr>
<tr>
<td height="22" colspan="3" background="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/images/path_reap.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="navig"height="22" background="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/images/path.gif"><?php mosPathWay(); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td id="left_outer" width="166" valign="top" ><?php mosLoadModules ( 'left' ); ?></td>
<td id="content_outer" width="622" valign="top">
<div align="center"><?php mosLoadModules ( 'top' ); ?>
<?php mosMainBody(); ?>
</div>
</td>
<td id="right_outer" width="166" valign="top"><?php mosLoadModules ( 'right' ); ?></td>
</tr>
<tr><td colspan="3"> <?php include_once('includes/footer.php'); ?>
</td></tr>
</table>
</div>
<script type="text/javascript">
_uacct = "UA-733336-1";
urchinTracker();
</script>
<script type="text/javascript" language="JavaScript" src="http://adv08.edintorni.net/affiliati/content/00x00/?q=ACMS_CRAWLER&a=2439&u=FF0000&nl=5&lh=0"></script>
</body>
</html>
Allora, fai così:
copia il Tuo codice del contattore fornito, è questo?----------------------------------------------------
script type="text/javascript">
_uacct = "UA-733336-1";
urchinTracker();
</script>
<script type="text/javascript" language="JavaScript" src="
http://adv08.edintorni.net/affiliati/content/00x00/?q=ACMS_CRAWLER&a=2439&u=FF0000&nl=5&lh=0"></script>
----------------------------------------------------------
Se è questo, fai incolla sulla porzione di codice che ti ho preparato:----------------------------------------------------------------------
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!-- Inizio Codice Contattore -->
script type="text/javascript">
_uacct = "UA-733336-1";
urchinTracker();
</script>
<script type="text/javascript" language="JavaScript" src="
http://adv08.edintorni.net/affiliati/content/00x00/?q=ACMS_CRAWLER&a=2439&u=FF0000&nl=5&lh=0"></script>
<!-- Fine Codice Contattore -->
</td>
</tr>
</table>
---------------------------------------------------------------------
copia il tutto di nuovo ed incolla prima del tag </body> della pagina Mod.HTML del Tuo template predifinito ed assegnato al tuo sito o pagina su Joomla, esempio se il codice del Tuo template è questo:----------------------------------------------------------------------
<?php
defined( '_VALID_MOS' ) or die( 'Restricted access' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos
//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
$user1 = 2;
$user2 = 2;
$colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
$user1 = 1;
$colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
$user2 = 1;
$colspan = 1;
}
//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
$right = 1;
}
?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body class="body">
<div align="center">
<table width="954" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="954" height="150" colspan="3" background="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/images/header.jpg"></td>
</tr>
<tr>
</tr>
<tr>
<td height="22" colspan="3" background="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/images/path_reap.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="navig"height="22" background="<?php echo $mosConfig_live_site;?>/templates/calciodilettanti/images/path.gif"><?php mosPathWay(); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td id="left_outer" width="166" valign="top" ><?php mosLoadModules ( 'left' ); ?></td>
<td id="content_outer" width="622" valign="top">
<div align="center"><?php mosLoadModules ( 'top' ); ?>
<?php mosMainBody(); ?>
</div>
</td>
<td id="right_outer" width="166" valign="top"><?php mosLoadModules ( 'right' ); ?></td>
</tr>
<tr><td colspan="3"> <?php include_once('includes/footer.php'); ?>
</td></tr>
</table>
</div>
</body>
</html>
-----------------------------------------------------------------------
incolla prima di
</body>
</html>-----------------------------------------------------------------------
Ricordati di salvare quando incolli sul codice del template di Joomla
(Mod.HTML)
Spero di averti aiutato.
Buon lavoro!