← Projectos

SpreadTwitter

Lida 3453 vezes

Offline

andrepcg 
Membro
Mensagens 53 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1




Nestes ultimos dias estive a realizar um projecto de site em php que corre com a API do Twitter.
O funcionamento é muito simples: um utilizador do Twitter coloca o seu nick no SpreadTwitter e depois é-lhe dado um link de "referido". Este link serve para contar os hits e para "votar" num utilizador que achas que deve levar o voto (chamado de "HIT").

É um pequeno projecto para começar e para me entreter.

Nada melhor que o experimentar em http://spreadtwitter.gethost4you.com/

Estou a utilizar um alojamento gratuito pois é apenas um pequeno projecto para começar. Qualquer bug que encontrarem, relatem logo aqui pfv.

http://spreadtwitter.gethost4you.com/

PS: Todo o website foi criado por mim.
Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Engraçado!!!
Offline

Miguel Dias 
Membro
Mensagens 1273 Gostos 1
Feedback +1

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Conceito engraçado. Pode funcionar
Offline

Celso Azevedo 
Membro
Mensagens 3500 Gostos 38
Feedback +12

Troféus totais: 32
Trófeus: (Ver todos)
Level 6 Tenth year Anniversary Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3

O alojamento é bom... poderias ter utilizado um dominio proprio...
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Offline

MiguelTavares 
Membro
Mensagens 3871 Gostos 0
Troféus totais: 33
Trófeus: (Ver todos)
Avatar Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4

Offline

Thomato 
Membro
Mensagens 4125 Gostos 3
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

Tá a dar um erro ao entrar em qualquer perfil..


Warning: file_get_contents(http://twitter.com/users/show/cenourinha.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/spreadtw/public_html/user.php on line 28

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/spreadtw/public_html/user.php:29 Stack trace: #0 /home/spreadtw/public_html/user.php(29): SimpleXMLElement->__construct('') #1 {main} thrown in /home/spreadtw/public_html/user.php on line 29
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Yaps.
Offline

Thomato 
Membro
Mensagens 4125 Gostos 3
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

LOL, Por acaso até ia HITAR o Carrotzinha...

Até o código que postei é teu xD
Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Confirmo!!

PS:
Andrepcg tens PM!
Offline

andrepcg 
Membro
Mensagens 53 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

está a dar erro para alguem?

é que aqui tá tudo na boa

Código: [Seleccione]
Warning: file_get_contents(http://twitter.com/users/show/cenourinha.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/spreadtw/public_html/user.php on line 28

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/spreadtw/public_html/user.php:29 Stack trace: #0 /home/spreadtw/public_html/user.php(29): SimpleXMLElement->__construct('') #1 {main} thrown in /home/spreadtw/public_html/user.php on line 29

se der este erro, acho que o script não é o culpado pois funciona com base na API do twitter. se o twitter falha com este endereço http://twitter.com/users/show/<username>.xml  , o SpreadTwitter vai funcionar mal pois não consegue ir buscar os dados.
Offline

HawK 
Membro
Mensagens 1698 Gostos 0
Feedback +8

Troféus totais: 29
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

E continua:

Warning: file_get_contents(http://twitter.com/users/show/emarques.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/spreadtw/public_html/user.php on line 28

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /home/spreadtw/public_html/user.php:29 Stack trace: #0 /home/spreadtw/public_html/user.php(29): SimpleXMLElement->__construct('') #1 {main} thrown in /home/spreadtw/public_html/user.php on line 29
Offline

Miguel Dias 
Membro
Mensagens 1273 Gostos 1
Feedback +1

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Aqui ta tudo impecavel :P
Offline

Thomato 
Membro
Mensagens 4125 Gostos 3
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

Agora tá bom
Offline

andrepcg 
Membro
Mensagens 53 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1