Closed (fixed)
Project:
Flag Friend
Version:
6.x-1.0-rc4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2009 at 01:43 UTC
Updated:
1 Jul 2010 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sirkitree commentedI think in this instance, a flag_friend relationship handler would have to be created. That way you could list content of people who have a relationship to you through flag_friend.
Comment #2
mariusooms commentedWould this be a serious feature to incorporate? Since it is pretty much the feature 'friendlist' has over this module. Well, this and some others, however content tracking from friends is seriously lacking within Drupal modules. Therefore I really welcome any effort in this direction.
Kind regards,
Marius
Comment #3
sirkitree commentedMost of my efforts for content tracking have been with the Activity module, so I'm unlikely to take the time to write this handler myself, but i would gladly review a patch.
Comment #4
dicreat commentedDoes somebody have a worked example of listing content by friends?
Thanks.
Comment #5
bentonboomslang commentedI don't have a solution but I too would love to see this kind of functionality.
It didn't seem like it would be too difficult to build but I've been stuck on it for ages now. I'm trying to create a list of just the profiles of my friends (but the profiles are created by Content Profile and as such are nodes created by Users that are my friends).
Any ideas?
Thanks
Comment #6
tyromind commentedcouldn't wrap my head around how to pull it off - seems like adding the flag-friend relationship would allow you to list nodes authored by users via that relationship. is it a bug that it doesn't work? currently it will only display content by the current user.
Comment #7
sirkitree commentedI dunno what you have, but when I configure the relationship handler, I have an option to list by Any User - see attached. Does this not work for you?
Comment #8
palazis commentedI think a have a very similar problem - i want to create a node view "All posts of my friends".
I have tried to use the Relationship "Flag Friend: User flag" By "Current User" but I always end up with an empty view (no rows). Same result if I use By "Any User"
Is there something I am doing wrong?
Thanks for the great module anyway!
Comment #9
palazis commentedI think I might have found what is going wrong... Here's the SQL code of my view:
I believe that the flag_content table shouldn't be used here since we need the Flag Friend Relationship.
The flag_friend should be used instead.
How can this be fixed?
Comment #10
liliplanet commentedHi,
Using Activity 2 and Friend Flag.
As it's a bit long to write all the details, have just made a screenshot, see attached.
It shows all content added by friends (flag friend) and activity 'node insert'.
If I remember correctly, there was a problem when you re-named the Page Name, so just keep it as is : 'Page'.
Comment #11
palazis commentedThanks.
I will try to use the Activity Module
Comment #12
palazis commentedI am afraid this doesn't work...
The view of the screen shot returns a view of my activities only - not the activities of my friends.
I would like to end up with the activities of my friends.
Same if I log in as another user. I get his posts only.
If I remove the Activity Access: Allow Access to the Actor filter, I end up with an empty view.
This is the SQL code of my view:
Any solutions please?
Comment #13
liliplanet commentedJust select Activity Access : Flag Friend
Did you select the correct relationship in Activity Access: Flag_friend Access?
Access to Actor also includes the posts added by the owner.
Comment #14
palazis commentedThis is working !!!
Thanks a lot!
Comment #15
sirkitree commentedComment #17
marcoBauli commentedHowdy, i am trying to show nodes from friends too, but after trying all the possible relationships and handlers seems i cannot get to it..
A flag_friend relationship should be everything needed without adding extra modules (Activities 2), but it outputs a blank page with no results as palazis says.
Can anyone who succeeded kindly upload an export of the view? Any assistance would be very much appreciated, i tried everything but this does not seem to work as expected...thank you
Comment #18
sirkitree commentedIdeally a new argument handler should be created for this, but you can work it with a little php magic.
Create a new node view and add a User: uid argument:

Configure this argument to provide a default value with php, returning a comma delimited list of the user's friend uids, and set the argument to allow multiple values:

In this example I've just used the current user, but you can plug in whatever user you like with other various methods, but that's outside the scope of this.
Comment #19
marcoBauli commented#18 perfectly works, thanks a lot!