Skip to:
Content
Pages
Categories
Search
Top
Bottom

New Twitter Plugin for BuddyPress


  • Mark
    Participant

    @wpsec

    We’re just about finished creating a new Twitter plugin designed especially for Buddypress. Here’s a list of features – and we’ll update this thread with a URL for more info when we release the plugin in the next couple of days:

    – Adds a new Settings page for people to configure their Twitter ID and psw.

    – Adds options to selectively tweet posts (in the Add New post screen for blogs – if the blogs component is enabled in BP )

    – Adds a screen where logged-in users can send tweets from within BP if they’ve configured their Twitter login details.

    – Adds all new tweets sent from within BP to the Activity page (but not for tweeted posts since new posts already show up there)

    – Integrates a Twitter menu item in the user’s public nav bar if they’ve configured their Twitter ID and psw. This allows the public to view the user’s last 20 tweets. It also shows the number of “followers” and “following” for the user, plus the total tweet count.

    – Integrates a Twitter Trends pages that shows the most popular search phrases at Twitter over a 7 day time span. There is also an option to display today’s trends at the bottom of a user’s list of tweets.

    – Adds a multi-instance widget to the blogs (if the blogs module is enabled in BP) to display tweets in the sidebar. Because this is a multi-instance widget it can be used for blogs that have more than one author or for users who have more than one Twitter account – e.g. each widget instance can be configured with a unique Twitter account.

    – It’s performance friendly. After getting the user’s tweets from Twitter the data is stored for one hour before being refreshed – unless a user posts a tweet from within BP or tweets a blog post – in those cases the cache refreshes. The same holds true for the trends data – except trends data is site-wide, meaning it is only downloaded once per hour regardless of how many users have Twitter configured in their account.

    – The caching mechanism works with WP Cache (or other cache tools that integrate WP Cache – such as WP Super Cache and derivatives) and if there’s no caching enabled then it will use the database to cache data.

    So that’s it at the moment. Any wish list items before we wrap this up?

