Skip to:
Content
Pages
Categories
Search
Top
Bottom

@ Group


  • Avatar
    Participant

    @avatarrocks

    We have been building a site catering more towards the Groups created on our site.

    and have been thinking about this since the launch of 1.2

    Is there Any Way to Bring @ Mention functionality for Group Names.

    It should not Interfere with @ Mentions for Member Names.

    Perhaps Checking against the Members Database to Ensure All Members & Groups Have Unique Names.

    Or Perhaps Using ‘!’ Symbol for Group Mentions as found in Identica / Status.net

    Please let me know if any one has been thinking along these lines

    and of any suggestions on how to go about creating this.

    Look forward to your replies & collaborations.

    – Jeff –

    .

Viewing 4 replies - 1 through 4 (of 4 total)

  • Bowe
    Participant

    @bowromir

    I thought about this as well.. I think we could use a unique symbol (! is pretty good indeed) and attach that to a groupname or groupID (for longer Group names).

    The reason why I think this could be very cool if you’d combine it with the TweetStream plugin.

    I image it working like this:

    User syncs his profile with Twitter through TweetStream. Then makes a post from his mobile phone/twitter app:

    “!buddypress this is a status update for the group “buddypress” on my BP site”

    The tweet gets converted to a status update for the group BuddyPress and voila, you can post updates to your groups through twitter from everywhere!


    Xevo
    Participant

    @xevo

    Depends on how this notifies the group, it shouldn’t send a notice to all the users, I wouldn’t want to be bothered with my groups mentions, you’d get nuts when your in a lot of groups.

    Other then that, good idea. :)

    a simple example that will auto link a group slug mention in an activity update

    this a proof == i’m lazy. so it only matches the group slug and NOT the true name (someone would have to build a function for that)

    …and this uses a caret but anything can be used

    function bp_activity_at_groupname_filter( $content ) {

    //define your catch hook, i'm partial to the bang but lets eat a caret
    $pattern = '/[\\^]+([A-Za-z0-9-_]+)/';
    preg_match_all( $pattern, $content, $groupnames );

    /* Make sure there's only one instance of each groupname */
    if ( !$groupnames = array_unique( $groupnames[1] ) )
    return $content;

    foreach( (array)$groupnames as $groupname ) {

    //note this is the group slug as for a proof - need to build a group "name" lookup function
    if ( !$group_id = BP_Groups_Group::group_exists( $groupname ) )
    continue;

    //too much work to get a link
    $thisgroup = new BP_Groups_Group( $group_id );

    $content = str_replace( "^$groupname", "<a href='" . bp_get_group_permalink( $thisgroup ) . "' rel='nofollow'>^$groupname</a>", $content );
    }

    return $content;
    }
    add_filter( 'bp_activity_new_update_content', 'bp_activity_at_groupname_filter' );
    add_filter( 'groups_activity_new_update_content', 'bp_activity_at_groupname_filter' );
    add_filter( 'pre_comment_content', 'bp_activity_at_groupname_filter' );
    add_filter( 'group_forum_topic_text_before_save', 'bp_activity_at_groupname_filter' );
    add_filter( 'group_forum_post_text_before_save', 'bp_activity_at_groupname_filter' );
    add_filter( 'bp_activity_comment_content', 'bp_activity_at_groupname_filter' );


    Avatar
    Participant

    @avatarrocks

    Hello, Thanks for your good replies.

    The Mobile application is exactly where I’m going with this.

    Just an easier way to post to a Group page.

    @Bowe Diggin’ the Twitter Integration idea.

    We had some good success with Twitter posts from a festival last year.

    http://www.SPARKcon.Vybee.com – and would like to continue this trend.

    @Xevo Basically it would just be a post in the group as normal posts in groups.

    and by default this doesn’t notify all members if I’m correct.

    @etiviti Let’s see if we can collaborate and continue.

    – Jeff –

    .

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘@ Group’ is closed to new replies.
Skip to toolbar