WordPress.org

Ready to get started?Download WordPress

Forums

Problem with listing users in sidebar. (9 posts)

  1. jorgent
    Member
    Posted 8 years ago #

    Hi.

    I'm using the Author Image(s) plugin to list the authors on my blog in the sidebar. (http://www.coffee2code.com/archives/2005/03/28/plugin-author-images/)

    These are my current options in the plugin:
    --------------------------------------------------------
    $show_name_AND_image = false; // Set this to 'true' to show author's name immeidately after author image; set to 'false' to only show the author image
    $show_name_if_no_image = true; // Set this to 'true' to show author name if no author image is found; set to 'false' to refrain from showing anything if no author image is found
    $link_type = 'posts'; // can be 'posts', 'site', or 'none'
    // 'posts' links author image/name to a page of all of author's posts on this blog
    // 'site' links author image/name to the author's home site, if specified in author's profile
    // 'none' does not hyperlink the author's name
    --------------------------------------------------------

    I will now start with guest writers on my blog. Guest writers will not have images to their nicks, so I don't want them to be listed in the sidebar. I tried this: $show_name_if_no_image = false;

    And here's the problem: The guest writer (which has a nick starting with the letter T) is removed from the sidebar, but one of the authors (which has a nick starting with the letter Y) is also removed. So if a guest writer has a nick starting with A, all the authors will be removed from the list.. Is this a bug in the plugin, or am I doing something wrong?

    Maybe it's possible to exclude users with a level below 3 from the author listing? That would solve my problem, but I'm a newbie, so I don't know what to do. Can anyone help me?

    Thanks in advance!

  2. eragle
    Member
    Posted 8 years ago #

    Hmmm...have you checked to see if Scott is supporting that plugin? I'd try there first.

  3. jorgent
    Member
    Posted 8 years ago #

    I looked through that thread, but I could only see his name once.. Maybe he is supporting over e-mail though, but I have a feeling that many users of this forum have experience with this plugin, and hopefully can help.

  4. jorgent
    Member
    Posted 8 years ago #

    Sorry for repeating myself, but maybe it's possible to exclude users with a level below 3 from the author listing? That would solve my problem, but I'm a newbie, so I don't know what to do.

    Thanks.

  5. jorgent: Try this: On line 215 of the plugin replace the line:

    else return;

    with

    else continue;

    (There is only one else return; line in the file.)

    See if that works for you and let me know. I'll keep your user level exclusion idea in mind for the next version of the plugin (which if you confirm the above fix may be somewhat soonish).

  6. jorgent
    Member
    Posted 8 years ago #

    Thanks for helping coffee2code!

    Your suggestion did the trick! Thank you very much.

  7. jorgent
    Member
    Posted 8 years ago #

    Sorry, but I can't use this method.. I get big spaces between the images in IE, cause the user is not removed from the list, just invisible. It seems like FF is ignoring the invisible users, so the "air" between the images is normal.

    It would look silly if I got 5 invisible users between some of the authors with images in IE. Big open spaces..

  8. Ok, do these also:

    1. Remove this line:
    echo "<li>";

    2. Change this line (near the very end of file):

    echo "$link</li>n";

    to this:

    echo "<li>$link</li>n";

  9. jorgent
    Member
    Posted 8 years ago #

    Looks like it's working great now!

    Thank you again :)

Topic Closed

This topic has been closed to new replies.

About this Topic