Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 18
  1. #1
    Utente di HTML.it L'avatar di luisa227
    Registrato dal
    Mar 2002
    Messaggi
    2,305

    twitter micropost su sito

    voglio fare la stessa cosa come su questo sito, in cui compare l'ultimo micropost di twitter..come si fa??? grazie
    http://www.efficacemente.com/

  2. #2
    trovi tutte le informazioni necessarie qui: https://dev.twitter.com/

  3. #3
    Utente di HTML.it L'avatar di luisa227
    Registrato dal
    Mar 2002
    Messaggi
    2,305
    Originariamente inviato da Ratatuia
    trovi tutte le informazioni necessarie qui: https://dev.twitter.com/
    ho già guardato ma mi da solo il codice per i pulsanti oppure mi crea uno script ma non identico... aiuto!!! io voglio che compaia il testo del mio ultimo tweet e basta

  4. #4
    allora non hai guardato bene, perchè c'è la documentazione per le API

    https://dev.twitter.com/docs/api

  5. #5
    Utente di HTML.it L'avatar di luisa227
    Registrato dal
    Mar 2002
    Messaggi
    2,305
    Originariamente inviato da Ratatuia
    allora non hai guardato bene, perchè c'è la documentazione per le API

    https://dev.twitter.com/docs/api

    uhh, grazie... ci sono riuscita..

  6. #6
    Utente di HTML.it L'avatar di luisa227
    Registrato dal
    Mar 2002
    Messaggi
    2,305
    uhm

    ho trovato un codice già pronto, però alcune volte va mentre altre mi segna questo errore e quando mi segna l'errore mi fa sparire anche il footer (bho). Da cosa può dipendere? cè un modo per controllare l'errore in modo che se si verifica non mi scrive nulla? grazie


    Fatal error: Cannot use string offset as an array in /membri/miosito/wp-content/themes/miotema/sidebar.php on line 26

  7. #7
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  8. #8
    Utente di HTML.it L'avatar di luisa227
    Registrato dal
    Mar 2002
    Messaggi
    2,305
    Originariamente inviato da Santino83_02
    hai qualche errore nel codice

    http://informationideas.com/news/200...s-an-array-in/
    la linea che da errore è quella dove cè $name..come posso rivolvere? e perche solo ogni tanto mi da errore?
    codice:
    // Get tweets into an array.
            $twitterData = json_decode($json['body'], true);
            
            // Now update the array to store just what we need.
            // (Done here instead of PHP doing this for every page load)
            foreach ($twitterData as $tweet) :
                // Core info.
                $name = $tweet['user']['name'];
                $permalink = 'http://twitter.com/#!/'. $name .'/status/'. $tweet['id_str'];

  9. #9
    Utente di HTML.it L'avatar di luisa227
    Registrato dal
    Mar 2002
    Messaggi
    2,305
    Originariamente inviato da luisa227
    la linea che da errore è quella dove cè $name..come posso rivolvere? e perche solo ogni tanto mi da errore?
    codice:
    // Get tweets into an array.
            $twitterData = json_decode($json['body'], true);
            
            // Now update the array to store just what we need.
            // (Done here instead of PHP doing this for every page load)
            foreach ($twitterData as $tweet) :
                // Core info.
                $name = $tweet['user']['name'];
                $permalink = 'http://twitter.com/#!/'. $name .'/status/'. $tweet['id_str'];

  10. #10
    pare che la struttura di $tweet cambi...che dicono le api?
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.