How can I tell if a comment is from a registered user? (2 posts)

  1. Thomas McMahon
    Posted 7 years ago #

    I have the ability to for users register for an account or post comments without and account.

    What I want to do for registered users that post a comment is have a profile link next to their name.

    I know how to code that link, what I don't know how to do is tell the difference between registered and non-registered users in the comment loop.


  2. Jeremy Clark
    Posted 7 years ago #

    You can try this code as a start

    <?php if ($comment->user_id) { ?>
    Custom Code here
    <?php } ?>

    This is untested code.

Topic Closed

This topic has been closed to new replies.

About this Topic