Photo Gallery. (page 47) help please

Status: 
Open
Question: 

I have received the following question:

One last thing I’m struggling with now.

I created the Photo Gallery. (page 47)

· The view Block looks fine – Image1.jpg

· Created the relationship – Image2.jpg

· Added the Block View to my panel – Image3.jpg

· But nothing wants to display on my profile page, not even the “Add your pictures here!” link. – image4.jpg

Please help me, I don’t know where to start.

Responses

1. You can try previewing the

You can try previewing the view when you are editing it. Give in a test UID as argument in the preview. This will tell you if the view works correctly.

2. Another thing to try is to

Another thing to try is to try adding a View pane display in the view, instead of a block, and add that to your panel page.

3. OK I tested the view block

Ok I tested test UID as argument in the preview of view block and it works fine.

But the block is still not showing.

I don't want to do the panel view just to get it working, this is a learning experience and I whant to know what I'm doing wrong.

4. This might be a bug in

This might be a bug in panels, since it is still in alpha stage.

5. I double checked the view

OK, When I have pics in my photogallery and send an argument of 1, the view shows my pics (Works).
When I send an argument of 2 It display "This user has no picture gallery uploaded." (Works).
When I delete my photogallery and send an argument of 1 then It display "This user has no picture gallery uploaded.", shouldn't it display a link "Add your pictures here!"?

The code I'm using in my "Empty text" is:

<?php global $user;
$idn1=$user->uid; //my userid
$id2= arg(1); //my contentprofileid
$mynode= content_profile_load(profile, $idn1);
$id1= $mynode->nid;
//check if the user is looking at his own gallery:
if($id1==$id2){
//If so: display add link
echo 'Add your pictures here!';
}
else
//if not:
{
echo "This user has no picture gallery uploaded.";
}
?>