Members List Plugin
[resolved] Conditional Gravatar display (2 posts)

  1. salatfresser
    Posted 3 years ago #

    Hi, i don't know what to do to accomplish the following:

    At my Club website, signed up members can choose on their profiles whether they want to show specific information or not (like avatar, email address, phones). I have done this with the Cimy User Extra Fields plugin. In the author template, to show or hide these fields i do it with this:

    $privacy = get_cimyFieldValue($curauth->ID, 'PRIVACY_PHOTO');
    <?php  if((get_cimyFieldValue($curauth->ID, 'PRIVACY_PHOTO', yes))) { ?>
    <div id="author_avatar">
    <img src="TEMPLATE-URL/images/gravatar.png" />
    <?php } ?>
    <?php  if((get_cimyFieldValue($curauth->ID, 'PRIVACY_PHOTO', no))) { ?>
    <div id="author_avatar">
    <?php echo get_avatar( $curauth->ID, 140 ); ?>
    <?php } ?>

    Now, with the Members List i want to do the same, hide the information if the user has selected NO in that element, so that it also doesn't show in the members list. I tried to add this condition on the members.php but it doesn't work. I'm thinking it's the curauth->ID that is wrong here. I'm not an expert in PHP. I really hope this can work out... can anyone help me pleeeaseee? Any ideas?



  2. ternstyle
    Plugin Author

    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Members List Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.