• Does anybody know how I can put a picture (avatar) next to each person who posts in a multi-user WP blog?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You could use my gravatars plugin, and allow (require?) each author to define a local gravatar for the blog. Then simply adjust your template file to call the gravatar() function where you want the author pictutre.

    Thread Starter kioshi

    (@kioshi)

    Thx Skippy, so I can use your gravatar plugins theoretically anywhere on a WP site , not only in comments, right?

    Yes, absolutely. That’s one of the substantial differences between my gravatars plugin and the official gravatars plugin available at gravatars.com. The official plugin only works in comments, and relies on the global $post object. My plugin takes as a parameter the email address (or URL) of the person for whom you wish to display a gravatar, which means you can use my plugin anywhere on your blog.

    Thread Starter kioshi

    (@kioshi)

    Skippy can’t get it to work inthe template itself, calling the user gravatar next to the title of a post, for example. Could you help me?
    Thanks.

    Show me the code you’re using.

    Thread Starter kioshi

    (@kioshi)

    Hi skkippy, so I successfully put it in the comments template, but coudnt do it in the index.php to appear next to the title, is there any tag?

    Anyway, more importantly (this we can deal later) I installed the plugin flawlessly in my system (love it btw) but in my friends?′ I get the messages:

    Warning: Cannot modify header information – headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 10

    Warning: Cannot modify header information – headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 11

    Warning: Cannot modify header information – headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 12

    Warning: Cannot modify header information – headers already sent by (output started at /home/virtual/site8/fst/var/www/html/WP/wp-content/plugins/gravatars.php:1302) in /home/virtual/site8/fst/var/www/html/WP/wp-admin/admin.php on line 13

    When I activat the plugins and tthey are always on his admin panel when its activated, and they also appear after leaving a comment, though the plugin works fine, I mean, after commenting the error appears and you reload, the comment is there with the av, but his admin panel also gives out these errors all the time above the panel when the plugin is activated. And file permissions are all the same on mine and his. Do you know what it could be?

    Thank you so much.

    Read the WordPress FAQ.

    Also try WP-Medic if you still can’t figure it out. It’ll try to fix it automatically.

    Thread Starter kioshi

    (@kioshi)

    No luck in deleting, no extra chars, there\s not even a 1302 line in gravatars.php, guess I?′ll have to try the medic. thx Viper!

    kioshi: please show me how you’re trying to use gravatars in the post template.

    Which version of WordPress is your friend’s site using? What other plugins are activated?

    I get this same etc etc… gravatars.php:1302 error with gravatars.php and stuff. Gave up using the plugin because I couldn?′t figure it out.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP Blog avatars?’ is closed to new replies.