I have managed to add "My buddies recent posts" to current user's profile page. Unfortunately it now shows on all profile pages and I do not know way to filter it away from there. If it were a block, I could use php code, but it being a view, how can I limit the view's visibility only to current user's profile page?

Comments

w3dreamer’s picture

Edit: it does not help if I add block to panel that is shown in user's profile page. While I can write the code to block's congiguration visibility settings that prevents block to be shown in "normal cases", it still is shown in panel page. What am I missing?

michelle’s picture

Status: Active » Closed (won't fix)

Making a pane visible to only the current user would take custom coding that is beyond the scope of a support request. Another possible option would be choose new custom content and put something like:

  global $user; 
  if (arg(1) == $user->uid) {
    $view = views_get_view('VIEW_NAME_GOES_HERE');
    print views_build_view('embed', $view, array(strval($user->uid)), false, false);
  }

That will show the view only if the profile is for the currently logged in user. Best I can offer... As I said, this is really beyond the scope of this module's support request.

Michelle

w3dreamer’s picture

This will do. Thank you Michelle!

michelle’s picture

Status: Closed (won't fix) » Fixed

Ok, great. Guess that's more fixed than won't fixed, then. ;)

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

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