clickrain / EE_Twitter

EE Add-on that uses oAuth to display Twitter Feed
Other
48 stars 18 forks source link

Retrieval of images and 2 new paramters added #17

Closed maarten00 closed 11 years ago

maarten00 commented 11 years ago

Hello,

I have added some features to your addon and I would like for them to be in future versions of your addon.

First of all, I added the retrieval of image url's embedded in the tweet. In your template code you can loop through them with {images}{image}{/images}. This will return all images that were in the original tweet. With that came the wish to retrieve only tweets that contained images from a certain user. I did not want to use search, because search only has a limited database of +- 9 days of tweets. I have added a parameter images_only which will default to false. If set to true, it will skip all tweets that don't contain an image.

And last of all I added support for the count parameter. I wanted to retrieve more than 15 tweets, so I added count as an optional parameter. This is natively supported by the twitter API.

bryanburgers commented 11 years ago

Fantastic! I love it. I had recently noticed that pictures don't get linked in the plugin, so I'm glad you did this.

Can you please also update the README.md with the API changes? I will then pull the request.

maarten00 commented 11 years ago

Added! :)

bryanburgers commented 11 years ago

Thanks! I would not have gotten around to doing this if you hadn't helped. I also added a few tags to be able to access some of the other properties Twitter sends, because Twitter crops the image to four different sizes.