ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Setting a default member photo

May 16, 2011 5:01pm

Subscribe [4]
  • #1 / May 16, 2011 5:01pm

    I am trying to create a “you are logged in as” box at the top of all pages of my members only site with basic profile info. I’ve figured out how to display the photos for those that have uploaded one.

    Is it possible to display a default graphic for those that haven’t uploaded?

    Also underneath, I’d like to display a link that takes them to the upload member photo page.

    Any help on these issues would be appreciated. I’ve searched a bit but haven’t found the exact answer.

  • #2 / May 16, 2011 7:42pm

    Sean C. Smith

    3818 posts

    {if photo}{photo_url}{if:else}http://domain.com/default-photo.jpg{/if}
    
    <a href="/index.php/member-template-trigger/">your profile</a>

    the above will get your default photo set up.

  • #3 / May 17, 2011 3:07am

    John Henry Donovan

    12339 posts

    Thanks Sean. Does that hep you bossanova?

  • #4 / May 17, 2011 10:07am

    Yes it does. Thanks so much Sean!

  • #5 / May 17, 2011 11:50am

    Sue Crocker

    26054 posts

    Malcom, Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases