bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Show (gr)avatar on frontpage

(7 posts)
  • Started 4 months ago by swaymedia
  • Latest reply from Thion
  • This topic is resolved
  1. Anonymous
    Unregistered

    Hello,

    does anyone know how to show the gravatars of the Latest and Original poster on the front page, if so what/where would be the parameters for there dimensions of the image.

    I just need to show a 50x50 gravatar of the latest poster on the front page next to the username of the latest poster in the "Latest Poster" column of each topic.

    AND

    A 50x50 gravatar of the original poster and the username of the original poster right next to the link of the topic, on each row.

    Note: http://emptees.com/talk - has a similar thing to what i need, they have the author post avatar on there front page.

    Thanks for any help

    Posted 4 months ago #
  2. Anonymous
    Unregistered

    sorry to *bump* but does any one know how to do this and if it is possible?

    Posted 4 months ago #
  3. Anonymous
    Unregistered

    sorry again, but can anyone just tell me if its possible at all, so's if it isnt i can just tick it off.

    thanks

    Posted 4 months ago #
  4. I would say yes it's possible. If you have the id of the latest poster, you should be able to get their gravatar. Same with the original poster. I have no idea how to do it, but it sounds possible.

    Posted 4 months ago #
  5. Of course you can do it, bbPress can do almost anything - as long as you code it ;-)

    Showing the gravatar is the easy part, the code to fetch the latest poster and their email address is the tricky part. How's your mysql?

    Showing a gravatar for any email address is as simple as:

    <img src="<?php echo "http://www.gravatar.com/avatar.php?gravatar_id=".md5($user->user_email); ?>" >

    The mysql code for the email of the last poster is going to need a left join of the users table against the post table and more than I am willing to do right now. I suppose I could be lazy and use get_latest_posts(1, 1) to fetch the entire info the last post and grab the email address from there.

    Posted 4 months ago #
  6. Anonymous
    Unregistered

    I have done it look :-

    http://www.picbi.com/

    Ok guys, im loving this bbPress more and more. I hacked the bbPress_Latest_Discussion plugin to get them showing up WITH THE GRAVATARS on my wordpress frontpage.

    If anyone needs this email me, ill tell you how i did it, its a bit too long to post it here.

    Posted 4 months ago #
  7. Long or short, still you should write about it here so:
    1. People won't spam your mailbox;
    2. People won't post another topics like this thing will be here ;).

    I could use something like this for my new project.

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.