@Dabbledoo, no we are not using EngineHosting. And I had just installed it on a page that isn’t live, so I it can’t be the number of requests.
I looked at Twitter Timeline and that uses the email address instead of twitter username. The members of my site already entered their username, so that plugin is not an option for me.
I looked at Twitter Timeline and that uses the email address instead of twitter username. The members of my site already entered their username, so that plugin is not an option for me.
Hi eeart -
You can use either username OR email address with the Twitter Timeline plugin. The docs on EE’s site are dated I believe.
When you install the plugin, it says the following in the docs (within the plugin manager):
user=”[email protected]” - Email address or user name of Twitter user. Required for “user” or “friends” timelines
I tried Twitter Timeline but it isn’t working for me for some reason. I don’t have the passwords of the twitter feeds to show because I just want to show the public feeds. When I change type to “public” I seem to be just getting the last tweets by anyone, not related to the user I entered.
I tried Twitter Timeline but it isn’t working for me for some reason. I don’t have the passwords of the twitter feeds to show because I just want to show the public feeds. When I change type to “public” I seem to be just getting the last tweets by anyone, not related to the user I entered.
I believe with that plugin you need to be authenticated (with password) to return a person’s timeline. The way to get around this would be to do what I did: - create a new Twitter account (that you know the password to) - follow the accounts you want to show up in the feed - and then hook that account up to the Twitter Timeline with the type=”friends”
Just discovered this great plugin but have a few issues/questions:
I’m struggling to get reliable results. Had no trouble getting it to display results for a trending topic but can’t get it to find test custom tweets that I know are there.
Could someone please explain the specific effects of the cache and refresh parameters? The docs say “please use it” but don’t say why or what various other settings might achieve.
As others above, would love to have count and total_results variables available to play with.
I have in mind to achieve something similar to fellow EE user Andy Clarke over on his Stuff and Nonsense blog. He displays tweet replies using custom #hashtags. (Though none seem to be displaying on his site currently, perhaps because the related tweets have been archived?)
To do this, I guess I’d need to be able to pass an entry_id to the plugin. If I were using entry_ids as url segments I guess I could just do this:
{exp:twitter_search:find q="#foo{segment_2}" convert_url="yes" cache="yes" refresh="5"}
(Which works.)
But I’m using url_titles in my urls so I’d need to use:
{exp:twitter_search:find q="#foo{entry_id}" convert_url="yes" cache="yes" refresh="5"}
I’ve tried this, including wrapping exp:twitter_search in exp:weblog:entries but no joy.
Anyone have any bright ideas?
to get tweets from a specific user do this
{exp:twitter_search:find q="from:EllisLab" convert_url="yes" cache="yes" refresh="5"}
{text}
{/exp:twitter_search:find}
to get tweets from a specific user where that user says something specific do this
{exp:twitter_search:find q="from:EllisLab CodeIgniter" convert_url="yes" cache="yes" refresh="5"}
{text}
{/exp:twitter_search:find}
to get tweets from 2 specific people
{exp:twitter_search:find q="from:EllisLab from:drencher" convert_url="yes" cache="yes" refresh="5"}
{text}
{/exp:twitter_search:find}
@watershed
about the {entry_id} try parse=”inward” in the twitter_search tag OR try putting the twitter search in a embed tag and then calling the embed tag passing the entry id as a var into the embedded template
Hi Again,
Never mind! I have solved the issue, forgot to add custom field tags:
{exp:member:custom_profile_data}
{exp:twitter_search:find q="from:{twitter_username}" rpp="5" lang="en" convert_url="yes" cache="yes" refresh="5"}
<div class="tweets">
<span>{from_user} {location} - about {relative_date} ago.</span>
{profile_image_url}
{text}
</div>
{/exp:twitter_search:find}
{/exp:member:custom_profile_data}
Thanks! David
lumis, FYI, parsing inward didn’t help but thanks so much for the embedding tip which is where the answer lay.
I’d not used embed variables before but, as it may help someone else, here is how I got a dynamic custom hashtag search working in a template that is outputting url_title segments rather than entry_id segments…
I created a twitter search template with an opening tag of:
{exp:twitter_search:find q="#foo{embed:hashid}" convert_url="yes" cache="no" refresh="5"}
Then, in my post template I have:
{exp:weblog:entries site="blog" weblog="blog" limit="1" disable="categories|custom_fields|member_data|pagination|trackbacks"}
{embed="inc/.twitter_replies" hashid="{entry_id}"}
{/exp:weblog:entries}
Search results are then constrained to things like #foo123.
Obviously, there is potential for ‘foo’ to be a variable used by more than one site so it needs to have a good chance of being unique and yet still be as concise as possible!
My template also includes a prompt for users to Tweet your reply:
Tweet your reply using
<a href="http://twitter.com/home?status=#foo{entry_id}" title="Creates a draft tweet at twitter.com with the '#foo{entry_id}' hashtag"><em>#foo{entry_id}</em></a>
Note the need to escape the hash with
%23
in the status query sent to Twitter otherwise Twitter will just give the would-be tweeter “Sorry, that page doesn’t exist!”
I’m also adding a trailing space to the status link with
%20
which appears after the hashtag in the update field.
Hi, I am trying to port this to 2.0 but have run in to trouble. going through the flow of the functions I think it’s getting stuck here
function request_json($tagparams){
$arguments = "";
$skip = array('cache','refresh','word_censoring','convert_url');
print_r( $tagparams );
foreach ($tagparams as $key => $value)
{
$tagparams is a string but I think that the foreach needs an array as the argument. Is this correct? Inside the foreach $key and $value are null so I assume this is where it’s breaking down. Could you explain how this functio works?
Has something changed with the template class that hasn’t been documented?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.