Twitter probleem! HTML

Gestart doorPim8 reacties56 weergaven

9 berichten · pagina 1 van 1

Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik heb net deze website gemaakt: http://bwump.nl/NEW/index.html

Alleen HOE krijg ik nu bij die twitterbalk automatisch de laatste tweet erin?

(heb al wat html codes geprobeerd maar werkt niet?)

Grt.
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Twitter API?
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Eleky schreef:
Twitter API?
Ja, Maar hoe werkt dat precies?

Want is natuurlijk met css en .js
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja en via de Twitter API kan je gewoon de tekst ophalen van de laatste tweet en die via PHP echoën
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
en dat houdt in?

Heb daar totaal nog geen verstand van.
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php
    $username[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]thatbradleyguy[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set user name[/COLOR]
    [COLOR= #0000BB]$format[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]json[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set format[/COLOR]
    [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700]=[/COLOR]json_decode[COLOR= #007700]([/COLOR][URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}"[/COLOR][COLOR= #007700]));[/COLOR] [COLOR= #FF8000]// get tweets and decode them into a variable[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]->[/COLOR]text[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// show latest tweet[/COLOR]
?>


moeilijk heshiny
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jvdw schreef:
[COLOR= #0000BB]<?php
    $username[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]thatbradleyguy[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set user name[/COLOR]
    [COLOR= #0000BB]$format[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]json[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set format[/COLOR]
    [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700]=[/COLOR]json_decode[COLOR= #007700]([/COLOR][URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}"[/COLOR][COLOR= #007700]));[/COLOR] [COLOR= #FF8000]// get tweets and decode them into a variable[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]->[/COLOR]text[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// show latest tweet[/COLOR]
?>
moeilijk heshiny
waarom werkt het dan niet?

www.bwump.nl/NEW
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Pim schreef:
Eerdere citaten tonen
Jvdw schreef:
[COLOR= #0000BB]<?php
    $username[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]thatbradleyguy[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set user name[/COLOR]
    [COLOR= #0000BB]$format[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]json[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set format[/COLOR]
    [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700]=[/COLOR]json_decode[COLOR= #007700]([/COLOR][URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}"[/COLOR][COLOR= #007700]));[/COLOR] [COLOR= #FF8000]// get tweets and decode them into a variable[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]->[/COLOR]text[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// show latest tweet[/COLOR]
?>
moeilijk heshiny
waarom werkt het dan niet?

www.bwump.nl/NEW
Spoiler tonen
Afbeelding
.php extentie is wel vereist..wink
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jvdw schreef:
Eerdere citaten tonen
Pim schreef:
Eerdere citaten tonen
Jvdw schreef:
[COLOR= #0000BB]<?php
    $username[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]thatbradleyguy[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set user name[/COLOR]
    [COLOR= #0000BB]$format[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]json[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// set format[/COLOR]
    [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700]=[/COLOR]json_decode[COLOR= #007700]([/COLOR][URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://api.twitter.com/1/statuses/user_timeline/{$username}.{$format}"[/COLOR][COLOR= #007700]));[/COLOR] [COLOR= #FF8000]// get tweets and decode them into a variable[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]]->[/COLOR]text[COLOR= #007700];[/COLOR] [COLOR= #FF8000]// show latest tweet[/COLOR]
?>
moeilijk heshiny
waarom werkt het dan niet?

www.bwump.nl/NEW
Spoiler tonen
Afbeelding

.php extentie is wel vereist..wink
Owh jezus. Ik ben echt dom bezigemo
toevoeging op 7 november 2012, 14:36:35:
Bedankt! whaha
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren