Argomenti: 1581    Messaggi: 8758   Risposte: 7185      
(Ultime News)------|    Nasce Cleanuke.it supporto ufficiale al cms - (18-06-2011 - 23:04:54 - di matteoiamma)    |------|    Rilasciato Clean Nuke 1.7 - (05-05-2011 - 19:49:43 - di matteoiamma)    |------|    Iamma Multi Blogs: Blogs per gli utenti del nuke - (19-03-2011 - 20:41:08 - di matteoiamma)    |------|    Rilasciato Clean Nuke 1.6 - (13-03-2010 - 20:12:46 - di matteoiamma)    |------|    Nuova Community Italiana: nasce mondophpnuke.com - (11-02-2010 - 22:08:51 - di matteoiamma)    |------|    Rilasciato Clean Nuke 1.5! - (16-12-2009 - 00:44:55 - di matteoiamma)    |------
Regolamento:
Le principali regole da rispettare per poter far parte della community... cosigliamo di visionarle per evitare malintesi.
Script:
Per motivi di sicurezza il sistema blocca l'inserimento di alcuni script per sapere come fare cliccare qui

Webother.com :: Leggi il Topic - banner a rotazione dove trovo?
 FAQ  •  Cerca  •  Lista degli utenti  •  Gruppi utenti  •  Profilo  •  Messaggi Privati  •  Login

Information banner a rotazione dove trovo?

Nuovo Topic Rispondi
Indice del forum » Addons, Blocchi, Moduli   
Precedente :: Successivo
AutoreMessaggio
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: banner a rotazione dove trovo? Rispondi citando

Ciao ragazzi come si crea un banner a rotazione formato gif 120*60?
Se qualcuno consoce questo script lo inserisca giu per cortesia Wink




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mag 18, 2006 8:33 pm
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

Se non vuoi utilizzare il circuito integrato in PHP-Nuke ne puoi trovare parecchi
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
.

Ciao Smile




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mag 18, 2006 9:23 pm
Top of PageProfiloMessaggio privatoHomePage
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

we snifer ma come faccio acreare un block con quel link ke mi hai dato trattano solo script non block




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mag 18, 2006 10:26 pm
Top of PageProfiloMessaggio privatoInvia email
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

scusami snifer ho creato il block da qui http://www.webother.com/modules.php?name=PHP-Nuke_Tools&file=index&func=Block
ma poi quando ho attivato il block al mio sito mi da questo errore

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /web/htdocs/www.xbox-inf.org/home/blocks/block-Banner_Rotazione.php on line 48

Codice:
<?php
#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<?php";
$content  .= "* banner.phtml";
$content  .= "  Banner rotation script for PHP3 by Anton Olsen (aolsen@graphweb.com)";
$content  .= "  Please feel free to do with this script what you want, all I ask is";
$content  .= "  that if you make significant changes, please e-mail them to me.";
$content  .= "   I tried to use a number of different methods, the image functions";
$content  .= "  of PHP do not appear to understand animated GIFs and the file";
$content  .= "  handling features (fopen, fpassthru, and fclose) were causing";
$content  .= "  apache to crash on me.  I settled on using passthru.  Although";
$content  .= "  possibly not as portable, it appears to work faster than either";
$content  .= "  method mentioned above.";
$content  .= "   Assumptions:";
$content  .= "  You have a directory for all your banners.";
$content  .= "  All banners are GIF files.";
$content  .= "  The filenames of the banners all start with banner.";
$content  .= "  There are no other files in the directory starting with banner.";
$content  .= "   Installation:";
$content  .= "  Place this script in the banners directory.";
$content  .= "  Place all your banner*gif files in the same directory.";
$content  .= "  Add the following HTML code to your web pages :";
$content  .= "    <a href=\"wherever.you.want.com\">";
$content  .= "    <img src=\"http://www.xbox-inf.org/bannerdir/banner.phtml\" alt=\"Random Banner Here\" border=0>";
$content  .= "    </a>";
$content  .= "*/";
$content  .= "/* random( $max integer )";
$content  .= "  Returns a random number between 0 and $max-1;";
$content  .= "/";
$content  .= "unction random( $max )";
$content  .= "";
$content  .= "       $x = rand();";
$content  .= "       $y = getrandmax();";
$content  .= "        $r = $x / $y * ($max -1 );";
$content  .= "        $r = round( $r++ );";
$content  .= "       return $r;";
$content  .= "";
$content  .= "/* Read the directory, add all \"banner*\" files with to the array";
$content  .= "/";
$content  .= "i = 0;";
$content  .= "d   = dir(\".\");";
$content  .= "hile($entry=$d->read())";
$content  .= "       if (substr($entry,0,6) == \"banner\")";
$content  .= "               $array[$i++] = $entry;";
$content  .= "d->close();";
$content  .= "               ";
$content  .= "/* pick a banner at random";
$content  .= "/";
$content  .= "r = random( $i );";
$content  .= "/* Send a no-cache header, and the gif type header, and output the file.";
$content  .= "/";
$content  .= "eader( \"Pragma: no-cache\" );";
$content  .= "eader( \"Expires: Monday 01-Jan-80 12:00:00 GMT\" );";
$content  .= "eader( \"Content-type:  image/gif\");";
$content  .= "assthru( \"cat $array[$r]\" );";
$content  .= "?>";
?>


