• Shouldn’t it be just as easy as putting the function into the comment loop like this:

    <?php foreach ($comments as $comment) : ?>
    <div class=”commentcontainer”>
    <h3 id=”comment-<?php comment_ID() ?>”>
    <?userphoto_comment_author_photo()?>

    Nothing shows up. I must be missing something very obvious, but I can’t seem to figure it out. Any assistance is appreciated. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter goto11

    (@goto11)

    I tested to see if the function exists within the loop and it does not.

    <?php foreach ($comments as $comment) : ?>
    <div class=”commentcontainer”>
    <h3 id=”comment-<?php comment_ID() ?>”>
    <?
    if (function_exists(‘userphoto_comment_author_thumbnail()’))
    {
    userphoto_comment_author_thumbnail();
    }
    else
    {
    echo “FUNCTION DOES NOT EXIST”;
    }
    ?>

    Does this help diagnose the problem?

    Thread Starter goto11

    (@goto11)

    Ok, I had a syntax error in the function_exists function. I fixed it and the function does exist. It just doesn’t show the picture. HELP!

    Thread Starter goto11

    (@goto11)

    It appears that the plugin works, but only for users who register after the plugin is installed.

    I had been testing it with “admin” and another test user I established right after installing WordPress and I never got the userphoto to show. But when I created a new user and tried using it, no problem.

    This is fine for me because I am new to WordPress and can use the plugin from the beginning. But for people who install the plugin into established blogs, that seems terribly inconvenient.

    I’d like to use this plugin, but unfortunetly i’d like to use it on a pre-exisiting site, does anybody know a work around to get it work with users who’ve registered in the past?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: User Photo] Getting photo into comment’ is closed to new replies.