Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : Fabrizio4All 04 Jan 2008, 12:29:34
-
Ho installato il modulo Shinystat , e funziona tutto correttamente, ma il modulo mi viene allineato a sinistra e io vorrei allinearlo al centro, che devo fare???
questo è il codice...
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$IndiPosition = @$params->IndiPosition ? $params->IndiPosition: $params->get('IndiPosition');
$IndiLines = @$params->IndiLines ? $params->IndiLines: $params->get('IndiLines');
$IndiServer = @$params->IndiServer ? $params->IndiServer: $params->get('IndiServer');
$SHNId = @$params->SHNId ? $params->SHNId: $params->get('SHNId');
$SHNon = @$params->SHNon ? $params->SHNon: $params->get('SHNon');
$content = "<DIV align='$IndiPosition'>";
$content .= "<table width=\"100\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"$IndiPosition\">";
$content .= "<tr>";
$content .= "<td width=\"100\">";
### shinystat - Start ###
?>
<script type="text/javascript" language="JavaScript" SRC="http://codice.shinystat.it/cgi-bin/getcod.cgi?USER=<? echo "$SHNId";?>">
</script>
<noscript>
<A HREF="http://www.shinystat.it" target="_top">
<IMG SRC="http://www.shinystat.it/cgi-bin/shinystat.cgi?USER=<? echo "$SHNId";?>" ALT="Contatore gratis" BORDER="0">[/url]
</noscript>
<?
### shinystat - Ende ###
$content .= "</tr></table>";
$content .= "</DIV>";
?>
Ho provato a cambiare align, ma sicuramente ho sbagliato qualche cosa, c'è qualcuno che può darmi una mano....?????
-
Cambia il php con questo:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$IndiPosition = @$params->IndiPosition ? $params->IndiPosition: $params->get('IndiPosition');
$IndiLines = @$params->IndiLines ? $params->IndiLines: $params->get('IndiLines');
$IndiServer = @$params->IndiServer ? $params->IndiServer: $params->get('IndiServer');
$SHNId = @$params->SHNId ? $params->SHNId: $params->get('SHNId');
$SHNon = @$params->SHNon ? $params->SHNon: $params->get('SHNon');
$content = "<DIV align='$IndiPosition'>";
$content .= "<table width=\"100\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"$IndiPosition\">";
$content .= "<tr>";
$content .= "<td width=\"100\">";
### shinystat - Start ###
?>
<div align="center">
<script type="text/javascript" language="JavaScript" SRC="http://codice.shinystat.it/cgi-bin/getcod.cgi?USER=<? echo "$SHNId";?>">
</script>
<noscript>
<A HREF="http://www.shinystat.it" target="_top">
<IMG SRC="http://www.shinystat.it/cgi-bin/shinystat.cgi?USER=<? echo "$SHNId";?>" ALT="Contatore gratis" BORDER="0"></A>
</noscript>
</div>
<?
### shinystat - Ende ###
$content .= "</tr></table>";
$content .= "</DIV>";
?>
Bastava comprendere lo script in un tag DIV. Gli dai l'allineamento voluto ed il gioco è fatto. ;)
-
non basta un
<center> </center> ??? ;D
-
;)
Grazie mille siete sempre fantastici.... ::)