Scusami ma vedi cosa puoi fare Sad




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mag 18, 2006 10:56 pm
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

Così come lo hai inserito non può funzionare ci sono troppi errori Smile posta il codice originale e appena ho un attimo gli do un occhiata.

Ciao




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mag 18, 2006 11:33 pm
Top of PageProfiloMessaggio privatoHomePage
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

Codice:
<?php
/* banner.phtml
   Banner rotation script for PHP3 by Anton Olsen (aolsen@graphweb.com)
   Please feel free to do with this script what you want, all I ask is
   that if you make significant changes, please e-mail them to me.

   I tried to use a number of different methods, the image functions
   of PHP do not appear to understand animated GIFs and the file
   handling features (fopen, fpassthru, and fclose) were causing
   apache to crash on me.  I settled on using passthru.  Although
   possibly not as portable, it appears to work faster than either
   method mentioned above.

   Assumptions:
   You have a directory for all your banners.
   All banners are GIF files.
   The filenames of the banners all start with banner.
   There are no other files in the directory starting with banner.

   Installation:
   Place this script in the banners directory.
   Place all your banner*gif files in the same directory.
   Add the following HTML code to your web pages :
     <a href="wherever.you.want.com">
     <img src="http://www.xbox-inf.org/bannerdir/banner.phtml" alt="Random Banner Here" border=0>
     </a>

*/

/* random( $max integer )
   Returns a random number between 0 and $max-1;
*/
function random( $max )
{
        $x = rand();
        $y = getrandmax();

        $r = $x / $y * ($max -1 );

        $r = round( $r++ );
        return $r;
}

/* Read the directory, add all "banner*" files with to the array
*/
$i = 0;
$d   = dir(".");
while($entry=$d->read())
        if (substr($entry,0,6) == "banner")
                $array[$i++] = $entry;
$d->close();
               

/* pick a banner at random
*/
$r = random( $i );

/* Send a no-cache header, and the gif type header, and output the file.
*/
Header( "Pragma: no-cache" );
Header( "Expires: Monday 01-Jan-80 12:00:00 GMT" );
Header( "Content-type:  image/gif");
passthru( "cat $array[$r]" );

?>       

Speriamo in bene




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mag 18, 2006 11:37 pm
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

