Invite to BL wo access to profile
cozzi - July 10, 2008 - 19:07
| Project: | Buddylist2 |
| Version: | 5.x-1.0-beta1 |
| Component: | Buddy API Invite |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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

#1
hi,
yes - thats possible. all what you have to do is to add a link to your view. this link should be: buddy/add/UID
#2
A views field for this link would be nice, should be not soo difficult and has been requested several times.
#3
i 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/...
#4
I'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
#5
if 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?
#6
Ah, 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.