drupalfun.com
Panels 3
Do we know if this works at all with Panels 3 in Drupal 6.9? I think I have followed all the steps correctly but my photo gallery block always displays "This user has no picture gallery uploaded" regardless of whether or not I am viewing my own profile. Also the "View my profile" from the Photo Gallery back to the profile is also not working either - the link displays on the top of the page and only links back to node/.
It makes me wonder if the content_profile_load function works properly with Panels 3...
Any thoughts?
Any and all help would be greatly appreciated - this has been a great instructional guide and well worth the money I spent on it!
Thanks...
Related Questions
Responses
2. Hi, Cecille is right, I have
Hi,
Cecille is right, I have not yet tried Panels 3 myself as well.
Still I think that content_profile_load is a function from the Content Profile module, it should have nothing to do with Panels 3.
You can test the code, to see what happens:
Try checking your variables, by putting at the very end of your code:
echo $myuid;
echo $profileid;
3. Thank you
I will give that a try - I agree with everything said here - I had initially implemented Panels 2 as per the ebook but had an issue with the node override taking over every node (for some unknown reason). I dove into the documentation and was scared by all the talk of Panels 2 basically having no future and everything moving to Panels 3. I implemented Panels 3 and really liked it and my node override issue went away.
I will do some troubleshooting and let everyone know what happens.
Thanks again,
-Danny
4. Issue isolated
OK I think I have this issue somewhat isolated...
First off - using these 2 echo statements at the end of the empty text PHP code in the Photo Gallery view I got blanks:
echo $myuid;
echo $profileid;
So I decided to start playing around with the variables in the code itself.
I put in echo statements for all the variables, $idn1, $id2, $mynode
$idn1 had a value of 1 (which is correct for my user id #)
$id2 had a value of 702 (which is my profile node #)
however, $mynode had a blank value
So, content_profile_load(profile, $idn1) is somehow returning a blank when a value of 1 is substituted for $idn1.
This is very odd and I am not sure what to try next.
Any suggestions?
Thanks in advance for your help - I will flip back over to Panels 2 if we can't think of anything else to try I suppose :(
5. Is your profile content type
Is your profile content type named "profile" exactly?
6. DOH!
Doh - I just checked - it was named uprofile leftover from a previous module (Advanced Profile Kit I believe). That was the issue - thanks - you're a genius!
7. I've posted some conversion
I've posted some conversion notes here: http://drupalfun.com/content/converting-panels-3


1. choosing modules
hi Danny,
I'm not really a Drupal expert to say if Panels 3 is all that stable. Just a Drupal newbie here. However, I do have a rule of thumb when choosing versions of modules to use.
First, I'd check if that is the recommended release for my Drupal version. So for Drupal6, the recommended release is 6.x-2.0-alpha3. That being said, I'd use Panels2 over Panels3, which is a supported release for Drupal6.
Second, I'd check if it's an alpha or a beta release. Definitely would go for the latter if I'm really in dire need of the module.
Last, I'll browse through the issues posted regarding that module release. That way, I'd get a heads up should there be a problem using it.
Sorry I couldn't quite answer your question as I've never tried Panels 3 before. But I'd suggest that you look it up at Panels issue queue and see if someone has posted a similar problem. They put fixes there as well :)
Hope my post would somehow be useful to you and to others as well. Choosing recommended releases somehow spare us of fixing bugs and figuring out incompatibilities :D
Best of luck!
Cecille