A dirti la verità non mi convince molto come circuito banner, non l'ho provato ma guardando il codice non mi ispira, cmq se lo vuoi integrare in un blocco questo è il codice:
Codice:
<?php
if (eregi("block-quello_che_vuoi.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
/* banner.phtml
   Banner rotation script for PHP3 by Anton Olsen (aolsen@graphweb.com)
   Please feel free to do with this script what you want, all I ask is
   that if you make significant changes, please e-mail them to me.

   I tried to use a number of different methods, the image functions
   of PHP do not appear to understand animated GIFs and the file
   handling features (fopen, fpassthru, and fclose) were causing
   apache to crash on me.  I settled on using passthru.  Although
   possibly not as portable, it appears to work faster than either
   method mentioned above.

   Assumptions:
   You have a directory for all your banners.
   All banners are GIF files.
   The filenames of the banners all start with banner.
   There are no other files in the directory starting with banner.

   Installation:
   Place this script in the banners directory.
   Place all your banner*gif files in the same directory.
   Add the following HTML code to your web pages :
     <a href="wherever.you.want.com">
     <img src="http://www.xbox-inf.org/bannerdir/banner.phtml" alt="Random Banner Here" border=0>
     </a>

*/

/* random( $max integer )
   Returns a random number between 0 and $max-1;
*/
function random( $max )
{
        $x = rand();
        $y = getrandmax();

        $r = $x / $y * ($max -1 );

        $r = round( $r++ );
        return $r;
}

/* Read the directory, add all "banner*" files with to the array
*/
$i = 0;
$d   = dir(".");
while($entry=$d->read())
        if (substr($entry,0,6) == "banner")
                $array[$i++] = $entry;
$d->close();


/* pick a banner at random
*/
$r = random( $i );

/* Send a no-cache header, and the gif type header, and output the file.
*/
Header( "Pragma: no-cache" );
Header( "Expires: Monday 01-Jan-80 12:00:00 GMT" );
Header( "Content-type:  image/gif");
passthru( "cat $array[$r]" );

$content = "<a href=\"wherever.you.want.com\">
<img src=\"http://wherever.you.want.com/bannerdir/banner.phtml\" alt=\"Random Banner Here\" border=0>
     </a>";
?>

Non so se funziona, tra l'altro mi sembra che manchi una parte di codice, quella che determina l'url dei banners Rolling Eyes

Se vuoi un parere credo che in giro puoi trovare circuiti banner migliori Smile

Ciao Wink




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Sab Mag 20, 2006 12:08 am
Top of PageProfiloMessaggio privatoHomePage
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

e dove quelli che mi hai dato sono tutti complicati mi servirebbe uno che posso mettere come block al mio nuke7.6




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Sab Mag 20, 2006 2:31 am
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

Citazione:
e dove quelli che mi hai dato sono tutti complicati mi servirebbe uno che posso mettere come block al mio nuke7.6

Laughing più sono complicati e più mi piacciono Laughing ma perchè non utilizzi il circuito banner di php-nuke ?




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Sab Mag 20, 2006 9:54 pm
Top of PageProfiloMessaggio privatoHomePage
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

perche quelli li non sono a rotazione e non sono block




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Sab Mag 20, 2006 11:07 pm
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

Citazione:
perche quelli li non sono a rotazione

Come non sono a rotazione Shocked spiegati meglio cosa intendi per rotazione.

Citazione:
e non sono block

Shocked e block-Advertising.php che è secondo te Shocked




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Dom Mag 21, 2006 12:21 am
Top of PageProfiloMessaggio privatoHomePage
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

Advertising
Al momento non ci sono contenuti in questo blocco.


cosi esce il blok,ma le immagine dove le metto? il ogni immagine i suoi link come faccio per esempio se un'immagine si chiama psp.gif e uno clika va su www.psp.com?

Question




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Dom Mag 21, 2006 9:47 am
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

Citazione:
Advertising
Al momento non ci sono contenuti in questo blocco.


cosi esce il blok,ma le immagine dove le metto?

E' naturale che il blocco sia vuoto se tu non hai inserito nessun banner all'interno Rolling Eyes
Per inserire un banner all'interno del blocco Advertising vai in menù amministrazione --> banners --> edita un banner già inserito o inseriscine uno nuovo impostando come tipo:blocco
Citazione:
il ogni immagine i suoi link come faccio per esempio se un'immagine si chiama psp.gif e uno clika va su www.psp.com?

Questa non l'ho capita Rolling Eyes




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Dom Mag 21, 2006 4:40 pm
Top of PageProfiloMessaggio privatoHomePage
splinter
Senior 1°Level
Senior 1°Level


Registrato: Nov 23, 2005
Messaggi: 237


Oggetto: Rispondi citando

scusa snifer se non avevo letto il tuo post Sad
Cmq funziona tutto come descritto sopra da te.
Grazie 1000.




_________________

 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Mer Mar 07, 2007 10:41 pm
Top of PageProfiloMessaggio privatoInvia email
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Località: Verona

Oggetto: Rispondi citando

splinter ha scritto:
scusa snifer se non avevo letto il tuo post Sad
Cmq funziona tutto come descritto sopra da te.
Grazie 1000.

Non ti preoccupare l'importante è che funzioni Wink




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Gio Mar 08, 2007 12:51 am
Top of PageProfiloMessaggio privatoHomePage
Mostra prima i messaggi di:   
Tutti i fusi orari sono GMT + 2 ore
Nuovo Topic Rispondi
Indice del forum » Addons, Blocchi, Moduli  

Vai a:  
Key
  Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum

Powered by phpBB © 2001, 2005 phpBB Group



http://www.top100italiana.com

 

Tutti i diritti riservati Copyright © 2003-2023