drupalfun.com
File:ID Filter and Node ID context for Avatar panel view
Hi There,
I am working through your book to improve the profiles on a site I am producing. I am using Drupal 5 (not all of the modules I'm using have been developed for 6 yet and I'm not so ambitious as to tackle them all) and I've got a couple of questions about the instructions in chapter 4.
1) Section 4.3.3 - point 9(d) - The option to add a filter for File ID does not exist for me (i.e. it doesn't appear in the list). Is this indicative of an error I've made, or is this to be expected for Drupal 5?
2) Section 4.3.3 - page 37 - Just above figure 4.10 there is a comment saying that the Node ID context should be used when adding the Avatar pane to the Profile. I'm not sure I understand what this means. As I'm using Drupal 5, I created the Avatar pane as a block (as indicated in the notes). Therefore, my Avatar pane appears under the 'Contributed Blocks' section, not the Node Context section. Is this important?
Lastly, and this may be because of the issues above, images are not appearing on the profile when I upload them. I've checked the file directory and it doesn't appear as though the Imagecache module is creating thumbs. I've confirmed I'm using the latest/correct modules, and followed the instructions several times but to no avail. I get the same result each time. Any suggestions?
Cheers for any help anyone can offer.
- Login to post comments
Related Questions
Responses
2. Hi Dorien - thanks for your
Hi Dorien - thanks for your help on this - much appreciated.
Through a (painful) process of elimination I've managed to confirm that the imagecache module is working fine. The problem appears to be with the Avatar view pane. Despite having an avatar image uploaded (which displays in the profile fieldset when I set the display field setting to Thickbox: Thumb), I'm still getting the default, no-image avatar picture (which appears because of the 'if empty' php code we put into the view).
I'm going to keep hunting as I'm sure this is something simple. Any pointers/ideas you've got would be great.
Thanks!
- Login to post comments
3. Developments...
Some further developments...
I did some fiddling about with the setting and, strangely, if I removed the argument (that referred to the empty text) then the view pane displayed the profile fieldset (i.e. same data as is in the right-hand column pane that we added from the book).
I have managed to get the avatar image to display by adding not the Avatar block view that we created, but by adding a Node Content Field. I can select the field_avatar from the dialogue box that appears, as well as set it to display using my Thumb preset.
I suspect there is something going on with the Legacy Node/Panes module, but that's just a hunch.
I've since discovered another odd problem - other users cannot create a profile. The link, under their account page, is there but it takes you to the standard 'Create Content' page.
Sorry about the lengthy comments/replies, but I've found a few of these on this site to be helpful and I wanted to make sure any info/issues I had were fully reported and documented.
Cheers for any ideas or help.
- Login to post comments
4. I'm using D6, and Panels 3
I'm using D6, and Panels 3 and am having trouble adding the avatar pane to the Profile panel. There are a lot of settings that aren't addressed in the book for this step. My panel still says 'Node being viewed' rather than and 'View: Avatar'.
Any ideas?
- Login to post comments
5. @melikay74: Did you add the
@melikay74: Did you add the view to the panel instead of the node view? Adding the avatar is different from the other profile information. You should add the panel pane called Views: Avatar.
Perhaps a screenshot could help me clarify this.
- Login to post comments
6. Hello Ms. Dorien, How would
Hello Ms. Dorien,
How would you add the view to the panel? When I click on the gear and add content I cant seem to find a way to add a panel pane. Please help. Which page should I save a snapshot of so I can help you help me? Thanks.
- Login to post comments
7. I'm not sure...I think I
I'm not sure...I think I added it to the node view. I posted some screenshots on my profile:
http://drupalfun.com/photogallery/melikay74s-photo-album
Thanks.
- Login to post comments
8. Great use of the photo
Great use of the photo gallery ;-)
Everything looks ok. The third screenshot is interesting. You should make sure that the right types of panes are added there. I can't see which ones they are on the screenshot.
I think you mailed me, I'll have a look with your login data.
- Login to post comments
9. Thanks for your response
Thanks for your response Dorien...I emailed you the login info to my site (urban-potter.com)
- Login to post comments


1. Hello, 1) That's normal in
Hello,
1) That's normal in D5. You can just use the filter: imagefield avatar: empty (something in the lines of that). The goal is to only display profiles with avatar.
2) There are a few options here. Since you work with arguments, create a "views pane" (/admin/panels), based upon your views block. Here you are able to fill in the context requirements. You can leave most of the settings here as they are.
3) This is an imagecache misconfiguration error probably. Check:
- do you have cleanURLs on?
- is your files directory writeable?