Despite days of trying I am still unable to get flags to appear on Advanced Profile pages. Is this a known incompatibility?
Or is there some kind of workaround?

Thanks for any info.

CommentFileSizeAuthor
#7 views.png174.42 KBtypehost
#7 panels.png131.41 KBtypehost

Comments

ibexy’s picture

I have the same problem. Any way of making flagged content appear on Profile page?

mooffie’s picture

I have the same problem. Any way of making flagged content appear on Profile page?

My mind-reading abilities aren't as good as they used to be, but I think Dan wants to put a flag/unflag link there (this is a "content type", in Panel's lingua), whereas you, ibexy, want to embed a view there. You embed a view listing flagged content in the same way you embed any other view (There's a "Views panes" module you need to enable).

ibexy’s picture

Yes I created a flag for bookmarks and I succeded in embedding the view in the Profile but the currently logged user's in bookmarks shows for every profile page I visit. I have tried with the argument section of the view but its just not working. I know its the UID thing but I cant get it to work.

mooffie’s picture

Status: Postponed (maintainer needs more info) » Active

ibexy,

- First you need to construct a view that gets as an arguent the user ID by which to filter the flagged nodes (and lists these nodes).

- Then, make sure this view works.

- Then, you need to use the "Views panes" module to embed your view in a panel. You need to pass the view the user ID argument.

I explained the third step a couple of times here, but the search engine is crap and I can't find it. I'll start a handbook page sometime soon (if you're impatient, search this issue queue for "panels" or "panel" --but for some reason I don't get results). I'll also have to explain how to construct a view. (If you're using Drupal 5, a similar view is explained in the handbook.)

mooffie’s picture

Status: Active » Postponed (maintainer needs more info)

I'm marking this "needs info" because I want Dan to explain what he meant.

mooffie’s picture

Status: Active » Postponed (maintainer needs more info)

I've started an Intergrating with Panels 2.x section in the handbook. Ibexy, you'll find your answer there.

typehost’s picture

StatusFileSize
new131.41 KB
new174.42 KB

mooffie

I really appreciate your documentation with this - excellent, but for some reason I am still not getting the result.

Views with Drupal 5.12:

page view
url: user/$arg/bookmarks
table view

table fields - same as tracker

Argument: Flags 'Bookmarks' for UID
--> have tried empty text, summary, display all - does this matter?

Filters:
1. node published - yes
2. Flag: Bookmarks - is flagged by "any user"

This should really do it - I create a views pane for the view

Panels 2:

select "from context" on the argument
required context - user

Basically, with "flagged by any user" I am getting all bookmarked pages on all profiles, and with "flagged by logged in user" I am getting the logged in user's flags on every profile - for some reason the argument doesn't seem to be applied.

I am going to attach screenshots of both configurations, maybe you have an idea as to what I am missing here.

Thanks in advance.

mooffie’s picture

Typehost, does the view itself work?

When you go to ?q=user/3/bookmarks, do you see the bookmarkings of user #3 only?

When you go to ?q=user/7/bookmarks, do you see the bookmarkings of user #7 only?

However, note that there's a little problem here. If you're using the same URL (user/$arg/bookmarks) for both your view and your panel then I don't know what would happen. I don't know if it's the panel or the view that you'll see on screen. So first change your view's URL to something else, say person/$arg/bookmarks, and please answer the above questions but with the new URL.

In other words, we should first verify that your view is OK. If, and only if, it works as expected, we can continue to the next step (Panels).

typehost’s picture

?q=user/3/bookmarks (or any number for user) is showing all of the bookmarked pages for the site, including one that has been bookmarked by two users.

mooffie’s picture

Typehost, please change the view's URL to person/$arg/bookmarks. Now, does ?q=person/3/bookmarks shows the bookmarkings for user #3 only?

(Sorry if I seem nagging.)

typehost’s picture

I have done that and there is no change - same with ?q=person/3/bookmarks
or clean urls: person/3/bookmarks

All the site's flagged posts display regardless of user number.

mooffie’s picture

Typehost, please remove the 'Flag: Bookmarks' filter (it's the one having "Is Flagged By ... Any User" beside it) and try again.

(This filter is not supposed to affect the results, but I've just tested this on my system and I suspect our module has a bug here.)

typehost’s picture

I have removed the "Flag: Bookmarks" filter and it appears to be working correctly on both the views and the panels pages.

mooffie’s picture

Typehost, thanks for the report. I tracked down the bug and opened a new issue: #331367: Bug in D5's argument handler.

mooffie’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'm closing this issue because there's already a section in our handbook explaining the subject, and because Dan (the original poster) hasn't returned to explain himself.

typehost’s picture

many thanks for your help in working out the problem here - I really appreciate it

Status: Fixed » Closed (fixed)

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