WordPress.org

Ready to get started?Download WordPress

Forums

Author Avatars List - User profile (8 posts)

  1. Vasanthan
    Member
    Posted 4 years ago #

    Hi,

    Is there a way to show a bigger profile image on the author profile page. For me it shows the thumbnail (the size we set under the author avatar plugin admin) of the author.

    I am using User photo plugin to upload the author photo and have set 2 different sizes one for the bigger image and the other for the thumbnail, I want the author page to show this bigger image size that I have fixed.

    Any help would be appreciated.

  2. Ben
    Member
    Posted 4 years ago #

    Hi Vasanthan,
    Sorry, but this doesn't seem to have anything to do with the author avatars list plugin - the "author page" is a standard wordpress feature, and displaying a picture of the author on that page is handled by the "User Photo" plugin...

    From looking at the documentation of said plugin I would say that using the userphoto() template tag should your avatar in the big size, while the userphoto_thumbnail() tag displays the thumbnail.
    If you're using the "Override Avatar with User Photo" feature and the get_avatar() template tag at the moment you might have to replace that template tag by the userphoto() one...

    Ben

  3. Vasanthan
    Member
    Posted 4 years ago #

    Hi Ben,

    Thank you for that reply and am sorry that I didn't know it wasn't with author avatar. :(

    If you're using the "Override Avatar with User Photo" feature and the get_avatar() template tag at the moment you might have to replace that template tag by the userphoto() one...

    Can you please let me know exactly where can I find them and also where to replace them? (Consider me a non-programmer or non-coder.)

    Kind Regards.

  4. Vasanthan
    Member
    Posted 4 years ago #

    Well, in the file actions.php I tried to change get_avatar() to userphoto(), now it doesn't even display the thumbnail, so I tried with user-photo() and it shows...

    Fatal error: Call to undefined function photo()

    Yeah I have checked "Override Avatar with User Photo" option.

    Please guide me on this.

  5. Vasanthan
    Member
    Posted 4 years ago #

    I changed my existing code
    <?php echo get_avatar(get_the_author_meta('user_email', $id), '96'); ?>
    to
    <?php echo userphoto(get_the_author_meta('user_email', $id), '96') ?>

    and even the thumbnail don't appear now on the author's page :(

  6. Ben
    Member
    Posted 4 years ago #

    You should not change any plugin files - the lines I was talking about above would be in your theme, most likely in a file called author.php.

  7. Vasanthan
    Member
    Posted 4 years ago #

    Am using Suffusion as my theme and there 2 php files, author and authors. The template tag get_avatar is in authors.php and I tried changing it but in vain :(

    The description of each php says

    authors.php
    * Displays all the authors of this blog.
    * A brief bio is shown for each author.

    author.php
    * Displays a bio and the posts for a given author. The posts can be shown either as excerpts or full contents

    So I think that get_avatar should have been in this php whereas it is now in authors.php

    I am putting up the entire code from author.php please let me know what should I add and where?

    Thank you Ben its really kind of you to help me in this.

    get_header();
    ?>
    <div id="main-col">
    <?php suffusion_before_begin_content(); ?>
    <div id="content">
    <?php suffusion_after_begin_content(); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post fix" id="post-<?php the_ID(); ?>">
    <?php suffusion_after_begin_post(); ?>
    <div class="entry fix">
    <?php suffusion_content(); ?>
    </div><!--entry -->
    <?php suffusion_before_end_post(); ?>
    </div><!--post -->

    <?php endwhile; ?>
    <?php suffusion_before_end_content(); ?>

    <?php else : ?>
    <div class="post fix">
    <h2><?php _e("Not Found", "suf_theme"); ?></h2>
    <hr/>
    <p><?php _e("Sorry, but you are looking for something that isn't here", "suf_theme"); ?></p>
    </div><!--post -->

    <?php endif; ?>
    </div><!-- content -->
    </div><!-- main col -->
    <?php get_footer(); ?>

  8. Damien
    Member
    Posted 4 years ago #

    I solved a similar problem of having two different avatar sizes show by simply changing the size in the plugin file for user photo. Now it's consistent sizing on the avatars list and author/single.php pages.

    "Thumbnail" and the "full size" are the same now basically.

    #define('USERPHOTO_DEFAULT_THUMB_DIMENSION', 100);

Topic Closed

This topic has been closed to new replies.

About this Topic