I hope this hasn't been asked yet, at least I couldn't find it.
Is there anyway to have Friendlist automatically notify the receiver of a friend request, other than email? What I'm looking for is something like what Private messages does. When you have a message waiting to be read, a number appears in the block (example: "All messages (1)").
Other than that, I'm liking this module so far. I needed to find a replacement for the now dead Friend module.

Comments

mercmobily’s picture

Status: Active » Fixed

Hi,

Potentially, since the module just uses Rules, you should be able to contact your users in any way you like.
However, the module you use for that needs to export actions for Rules. Then, all you do is change the action for specific events so that whatever needs to happen... will happen.

Makes sense?

Merc.

wxman’s picture

Thanks. I haven't played with rules too much yet, so I guess I'm going to have to start learning how to use them.

CharlieHipHop’s picture

I'd like to know how to send an e-mail notification. When a user friends another, they get the error

"Unable to send e-mail. Please contact the site admin, if the problem persists."

Other modules don't have a problem sending e-mail so I guess I must have misconfigured something.

Is there any documentation on configuring friendlist? It looks like a great module, but I'm too dumb to figure it out.

mercmobily’s picture

Hi,

This issue is closed...
However, you need to make sure your Drupal system is able to send emails -- that's the problem you're having right now!

Merc.

CharlieHipHop’s picture

Drupal sends email. The contact module sends email. New users are notified by email when their accounts are approved. I even have a mailing list that I use to blast messages all the site's users. I would love to use it to say, "Hey, everybody, now we can friend each other!"

mercmobily’s picture

Hi,

ummmm please check the Rules you are using. Is everything OK there? (In terms of who receives the email, etc.)
Are you using the latest dev version of the module?

I am confused... but the module has no idea about emails. Everything is handled by Rules. Marius, do you have any idea?

Merc.

mariusooms’s picture

Answered here: http://drupal.org/node/359029

Marius

CharlieHipHop’s picture

Thanks for the help. Still not quite working but a little progress.

Now the error message message in the log reads

Error sending e-mail (from blah@blah.com to ).

So there is no recipient. How do I add one? The dropdown menu on the actions page reads "User1, which adds User2" or whatever but I guess no token is being passed (?).

mariusooms’s picture

It must have to do with the fact that the users have a mall configured email. The receipent email is taken from the user signup email. Please continue discussion in the new issue, http://drupal.org/node/359029, as this issue is marked fixed and addresses a different issue.

George2’s picture

Category: support » feature
Status: Fixed » Active

regarding the original question, i'm trying to get the menu item for 'twoway received' to become something like 'twoway received (1)' or some such.

so i'm adding a title callback to the override_option in friendlist_views.views_default.inc on line 638, but the callback function isn't being called. is this the only way to change the menu title dynamically? i'm trying to use the same method privatemsg does with it's title callback in the menu item.

any light you can shed would be great thanks

  $handler->override_option('menu', array(
    'type' => MENU_NORMAL_ITEM,
    'title' => t('Twoway received'),
    'weight' => '0',
    'name' => 'navigation',
		'title callback' => '_friendlist_views_title_callback',
  ));

and the callback is:

 function _friendlist_views_title_callback($title){
	global $user;
	$count = db_result(db_query("SELECT COUNT(sid) FROM {friendlist_statuses} WHERE requestee_id = %d AND status = '%s'", $user->uid, 'TW_1_TO_2_P'));

	$new = '';
  if ($count) {
    $new = " ({$count})";
  }
  $title .= $new;

  return $title; 
 }
wxman’s picture

George2: That's exactly what I was trying to get it to do. I didn't even get as far as you did, so I'd love to see the answer.

mercmobily’s picture

Status: Active » Fixed

Hi,

Guys, rather than re-opening a closed and unrelated bug as a feature request, I think it would be a _lot_ better for you to submit a fresh feature request with all the info.

Can you please do that? It will make tracking sooooo much easier...

Merc.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

manoz_79’s picture

Were you able to implement, what you were trying to acheive? If you have could you please detail it out, I too am looking for this feature.

mariusooms’s picture

As stated in comment #12 open a new ticket, this ticket has been closed. Thanks.