WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Author avatars] Please add feedback here (89 posts)

  1. Bodhipaksa
    Member
    Posted 5 years ago #

    Oh, just realized that h2 is set by functions.php!

  2. Bodhipaksa
    Member
    Posted 5 years ago #

    I hate to sound demanding, but one thing that I find less than ideal is having the role and capabilities showing in the title. Ordinary visitors to my blog don't really need to be told whether someone is an author, editor, or administrator.

    Another funny aspect of that is that because I use runPHP the titles for admins look like this: "Bodhipaksa (administrator, can_runPHP)".

    Ideally I'd like to be able to exclude the roles from the titles to avoid visual clutter.

    BTW, is there somewhere can make a donation for this plugin? I'm just overjoyed that you've put this together.

  3. Ben
    Member
    Posted 5 years ago #

    Good point about the user role... Our plan is to add a userinfo popup field at some point which then can be configured to display details on the user; I agree that the average user probably does not need to see the role either way.

    When I get around to implementing that feature the title is definately going away; if you don't want to wait you can already replace your local copy of the lib/UserList.class.php with this development version to remove the role from the title...

  4. Bodhipaksa
    Member
    Posted 5 years ago #

    Thanks. That's just so much neater.

    Again, I'd love to make a donation to support your work. If there's a place I can do that or an email address I can use for PayPal, please let me know.

  5. mikolatz
    Member
    Posted 5 years ago #

    Hi guys,

    I'd like to ask if is there a way to add in the 'sorting order' (in the widget) to display authors by number of posts? or only show authors that have user photos or avatars (I have the User Photo plugin and it works well with author avatars).

    I have this problem wherein most authors doesn't have a user photo, thus showing the default avatar from gravatar :(

  6. Ben
    Member
    Posted 5 years ago #

    Haecceity: Here's a PayPal Donation link. I'm real happy that our plugin is useful to other people :-)

    Mikolatz: Thanks for confirming that the User Photo plugin works with our plugin. Sorting by the author's number of posts is a great idea... I'll see if I can get it into the next release.

  7. Bodhipaksa
    Member
    Posted 5 years ago #

    Thanks! I'm very happy to support your work. This plugin is the only way I can think of to help me get round the problem of having a very long list of authors in my sidebar.

  8. Ben
    Member
    Posted 5 years ago #

    Thank you very much, Haecceity! Please let me know if there's something that you'd like to see in the next version.. ;-)

  9. Joe Lange
    Member
    Posted 5 years ago #

    Hi guys-

    I have somehow lost my avatars in my blog posts - they used to be added in top left corner automatically, and now they are gone.

    http://www.langetwins.com/blog

    Did a recent update affect this?

    It'd be great if it automatically inserted the author avatar, rather than using the button or shortcode for each post. Is this possible?

    Thanks for your help!

    Cheers,

    Joe.

  10. Ben
    Member
    Posted 5 years ago #

    Automatically adding the user's avatar to posts is not something that's provided by our plugin at the moment, therefore I am not sure if it has anything to do with one of our recent updates. ;-)

    Have you upgraded any other plugins recently or changed your theme?

    To add the the avatar of a post author the post I would probably add something like the following to my theme. (Insert where you want the avatar to appear (inside the post loop!) and then style span.avatar in style.css to float and add padding etc.).

    <span class="avatar">
      <?php echo get_avatar(get_the_author_email()); ?>
    </span>

    I think there are also some plugins that do provide that feature (post avatar maybe?).

  11. elizabethannedesigns
    Member
    Posted 5 years ago #

    love this plugin, thank you. one little quirk/suggestion - it seems that the sorting by userID isn't quite perfect. user ID 12 is before userID 3, so I think that single digits aren't sorting before double digits if that makes sense? super minor but i thought i'd mention it.

    thanks so much for this perfect plugin!

  12. Paul Bearne
    Member
    Posted 5 years ago #

    Thanks for the spot.

    We sort it out in the next version.

    Paul

  13. fsgraffiti
    Member
    Posted 5 years ago #

    Hi developers, i would like to ask if you have raw codes of author avatar list that i can put on my sidebar.php instead of adding it by means of widgets.

    Hope to hear from you soon!

    Thank you very much.

  14. Paul Bearne
    Member
    Posted 5 years ago #

    We are off work for couple of days we will post some code examples when are back in the office.

    Paul

  15. Ben
    Member
    Posted 5 years ago #

    elizabethannedesigns: thanks for spotting, just fixed it in the dev version.

    fsgraffiti: yes it is possible but I haven't written up a tutorial of any kind for that so you're going to have to figure parts of it out yourself... Start by trying to add the following code to your sidebar.php:

    <li>
    			<h3>Random Author</h3>
    			<?php
    			require_once(ABSPATH . PLUGINDIR . '/author-avatars/lib/UserList.class.php' );
    			$userlist = new UserList();
    			$userlist->hiddenusers = array('admin');
    			$userlist->roles = array('Administrator', 'Editor', 'Author');
    			$userlist->link_to_authorpage = true;
    			$userlist->show_name = true;
    			$userlist->avatar_size = 50;
    			$userlist->limit = 1;
    			$userlist->order = 'random';
    			$userlist->output();
    			?>
    		</li>

    The <li> and <h3> tags might be different depending on your theme... $userlist->output() prints the list of avatars.

    The parameters are only documented in-code at the moment (see UserList class fields, l. 17-83) but the naming should be pretty much the same as for the authoravatars shortcode...

    Hope this helps.

  16. Eric
    Member
    Posted 5 years ago #

    guys, great work, nice plugin!
    i just tried it on my "wordpress mu" site but when i activate the "link to the author" the pictures do not link to the author´s subdomain.wpmusite.com (the author´s blog) but to wpmusite.com/authors/username which is wrong because the users are not authors of the main site - do you see any chance to hack this?

  17. Ben
    Member
    Posted 5 years ago #

    eric01: on our system that's actually just fine because our theme has author pages for all registered users listing their posts and all blogs which they are members of... If I understand correctly you'd like to have links to the user's own blogs, right?

    That should be doable and I think this would be a new feature: "link to user's (primary) blog". (... next version ;-))

  18. niska
    Member
    Posted 5 years ago #

    Warning: This plugin breaks the functionality in Use google libraries.

    More info here

  19. Ben
    Member
    Posted 5 years ago #

    Niska, thanks for bringing this to our attention. I am not sure it is actually the "fault" of the author avatars list plugin; see my response here.

    As I said in the comment: I am not sure what’s happening here exactly but I’m open for suggestions and willing to change the Author Avatars List plugin if necessary... :-)

  20. Bodhipaksa
    Member
    Posted 5 years ago #

    I just used the automatic upgrade feature to update the plugin and got the following error message:

    Parse error: syntax error, unexpected '&amp;', expecting T_VARIABLE or '$' in /htdocs/www/wp-content/plugins/author-avatars/lib/AuthorAvatars.class.php on line 267

  21. Ben
    Member
    Posted 5 years ago #

    Hm, that's a PHP4 issue again...

    Can you override your copy of the file /lib/AuthorAvatars.class.php with this version and see if that fixes it?

  22. Bodhipaksa
    Member
    Posted 5 years ago #

    Must sort out that PHP4 to PHP5 transition! I'll give that a try and let you know how it works out. Thanks.

  23. Bodhipaksa
    Member
    Posted 5 years ago #

    I'm afraid it still triggers a fatal error. I reinstalled the older version, so the plugin's still working on the site.

  24. Ben
    Member
    Posted 5 years ago #

    If you pass me the new error message I can try to sort that one out as well... if it was the exact same error message (same message and line number) then something probably went wrong on your end when copying the file above to your server... ;-)

  25. Bodhipaksa
    Member
    Posted 5 years ago #

    When I uploaded the modified AuthorAvatar.class.php file and tried to go to my home page I saw a weird page with the WordPress plugins logo at the top, and lower down the code for the AuthorAvatar.class.php file. At the foot of the page was the following error message:

    Fatal error: Cannot instantiate non-existent class: authoravatars in /htdocs/www/wp-content/plugins/author-avatars/author-avatars.php on line 16

    Restoring the older version of the file allowed the site to work again.

  26. Bodhipaksa
    Member
    Posted 5 years ago #

    Ah, the site's kind of working but in the sidebar where the avatars should appear I'm now seeing

    Parse error: syntax error, unexpected '&amp;', expecting T_VARIABLE or '$' in /htdocs/www/wp-content/plugins/author-avatars/lib/UserList.class.php on line 295

  27. Ben
    Member
    Posted 5 years ago #

    Here's a new version of lib/UserList.class.php... Any chance you could test that for me in the next few hours?

    I am going to release a bugfix version soon and I'd like all php4 issues to be fixed by then :)

  28. charleslaw
    Member
    Posted 5 years ago #

    I'm getting this issue when trying to install it

    Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in /homepages/44/d182233238/htdocs/lp/blog/wp-content/plugins/author-avatars/lib/AuthorAvatars.class.php on line 267

  29. charleslaw
    Member
    Posted 5 years ago #

    after installing the other files you posted i now get this error screen...

    http://www.sfu.ca/~claw/Picture%201.png

    hope this helps

  30. Ben
    Member
    Posted 5 years ago #

    @charleslaw: thanks for the screenshot. Could you have another look and see if you can find an error message in that "Plugin could not be activated" box some where? (an error message similiar to the ones above).

    Without a specific line of code to look at I can't really do much I'm afraid...

Topic Closed

This topic has been closed to new replies.

About this Topic