I'm working on a little community website, and I'm trying to change the profile pages a little.

I have acidfree installed, and there's a block of six images on every page with the most recent images posted. Now I want the same block on every profile page, but just displaying images of that particular user.

I cloned the block view. And tried to give it a argument "User: Username is Author", but can't get it to work. Even with an argument code I found it doesn't work.

Note: my user profile paths are site.com/users/username not site.com/user/username

Does anyone have a solution?
Thanks in advance

Comments

Aquabert’s picture

any help?

nevets’s picture

Did you set "Action to take if argument is not present" to "Provide default argument" and "Default argument type" to "User ID from URL"?

dawehner’s picture

Thats drupal5, i don't know a lot about it.

<?php
if (arg(0) == 'user' && is_numeric(arg(1))) {
  $account = user_load(arg(1));
  $args[0] = $account->name;
}
return $args;
?>

I think this should do it.

merlinofchaos’s picture

Views for Drupal 5 is basically unsupported. Bumping your own post after a couple of days won't really help you much, I'm afraid.

Aquabert’s picture

@nevets / dereine:

it didn't work :(

thanks for your support anyway guys, it's appreciated.
seems to be a hard thing to do, but I'll figure out a way..

thanx!

esmerel’s picture

Status: Active » Closed (won't fix)