Skip to content

Added option to filter tweets by hashtag#3

Open
kaesetoast wants to merge 11 commits intoryancramerdesign:masterfrom
kaesetoast:master
Open

Added option to filter tweets by hashtag#3
kaesetoast wants to merge 11 commits intoryancramerdesign:masterfrom
kaesetoast:master

Conversation

@kaesetoast
Copy link

Hi Ryan,

for a site I am currently working on, I needed a way to only display tweets that contain a certain hashtag, so I grabbed your great module and modified it to fit my needs.

Since I could not find a way to get the desired results from the twitter API (I tried searching tweets by author and hashtag, but unfortunately, this won't work for tweets older than 7 days), I basically grab all the tweets and send them through a function that does the filtering.

Since I prefered getting the plain data array and letting my template take care of the HTML, I also added a public getDataArray method.

I don't know if this is something you want to include in your module, but if you do, feel free to merge this PR :-)

Anyway, thanks for the great work, I am really happy using PW as my new CMS of choice..

@ryancramerdesign
Copy link
Owner

Thanks for your work here! Seems like some great additions. I will definitely look forward to taking a close look as soon as I've got time to get back into this module for updates.

@kaesetoast
Copy link
Author

Glad to here that =)

I just realised, that you implemented an iterator for accessing non-markup data, so my getDataArray method might be obsolete. I'll have a look at it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants