Show Photos Under User Profile

Discussion in 'Drupal' started by oneyearauction, Aug 16, 2010.

  1. #1
    We are working on Drupal based dating website.

    We have already created a complete user profile using the profile module, but I need each user to upload a personal photos in their profiles, so other users can see profiles displaying a user photos (not as a link). I figured the way to combine My Account with User Profile and the photos appear but then some information gets duplicated. I want photos to show up under Profile not under My Account.

    Has anybody done that? Any suggestions?

    Thank You
     
    oneyearauction, Aug 16, 2010 IP
  2. sherifmayika

    sherifmayika Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this drupal.org/project/profile_pictures
     
    sherifmayika, Aug 18, 2010 IP
  3. oneyearauction

    oneyearauction Active Member

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #3
    I've tried this module. It's not really working for me. I'm using drupal 6.19. I have a user profile built as content and photo gallery content type built as node with CCK. To limit only one gallery per user I have "Use this content type as a content profile for users" enabled.

    My question is: how could I put a link to user's photo gallery on user profile?
     
    oneyearauction, Aug 19, 2010 IP
  4. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you using the content profile module? Just trying to get my head around your question.
     
    kiramanic, Aug 19, 2010 IP
  5. oneyearauction

    oneyearauction Active Member

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #5
    Yes, I am using Content Profile module
     
    oneyearauction, Aug 20, 2010 IP
  6. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok disclaimer: I'm very tired so could be on the completely wrong track.

    If you want one or more of the gallery images to show up on the user profile

    Since you have the image gallery set up as a seperate node, the way I would approach this is to first set up a view that displays a user's images however you want them, and then include it in your template wherever you want it to show up using views_embed_view() or just by displaying it in a block on user pages.

    If you just want to add a link to the gallery as part of the info shown in the profile

    Again just edit your template file and add in a link manually using the $account variable to generate the dynamic, user-specific part of the URL. The exact code for that would depend on how you have your URLs set up.

    Which template file?

    When I've used content profile I've usually ended up with two template files generating the final profile page. user-profile.tpl.php is the default template where you have access to print things like user avatar. $profile['content_profile'] will pull in the info from content profile which can be formatted in node-profile.tpl.php where profile is the system name of your content type.
     
    kiramanic, Aug 20, 2010 IP
  7. oneyearauction

    oneyearauction Active Member

    Messages:
    140
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #7
    Thank You for you response,
    The problem is I know where to put that link but don't know how to put it or how to generate it. My photo gallery goes by "photogallery" name as a node, and the URL to user's gallery would be: mysite.com/user/%/photogallery. Any ideas?
     
    oneyearauction, Aug 23, 2010 IP