Viewing 25 replies - 26 through 50 (of 58 total)

  • Mark
    Participant

    @wpsec

    @BeLogical – The release date was yesterday. I’m late ;-) Nearly done though.


    Scotm
    Participant

    @scotm

    @M blogpei.com


    Mark
    Participant

    @wpsec

    @Scotm – so you have the BP nav bar at the top but only part of the nav items are available. Any plans to add more items, such as a My Account aspect? If so then people would have access to Settings, and thus, you could use this BP Twitter plugin that we’re creating.

    If not then you could add a link to either /members/[username]/settings or /members/[username]/settings/twitter-admin to adjust their Twittter login info, and to /members/[username]/settings/twitter for viewing tweets etc. – and the plugin would work that way. Basically what I’m saying is that people need a way to configure their Twitter account – and if you’re not using the other aspects of BP then what’s the point of using BP in the first place? You could use P2 on top of WPMU without BP.


    Roy McKenzie
    Participant

    @roymckenzie

    Looking forward to your release jedi @M


    Scotm
    Participant

    @scotm

    @M All of the BP settings are intact, however with registrations turned off and if you’re not logged in as a member they don’t appear in the BP nav bar. I have the BP components working nicely and if the plugin can be activated via the Setting panel I’m good to go.

    See: http://www.flickr.com/photos/34277962@N00/3548615145/sizes/o/

    and: http://www.flickr.com/photos/34277962@N00/3548616287/sizes/o/

    Thx


    gpo1
    Participant

    @gpo1

    @Scotm, Is it the member theme or what for the first flickr or what?


    Scotm
    Participant

    @scotm

    @Gpo1

    The first image is simply a shot of my homepage (P2) while logged in. You can see the post-form is now activated and the BP nav bar engaged with “My Account”, etc. showing.

    The second image is a modified version of the BP Member Theme.


    Mark
    Participant

    @wpsec

    Everyone can take the BP Twitter plugin for a joy ride over at the test site:

    http://simplercomputing.net/bp

    Sign up for an account and give it whirl (check your My Account page to configure your Twitter details) – plus be sure to check out the spiffy new ajax-based BP Chat plugin. Although chat isn’t useful if people aren’t online at the site to chat :-) That one is very much still in development… see the blog post for details.


    Scotm
    Participant

    @scotm

    @M Sweet! Works like a charm for me. The blog post also worked fine although I am seeing this code above the Twitter option in the blog post area:

    if (get_usermeta($user_ID,'twitter-tweet-posts') != 'on') return; if ( !function_exists( 'bp_blogs_install' ) ) return;

    Now if only we can get the posting option from the P2 theme post area as well! When can we try it out on our own?


    Mark
    Participant

    @wpsec

    @Scotm – thanks for the tip about the bug – there was a typo in the code – fixed it.

    On P2, you can call a template tag to include the Tweet checkbox under the post form.

    It’s nearly done… finding a few bugs, as you pointed out.


    Scotm
    Participant

    @scotm

    @M Nice. I noticed as well in the tweet search widget (another great feature) I couldn’t get the search to exclude a term (eg. “PEI -Pei Wei”). Not sure if I have that styled right but it might be a small issue.


    belogical
    Participant

    @belogical

    @M, worked like a champ! Great work! I deleted my account to see if it would properly cleanup the activity feed, and it did nicely! Delete my email (you should have it) from the wp_signups table so I can signup again :) I want to test that chat plugin. I have chat on my site now, but it stinks honestly. Looking forward to yours!


    Roy McKenzie
    Participant

    @roymckenzie

    Works like a charm. Loading the Twitter page seemed to be a bit slow for me.


    Roy McKenzie
    Participant

    @roymckenzie

    Love your chat plugin too! Interesting to see how it works when there is someone online to chat with. Hehe. Where did you find that plugin?


    Kunal17
    Participant

    @kunal17

    Just checked out the site. The twitter search widget is exactly what I needed. Thanks for adding that in. Cant wait to try out the plugin on my site.


    gpo1
    Participant

    @gpo1

    Please add users followering avatar & tweets as well as reply feature this would be a top-notch plugin.

    And also for chat plugin add the avatars in the chat-box whom you are chatting with?


    Mark
    Participant

    @wpsec

    @Roy McKenzie – I didn’t find it, I wrote it based on some Ajax libraries – which still need some modification. Thus the chat plugin is very much still in development.

    @Gpo1 – Those 2 features are data intensive because of the way Twitter’s API works. I’m thinking of how to implement that without overburdening the system. Image if you have 10,000 users of your site and all of them are using those 2 Twitter features you’re asking for – that’s a lot of traffic back and forth between your site and Twitter’s site. It can be done, just thinking of how to handle it optimally.


    gpo1
    Participant

    @gpo1

    what about friends avatars in the chat box like FB?


    belogical
    Participant

    @belogical

    @M

    shall we start a chant? we want twitter plugin, we want twitter plugin!!


    Roy McKenzie
    Participant

    @roymckenzie

    @M, @BeLogical – we want twitter plugin, we want twitter plugin, hehe.


    Mark
    Participant

    @wpsec

    @Gpo1 – It’s there now, and it was not easy!


    stefk
    Participant

    @stefk

    When will this plugin be available for download? Aswell as the bp-chat that you created? Great work!


    gpo1
    Participant

    @gpo1

    @M, Can you add followering tweets & Avatars below the send a tweet box, so that you could see your following tweets. Because its a bit boring without your followering /friends tweets?


    Scotm
    Participant

    @scotm

    @M Any update on the Twitter plugin?


    Mark
    Participant

    @wpsec

    The BP Twitter is nearly done – just a bit more testing to do. Seems to work fine but there is a timeout condition that I want to catch and display differently. Like when pulling data from Twitter, their site is often too busy to answer in a reasonable timeframe (15 second or less) so I have to trap the timeout and handle it, which the plugins does – but I want to modify the handling before releasing the plugin.

    As for BP Chat, it’s progressing quickly. There is a new group chat feature that is basically working now, but it needs more work.

Viewing 25 replies - 26 through 50 (of 58 total)
  • The topic ‘New Twitter Plugin for BuddyPress’ is closed to new replies.
Skip to toolbar