I have a modified user_profile.tpl.php.
How do I list user acidfree items in their profile?

Comments

vhmauery’s picture

Not sure what you are getting at here, but a user's acidfree items are just nodes -- all nodes created by that user are his/hers.

If you are talking about per-user albums, that is stored in the user's data column in the user table. 'acidfree_album' is the name of the variable. That stores the term id of the taxonomy term associated with the album.

alippai’s picture

Sorry. I want to list items from users root albums. - on there profile page using user_profile.tpl.php
My code is now:

$tid = acidfree_get_root($user->uid, true);
if (!$tid)
	return drupal_not_found();
$nodes = _acidfree_get_children($tid, 15, ALBUM_PAGER, true);
$view = new stdClass();
$view->args[0] = acidfree_get_root();
echo theme('views_view_album_grid_view', $view, '', $nodes);

- but it doesn't works :)

alippai’s picture

I want to display a div on profile page, what shows the contents of users root album (on the profile page)

alippai’s picture

I just want to show users album on their profile...
I needs to be included in user_profile.tpl.php...
Is it problem to do it or you don't know what I'm writing about?

jinac’s picture

There's a php snippet for displaying user submitted images on a custom profile page vis this page: http://drupal.org/node/40087.

alippai’s picture

I don't want to display their latest images, but I want to show their root album contents in grid view...
I want to merge theese pages:
http://gimi.brain.sk/drupal/?q=user/1
http://gimi.brain.sk/drupal/?q=node/739

mwheinz’s picture

Status: Active » Closed (won't fix)

Closing. No activity in 3 years.