Hi,
Thanks for the wonderful module.
I am trying to create customized user profile page using user_profile.tpl.php
I am looking for an acidfree php snippet to show thumbnail of the latest album created by the user that would link to user's album page. As suggested by you earlier I am now using PathAuto module to create -www.abc.com/[user] /album urls and its working great.
I guess we can put an if loop to check if the user ever created an album so that if the user doesn't have any album we display nothing.
To further improve, we can have thumbnails of all the root albums created by the user (can fix the max limit ) and a thumbnail of a recently updated album seprately.
Would appreciate your help.
Comments
Comment #1
vhmauery commentedcheck out the function acidfree_get_block_nodes. You can write something similar that has a sql clause to limit the selected albums to that particular user.
Comment #2
fashion commentedThanks will try that out.
I have noticed that the User Album link is not working. Can you help me create a link in the Menu "My Albums" for the logged in user to go directly to his ablums page.
Comment #3
fashion commentedCan you kindly see www.Fashionora.com for the problem I am facing.
Comment #4
vhmauery commentedfor user/acidfree to work, you must have acidfree per-user albums enabled in admin/settings/acidfree and the user must be in a group that has 'gets a per-user album' granted on the admin/user/access page.
Comment #5
fashion commentedYes ofcource. Its setup as u mentioned.
Users are able to create albums and upload images.
What I am trying to do is, to create a link in sidebar named "My Albums" that should point to the logged in user's albums page.