User photo as a link (4 posts)

  1. Aleksander
    Posted 8 years ago #

    Is it any chance to use a users photo tumbnail as a link to user profile site?

  2. whistler2020
    Posted 8 years ago #

  3. Aleksander
    Posted 8 years ago #

    http://wordpress.org/extend/plugins/user-photo/ will add the user photo.

    In my case it does as well, but I can't find any way to make authors tumbnail a clickable image.

  4. wkessel
    Posted 8 years ago #

    One of our usability testers at work brought this issue up just after we launched a site using this plugin. Their comment: "...when you ask "who is this person and what makes their opinion matter?" -- there's no answer."

    I modified this code to generate the appropriate links, but it currently requires a manual edit of an extra PHP file containing an array (I'm using it with a jQuery plugin as well). If you're experienced with PHP, the output line can be changed to look *something* like this:

    $output = '<a href="/authors/#'.$authordata->nickname.'">'.$output.'</a>';

    If you drop it in an if clause that tests for a particular condition, then you can eliminate the possibility of a recursive link showing up with that photo on that author's bio page.

    I also found a bug: if you install this plugin, then import a bunch of posts from another site, then DELETE those posts (i.e., change your mind), the userphoto_the_author_thumbnail fails to call the thumbnails on new posts.

Topic Closed

This topic has been closed to new replies.

About this Topic