Active
Project:
Buddylist2
Version:
5.x-1.0-beta1
Component:
Buddy API Invite
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2008 at 19:07 UTC
Updated:
1 Aug 2008 at 20:44 UTC
Is there a way I can give my users a way to invite others to their BuddyList without first displaying the profile of the target user?
I constructed a simple a view to list members (by Graduation Year) and would like to place an a BuddyList invite link in that list - is this possible?
thx
Cozmo
Comments
Comment #1
nodestroy commentedhi,
yes - thats possible. all what you have to do is to add a link to your view. this link should be: buddy/add/UID
Comment #2
crizA views field for this link would be nice, should be not soo difficult and has been requested several times.
Comment #3
nodestroy commentedi added a actionlink views field (addlink when users a no buddies, deletelink when users are buddy)
after the package script run it will be in dev version, if you want to test it now:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/buddylist2/...
Comment #4
cozzi commentedI'm trying this but....
I took the code you posted and replaced what was in buddylist_views.inc with your new stuff. Then I went to modify my view looking for a new BuddyList view Field of the like Buddylist: "something" (where the something indicates a link such as Add/Remove BUT I still only see Buddylist: Username and Buddylist: Userpicture - what am I doing wrong?
Best
Cozmo
Comment #5
nodestroy commentedif you have a buddylist_views.inc file you are using buddylist and not buddylist2
the fields name is Buddylist: Actionlink, maybe you have to empty cache?
Comment #6
cozzi commentedAh, you are correct!
I believe I upgraded to buddylist2 in the past but for then switched back to buddylist. I guess I'll give it a try again. Thanks in advance.