Closed (fixed)
Project:
Advanced Profile Kit
Version:
5.x-1.0-alpha2
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2008 at 19:23 UTC
Updated:
29 Apr 2008 at 16:30 UTC
This probably isn't a great question for the Advanced Profile module, but I figured the contributors may know. How do I get an "add to buddies" link in to my panels page? Would one just create a block with the link in?
Comments
Comment #1
michelleIt's not that simple. You need to check for access and if the user is already a buddy. The code for it is in panels-content_userinfo.inc in the includes directory if you want to see what's involved. It's probably easier to just add the user info content type again and theme away everything except the link.
Michelle
Comment #2
greg.harveyAh, cool. Thanks for the pointers. =)
Comment #3
oct376 commentedI'm having the same problem... Could you elaborate a little more as to what I should do?
Has anyone gotten this to work successfully?
Comment #4
codenamerhubarb commentedTry adding
print $buddylist_link;to panel-user-info.tpl.phpComment #5
Fixdit commentedNone of the above have worked for me. Could someone point to how exactly these buttons should be implemented? I think I'm having trouble passing the right information to the mini panels in the users profile due to the new way Panels2 works. I think it's something to do with the contexts???
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
greg.harveyFor reference, I ended up adding a link to my usernodes using hook_link_alter and then showing the usernode in my advanced profile panel page ... hook_link_alter code looked like this: