Textpattern CMS support forum

You are not logged in. Register | Login | Help

#51 2010-03-20 18:35:06

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 238
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

trailgirl wrote:

arc_twitter started working again this morning. I’m guessing there was a temporary problem with the tinyurl service.

That would appear to be the case according to the error you were seeing. I’ve been working on a new release of the plugin today that should prevent this sort of failure happening again (ie if a URL cannot be retrieved then the tweet is not sent). I still have a bit of further testing to do, but the update should be out before the end of the weekend. It will hopefully have a little more functionality in regards to the URLs than before…

Offline

#52 2010-03-20 19:17:02

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

And could you please look at being able to allow or disallow replies being displayed? Please?

I find it to be the only thing missing.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#53 2010-03-21 17:04:13

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 238
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

OK guys, version 0.2.4 is out now and there’s a number of new things in there to keep you happy. Firstly I’ve tried to rectify the issues trailgirl has been experiencing. If there are difficulties with the Twitter/Tinyurl services a message should now appear in the Twitter update box on the article edit screen (this should help solve future problems, maybe). The following have also been added to the plugin:-

  • smd_short_url support added (due to popular demand)
  • Twitter tab can be moved/switched off (from the plugin’s preference page)
  • Deletion of tweets from Twitter tab removes link with Textpattern articles

thebombsite wrote:

And could you please look at being able to allow or disallow replies being displayed? Please?

I find it to be the only thing missing.

Could you just clarify what you are asking for? I’m not sure I completely follow. Are you wanting to be able to show other’s replies to your feed on the site?

Offline

#54 2010-03-21 21:06:09

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

No not the feeds. If you use the twitter API instead of your plugin it gives you the option, true or false, to show other peoples responses or “replies” to your tweet. What you might know as “@”. Your plugin doesn’t give that option so instead of being able to show just your own tweets you get all the “@” tweets in there as well. I’m talking about front-of-site display here. Did I explain that OK? I have to say I’m not big on Twitter. Can you tell? Other people are though so I have to deal with it and it would be really nice to use your plugin and have all the options I normally get with the API along with all the additional admin stuff your plugin has. It could be perfect but it isn’t quite there yet. ;)

Last edited by thebombsite (2010-03-21 21:12:51)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#55 2010-03-23 18:45:49

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 238
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

thebombsite wrote:

No not the feeds. If you use the twitter API instead of your plugin it gives you the option, true or false, to show other peoples responses or “replies” to your tweet. What you might know as “@”. Your plugin doesn’t give that option so instead of being able to show just your own tweets you get all the “@” tweets in there as well. I’m talking about front-of-site display here. Did I explain that OK? I have to say I’m not big on Twitter. Can you tell? Other people are though so I have to deal with it and it would be really nice to use your plugin and have all the options I normally get with the API along with all the additional admin stuff your plugin has. It could be perfect but it isn’t quite there yet. ;)

As far as I am aware at the moment <txp:arc_twitter /> current returns only the user’s timeline which excludes replies (or so I thought). There are a number of methods available in the API in order to retrieve different timelines which I am happy to investigate for inclusion in a future release. Which methods were you thinking of?

I was hoping to be able to start investing some of the development time for this plugin into the public aspects of its features.

Offline

#56 2010-03-23 21:03:12

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Sorry Andy. I’m probably not explaining this very well simply because I don’t do Twitter myself but I do have to work on sites that want to display feeds. Let’s see if this helps.

If you go to this twitter page you can see it has lots of tweets on it. If you gradually scroll down you will see a few tweets that start with an “@”. Apparently these are “replies” and the Twitter API allows me to use “true” or “false” to determine whether I want to display these or not. Here’s the code that goes into the head

<script src="<txp:site_url />site-design/js/twitter-1.12.2.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
/* <![CDATA[ */
getTwitters('twitterOutput', {
  id: 'BurningShedNews',
  count: 6,
  enableLinks: true,
  ignoreReplies: true,
  clearContents: true,
  template: '%text% <a href="http://twitter.com/%user_screen_name%/statuses/%id%/">%time%</a>'
});
/* ]]> */
</script>

You can see the option “ignoreReplies” which can be set to true or false which basically means that if you want to you can filter these replies out. You might ask why someone would want to do that. Well it all depends on the feed that is being displayed. If there are a lot of these replies, they will probably be out of sequence with the main time-line of the basic feed because they are probably talking about something that was initially discussed a day or two or maybe a week ago. When they are removed the feed looks more sequential ie. one subject after another after another… rather than going backwards and forwards all over the place.

That’s my excuse and I’m sticking to it. ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#57 2010-03-26 13:16:29

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 238
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Hi Stuart, thanks for the clarification. I believe I understand what you are getting at now. The ability to ignore replies as you want is not actually part of the Twitter API. The JavaScript function you have given above strips out the replies after retrieving the timeline from Twitter. This is certainly something that I can implement into the plugin relatively easily. It will mean needing to retrieve more tweets from Twitter than will be output in order to account for those that will be removed. This is not necessarily a bad thing as the current limit being used does not always appear to work well with the API.

Offline

#58 2010-03-26 19:50:46

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Oh it’s part of the javascript is it? Sorry. Didn’t realize that, but if you can work something similar into the plugin that would be great. I can send you the script I’m using if you want to have a look at it.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#59 2010-04-01 16:43:43

kevinpotts
Member
From: Kansas City
Registered: 2004-12-07
Posts: 364
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

@monkeyninja — This plugin is working really well on DeCal on the admin side. My big question: can you introduce an option to allow tweeting of future-dated articles? Basically my site is a giant calendar of forthcoming events, so all posted dates occur in the future. It would be totally awesome to be able to tweet these just like I do for “normal” articles because all of the future-dated content is currently visible on my site.

Offline

#60 2010-04-02 09:34:58

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

I have an futrure events section too.
I post with the current date so arc_twitter does its stuff, and then I change the date to the correct future date …

Geoff


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

Board footer

Powered by FluxBB