Can someone please help with the above code?
Thanks,
Jon
On Mar 25, 3:57 pm, Jon j...@whotweet.net wrote:
Thanks... I should've posted the whole thing because now I'm getting
another error! This is what I'm trying to do (I really appreciate your
help!):
?php
/* Load required
what exactly you want to implement, am a freelancer and you can hire
me at good rates.
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
All I'm trying to do is pull the user timeline or latest tweets for a
given user that I follow. I think I have the code 99% correct, but I
am horrible with PHP and am getting an error: Parse error: syntax
error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'
Can someone please let me know
can you post the exact code and exact error that you are seeing on your
browser
On Sun, Mar 27, 2011 at 11:38 PM, Jon j...@whotweet.net wrote:
All I'm trying to do is pull the user timeline or latest tweets for a
given user that I follow. I think I have the code 99% correct, but I
am
The exact code is posted above... you can see the error here:
http://realestateagentswhotweet.com/kristan-cole/
I think it's something structurally though with the PHP, as line 65
itself should be fine, it's just the standard time display code below:
//create a time display like '1 hour ago'
in this code above especially in your function twitterTime
please remove single quotes and replace them with double quotes and
also remove that first line of comment, then try it will work
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter:
Thanks Blaze... I think we're getting closer, now the error is on like
78 (You can see it here: http://realestateagentswhotweet.com/kristan-cole/)
Here is the code:
?php get_header(); ?
div id=content class=hfeed
?php
if(function_exists('bcn_display'))
The variable name $xml was changed to $statuses further up and you didn't
change the later $xml to $statuses.
Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham
Thanks Abraham, I changed it to $satuses, but will get the same error
on that line: Warning: Invalid argument supplied for foreach() in ...
on line 78
On Mar 27, 5:36 pm, Abraham Williams 4bra...@gmail.com wrote:
The variable name $xml was changed to $statuses further up and you didn't
change
var_dump() the $statuses var to make sure it is what you expect and change
the foreach() as appropriate.
Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham
Thanks Abraham,
I'm getting an error on the last line there though:
Parse error: syntax error, unexpected '=', expecting ')' in ...
On Mar 25, 3:33 pm, Abraham Williams 4bra...@gmail.com wrote:
You are not formatting the GET request correctly and TwitterOAuth
automatically parses the JSON
Oops. I had a type. The = needs a directly after it like =
Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
http://abrah.amJust launched from Answerly http://answerly.com:
InboxQhttp://inboxq.comfor Chrome
@abraham https://twitter.com/abraham | github.com/abraham |
Thanks... I should've posted the whole thing because now I'm getting
another error! This is what I'm trying to do (I really appreciate your
help!):
?php
/* Load required lib files. */
require_once('twitteroauth/twitteroauth.php'); /* This is the
library for connecting with oAuth
13 matches
Mail list logo