Lightweight Buddylist Using Flag

Events happening in the community are now at Drupal community events on www.drupal.org.
bonobo's picture

Just saw this come in:

http://drupal.org/project/flag_friend

From the description: "Flag Friend utilizes the Flag module's API in order to provide a lightweight buddy system."

Cheers,

Bill

Comments

.

michelle's picture

Oh, awesome! I was hoping someone would do that before I got around to looking at it. :)

Michelle


See my Drupal articles and tutorials or come check out the Coulee Region

What is the different in

DerTobi75's picture

What is the different in using this instead of eg Friendlist?!

Simpler

michelle's picture

Friendlist and the User Relationship module it duplicated are both very complex allowing all sorts of different permutations of relationships. This is simpler, akin to the original buddylist module. It's also built using the awesome flag module which more and more people are going to have on their sites anyway. I just need to find a way to migrate my data from buddylist and then I'm going to switch.

Michelle


See my Drupal articles and tutorials or come check out the Coulee Region

So, you are going to migrate

DerTobi75's picture

So, you are going to migrate to the flag module?

Yes

michelle's picture

I'm currently using views bookmark and will switch that over to flag.

Michelle


See my Drupal articles and tutorials or come check out the Coulee Region

Not anymore?

mercmobily's picture

Hi,

I read on a different issue that you are no longer using Flag Friend. I actually think it's very promising.
Have you decided against Flag Friend in the end? Was it because it was still the module's early days? Or...?

Merc,

love it...

likewhoa's picture

this module is just what we need for a friends feature, it's lightweight and it can be easily customized since it uses flag API. thanks for this. I just hope that other developers can contribute to this and stop making new friend's module. using flag API is the way to go when it comes to this.

bending technology to fit businesses.

HELP with flag_friend - creating user menu tabs

el_reverend's picture

Hi all,

I found this module and it looked like just the right module, but it still needs a bit of work for Drupal 5.x and Views 1.x. To elaborate a little I have installed the module and it works but due to the Views 1.x limitation I can't create a view that lists a user's friends. However this module provides a list at user/arg(1)/friends that will list your friends. My issue with this is that it does not provide a link to it in the users account or profile page. I'd like to simply add a tab to the user profile page that redirects to this page. I have tried to do this (creating a new module), but without much luck. I'd appreciate any help or suggestion.

Thanks.

edit menu view

likewhoa's picture

edit the menu view and set it as tab menu, views-1 supports this feature iirc.

bending technology to fit businesses.

Tried that but receive errors

el_reverend's picture

Thanks likewhoa, I did try that, but I receive sql errors. According to the handbook page for flag_friend this is a known issue with the flag module under Drupal 5.x and Views 1.x (http://drupal.org/node/303589). I thought that if the page already exists I could just create a tab that redirects to the existing page. My attempts on creating a simple tab by creating a mini module failed (see 'code' below). I based it on the logout tab module, but for some reason it won't work. I'd appreciate any help or suggestions.

<?php
// $Id: friendstab.module,v 1.0 $
/
* @file
* Adds a My Friends tab to the profile area
*
*/

/

* Implementation of hook_menu().
*/

function friendstab_menu($may_cache) {
  
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/friendstab',
      'title' => t('FriendsTab Settings'),
      'description' => t('Choose the page that the user account friends tab link re-directs to.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array('friendstab_admin_settings'),
      'access' => user_access('administer site configuration')
    );
    }
  
    //testing to make sure we're in a user profile...
    if (arg(0) == 'user' && is_numeric(arg(1))) {
  

      
$helpurl = variable_get('friendstab_url', 'friends');
      
    // User help page
    $items[] = array(
        'path' => "user/". arg(1) ."/". $helpurl,
        'title' => t('My Friends'),
                'weight' => 0,
                'callback' => 'gotofriends',
                'callback arguments' => $helpurl,
        //'access' => user_access('maintain own subscriptions'),
        'type' => MENU_LOCAL_TASK,
        );
      
  
    }
  
    return $items;
  
}

function gotofriends($helpurl) {
  
    drupal_goto($path = 'user/'.$user->uid.'/'.$helpurl);
      
}

/**
* Define the settings form.
*/

function friendstab_admin_settings() {

    $form['friendstab_url'] = array(
    '#type' => 'textfield',
    '#title' => t('URL for the account friends page'),
      '#description' => t('Enter the relative path for the user account friends page.'),
      '#default_value' => variable_get('friendstab_url', 'friends'),
    '#title' => t('URL'),
    );
      
        return system_settings_form($form);
}

no longer using flag friend...

likewhoa's picture

flag friend module's issues are not very active and I decided to switch to 'friendlist' module instead as it seems more active and actually works..

bending technology to fit businesses.

How did it go?

mercmobily's picture

Hi,

How did it go, out of curiosity?

Merc.

Social Networking Sites

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: