BuddyPress and the YOURLS: WordPress to Twitter plugin

A few weeks ago, I wrote about reclaiming short URLs using YOURLS. That post raised some interest among the CUNY Academic Commons team in having a URL shortener just for the Commons, with full integration into BuddyPress. So I emailed Ozh Richard, author of YOURLS, about the possibility of adding BuddyPress support to his official YOURLS WordPress plugin, YOURLS: WordPress to Twitter. He graciously accepted my offer to do the leg work.

Today I’m releasing the fruits of this collaboration: version 1.5 of YOURLS: WordPress to Twitter. YWTT 1.5 automatically detects when you’re running BuddyPress, and adds the following BP-specific features:

  • Member and Group URLs – Generate short URLs for member profiles and for group home pages.
  • A “pretty URL” setting – Instead of generating random URLs (like http://blo.so/54), you can make member and/or group members ‘pretty’ (like http://blo.so/username or http://blo.so/groupname).
  • User customizability – Optionally, you can add new options under groups’ Admin > Group Settings and members’ Settings > Short URL allowing users to request a custom short URL of their choice. (This feature requires that you set YOURLS_UNIQUE_URLS to false in your YOURLS configuration file.)

Down the road, I plan to flesh out BP-YOURLS functionality, with optional short URLs for forum topics, activity items, and so on.

I’ve also slipped full localization support into version 1.5. Send me your mo/po translation files if you’d like them to be distributed with the plugin.

Download YOURLS: WordPress to Twitter 1.5, with BP support.

4 thoughts on “BuddyPress and the YOURLS: WordPress to Twitter plugin

  1. Pingback: BuddyPress support for YOURLS: WordPress to Twitter – CUNY Academic Commons Development Blog

  2. Paul

    wow. very cool. I’ve recently chosen to ‘reclaim my short urls as well. This BP option really adds to the brandability for communities as well as control of all external links.
    thanks for your contribution.

    Reply
  3. Mike K.

    So, would this mean that members could request their own URL of, for example, bpsite.com/username and bpsite.com/groupname?

    Or are the group short URLs automatically generated? If so, where do group admins/members find the group’s short URL?

    It’s be cool if this could be integrated into Achievements, when, for example, a member uploads 100 photos, they’d unlock their own short username URL.

    And what about URL statistics? Are group admins and members able to view their own short URL stats – such as bpsite.com/username+ ?

    Reply
  4. Boone Gorges Post author

    So, would this mean that members could request their own URL of, for example, bpsite.com/username and bpsite.com/groupname? Or are the group short URLs automatically generated?

    They are automatically generated. If you have the “pretty” setting turned on, then they’re generated as ‘username’ or ‘groupname’. Otherwise they are random.

    If so, where do group admins/members find the group’s short URL?

    It’s printed into the group/profile header.

    It’s be cool if this could be integrated into Achievements, when, for example, a member uploads 100 photos, they’d unlock their own short username URL.

    Good idea. I’ll put a filter in the next version that would allow this to be built.

    Are group admins and members able to view their own short URL stats – such as bpsite.com/username+ ?

    No, but it’s an interesting idea. The shortcoming of this would be that YOURLS only keeps track of visits to the short URL, so it wouldn’t be an accurate count of *all* visits.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *