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.

Member Photo tag does not work

September 20, 2011 10:00pm

Subscribe [4]
  • #1 / Sep 20, 2011 10:00pm

    farrukhny

    42 posts

    hi
    i am try to display members photo on comment but it not work this is my code

    {if photo}
    {photo_url}
    {if:else}
    <a href="http://www.domain.com/themes/profile_themes/users_profile/images/icon_profile.gif">http://www.domain.com/themes/profile_themes/users_profile/images/icon_profile.gif</a>
    {/if}

    and user have photo but on list of comment dose not show it any help

  • #2 / Sep 21, 2011 11:27am

    Mark Bowen

    12637 posts

    Hi farrukhny,

    Do you have that code within the required Custom Profile Data Tag?

    It needs to be inside that for it to work. Could that be the issue here perhaps?

    Thanks,

    Mark

  • #3 / Sep 21, 2011 11:42am

    farrukhny

    42 posts

    dose not work for me

    {exp:member:custom_profile_data}
    {if photo}
    {photo_url}
    {if:else}
    <a href="http://www.domain.com/themes/profile_themes/users_profile/images/icon_profile.gif">http://www.domain.com/themes/profile_themes/users_profile/images/icon_profile.gif</a>
    {/if}
    {/exp:member:custom_profile_data}
  • #4 / Sep 22, 2011 3:49am

    John Henry Donovan

    12339 posts

    farrukhny,

    You do not need the {exp:member:custom_profile_data} tags as it is inside the comment entries tag.

    Your code however does work for me on EE2.2.2

    What version and build of EE are you using?

    Can you confirm that your comment entry tags are not nested in any other tags

    Also make sure photos are enabled in your member preferences

  • #5 / Sep 22, 2011 10:07am

    farrukhny

    42 posts

    i am using v2.2.2 - Build: date 20110801 and i just find out that when user login it dose not show photos on comments when user log out it show user’s comments with photo of user i am using condition

    {if logged_in_member_id ==author_id}
    then author just see comments and when user login but he is not a author of Entry he can not see posted comment he can see just form of post comment where he can post his comment and if user not login it shows just note

    please login to post your comments

  • #6 / Sep 22, 2011 6:44pm

    Kevin Smith

    4784 posts

    Hi farrukhny,

    I’m having a bit of trouble following you here. Could you please explain the goal you’re looking to achieve, what you tried, what you expected to happen, and what happened instead?

  • #7 / Sep 22, 2011 7:02pm

    farrukhny

    42 posts

    I am try to create simple comments form but when author of Entry is logging in he can not post a comments the Comment FORM will be hide and other login users can not to see comments posted on the entry so all comment will be hide for none author and they just can post the comment ok so this is my code i hope you can understand what i mean when look at my code

    
    
    


    but photo tag dose not work it is not show user’s photo

  • #8 / Sep 23, 2011 12:25pm

    Mark Bowen

    12637 posts

    Hi farrukhny,

    If using the Custom Profile Data Tag in its most basic format doesn’t bring back any results for you then could you check to see that as John mentioned above that you do have Photo support turned on in your Member Preferences please.

    It might be that you have Avatars turned on (I believe they may be as default) but not photos.

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases