Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

How to change the default Avatar


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 13, 2009, 02:19 PM
whatsmytruth
 
7 posts · Apr 2009
I want to use a different default Avatar for those users who post that don't use Gravatar. The default is currently this image



and I want to change it to something else (another image). I have tried changing the

comments-paged.php
legacy.comments.php

files that are pointing to the file no-gravatar.gif to my new file but still no go. Also I have placed the new file in the wp-content/themes/atahualpa332/images folder where the no-gravatar.gif file is and even tried naming the new file to no-gravatar.gif and nothing seems to work. It always seems to use the default image that came with Atahualpa. Users using Gravatars works fine. I am using version 3.3.2. Any help would be appreciated. Thanks

http://www.whatsmytruth.com/hockey
  #2  
Old May 13, 2009, 07:50 PM
Flynn's Avatar
Flynn
 
3,762 posts · Oct 2008
Munich, Germany
If you replaced no-gravatar.gif then it should work. Perhaps a WP Cache 2 / WP Super Cache / Browser Cache issue, or you did not successfully overwrite the existing no-gravatar.gif
  #3  
Old May 14, 2009, 07:13 AM
whatsmytruth
 
7 posts · Apr 2009
here is my code in the comments-paged.php file

$default = urlencode(get_bloginfo('template_directory') . '/images/hockeypuck.jpg');

as you can see I changed it to hockeypuck.jpg

here is my code in the legacy.comments.php file

$default = urlencode(get_bloginfo('template_directory') . '/images/hockeypuck.jpg');

and hockeypuck.jpg is in the images folder where the no-gravatar.gif file is. On my dashboard under settings/discussion it lists 6 gravatars

Default Avatar
For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.

Mystery Man
Blank
Gravatar Logo
Identicon
Wavatar
MonsterID

I have selected Mystery Man on my dashboard under settings/discussion- which still has the old picture there too. Which should use the image file no-gravatar.gif (now changed to hockeypuck.jpg). I have cleared out my browser cache and have refreshed the page several times and my test messages still shows Mystery Man image...getting very frustrated

UPDATE: If I right click on the picture and do a view image on a comment, it brings up a new page with this URL

http://www.gravatar.com/avatar/ad516...bb6523536?s=60

so somewhere in the code it is saying to use the Mystery Man from Gravatar and not the one from the image folder? Am I correct on this assumption?

Last edited by whatsmytruth; May 14, 2009 at 07:30 AM. Reason: Status Update
  #4  
Old May 14, 2009, 10:24 AM
Flynn's Avatar
Flynn
 
3,762 posts · Oct 2008
Munich, Germany
The theme's own gravatar functions is only used in WP versions without built in gravatar support. Edit functions/bfa_recent_comments.php

<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>

to

<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'], 'URL_of_AVATAR_IMAGE' ); ?>
  #5  
Old May 14, 2009, 10:50 AM
whatsmytruth
 
7 posts · Apr 2009
U rock! U are the man. I looked in the bfa_recent_comments.php file for the code you mentioned and couldn't find it. I then kept looking through the other php files in the Functions folder and found bfa_comment_walker.php and it was in there. Made the changes you suggested and works like a charm!
  #6  
Old May 14, 2009, 07:39 PM
Flynn's Avatar
Flynn
 
3,762 posts · Oct 2008
Munich, Germany
You're using an older version then, bfa_walker_comments.php doesn't exist anymore in 3.3.3 I'll make this an option in 3.3.4

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Admin Profile (Avatar)'s picture? blueapple Comments, trackbacks & pings 6 Jun 25, 2010 08:15 AM
Avatar in Post using Avatar Plug-in DMO Atahualpa 3 Wordpress theme 1 Mar 23, 2009 09:43 PM
Avatar load times and XHTML under leave a reply Artists Garden Atahualpa 3 Wordpress theme 2 Jan 18, 2009 08:24 AM
[SOLVED] I am seeing a default font - it won't change bseppa Atahualpa 3 Wordpress theme 11 Dec 18, 2008 11:56 PM


All times are GMT -6. The time now is 08:53 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.