Get number of new tweets

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
TheDani
Registered User
Posts: 394
Joined: Tue Apr 10, 2012 12:48 pm

Get number of new tweets

Post by TheDani »

Is it possible/difficult to write a MOD that shows the number of new tweets from a specific Twitter account?

I'd like to use a template variable like, f.ex.:

Code: Select all

There are {NEW_TWEETS} new tweet(s).
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53379
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Get number of new tweets

Post by Brf »

PhpBB does not have tweets. You would have to ask on twitter for whatever code you need.
TheDani
Registered User
Posts: 394
Joined: Tue Apr 10, 2012 12:48 pm

Re: Get number of new tweets

Post by TheDani »

I know phpBB and Twitter are two different software. That doesn't mean data from a Twitter account can't be exported to a phpBB installation.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Re: Get number of new tweets

Post by Peter77sx »

You don't have to modify phpbb core files to display twitter stuff so you don't really need a MOD. just take a look at twitter documentation.
TheDani
Registered User
Posts: 394
Joined: Tue Apr 10, 2012 12:48 pm

Re: Get number of new tweets

Post by TheDani »

It's easy to embed a Twitter widget, but that's not what I'm looking for. I only want the number (a single int value) that represents the number of new tweets from a specified account. And yes, Twitter has an API and a very huge documentation. I get dizzy from less.

An alternative could be to show the number of new items in a RSS feed, f.ex.:

Code: Select all

<a href="someurl.php">{NEW_FEEDS} new feed(s)</a>
which would show the number of new feeds since last you accessed someurl.php
Doe Ray Me
Registered User
Posts: 457
Joined: Mon Jun 16, 2003 5:25 am
Name: Ethan Shand

Re: Get number of new tweets

Post by Doe Ray Me »

Sounds interesting, so basically in the user profile, you want the amount of new tweets next to the twitter account, how about something like "wshand4 (2/243), basically showing the new and the total number of tweets?

I will see what I can do about this :)
TheDani
Registered User
Posts: 394
Joined: Tue Apr 10, 2012 12:48 pm

Re: Get number of new tweets

Post by TheDani »

Yes would be nice to show that in overall_header.html-
User avatar
ViolaF
I've Been Banned!
Posts: 1609
Joined: Tue Aug 14, 2012 11:52 pm

Re: Get number of new tweets

Post by ViolaF »

Any link to whatever documentation from twitter would be nice. Crystall-Balls are out these days.
Which Feed (Link)? Which Twitter API (Link)? Which "easy" code you use? Much not-enough input/info at all.
TheDani
Registered User
Posts: 394
Joined: Tue Apr 10, 2012 12:48 pm

Re: Get number of new tweets

Post by TheDani »

F.ex. get number of new tweets from https://twitter.com/phpbb. The Twitter API is a big jungle https://dev.twitter.com/docs
Locked

Return to “[3.0.x] MOD Requests”