Info
- 3 posts
- 2 voices
- Started 1 year ago by pastorbobsforum
- Latest reply from pastorbobsforum
- This topic is resolved
Bavatars 0.4.1 plugin - avatar in post
-
- Posted 1 year ago #
Hello.
I am using Bavatars 0.4.1 plugin in bbpress 1.0.2.
Now, I am trying to get my avatar (or every user's avatar for that matter) shown next to every post that I (or they) make.
I have tried using something of the
<?php avatarupload_display(get_post_author_id()); ?>kind in my template's post.php page, specifically in<div class="threadauthor">section, but I don't know the exact function that I am supposed to call there. I got the idea from another plugin (Avatar Upload), where it seemed to be working fine.This is the function in Avatar Upload plugin
<?php echo avatarupload_display($user->ID, $force_db); if ($config->use_thumbnail == 1) { echo " " . avatarupload_displaythumb($user->ID, $force_db) . "</p>";}?>defined in avatar.php (from Avatar Upload plugin).Now, if I was to define the exact function in bavatars.php and call it in post.php, I guess it would work, but I cannot find my way round the Bavatars plugin.
Any ideas?
Thank you.
Regards,
Bob -
- Posted 1 year ago #
What you want is
<?php post_author_avatar_link(); ?>or<?php post_author_avatar(); ?>, depending on whether you want it to be a link to the user's website or not. -
- Posted 1 year ago #
Hello.
Exactly what I wanted:
<?php post_author_avatar(); ?>I had some problems with my permissions for the avatar folder in the root forum. It's set to 755 now.
Thank you.
Regards,
Bob -
You must log in to post.