Posted by bonobo on November 8, 2008 at 1:00am
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
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
.
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
What is the different in using this instead of eg Friendlist?!
Simpler
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
So, you are going to migrate to the flag module?
Yes
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?
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...
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
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
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
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...
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?
Hi,
How did it go, out of curiosity?
Merc.