Vladimir’s WordPress Forum


 
guestdefault Vladimirs WordPress Forum
Current User: Guest user permissions Vladimirs WordPress Forum
Search Forums:


searchicon Vladimirs WordPress Forum 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

addtopic Vladimirs WordPress Forum Add a New Topic addpost Vladimirs WordPress Forum Reply to Post
UserPost

12:36
15 January, 2009


Hardeep Singh

 Vladimirs WordPress Forum
Guest

Hi

I am using the Amazing Grace theme, thanks for building such a nice theme.

I have found a small bug with the theme though. Even if I setup my blog to use Gravatar's option monsterID (through the WordPress settings), the theme keeps showing the "mystery man" if the person hasnt specifically setup an avatar. Most people do not setup an avatar, and I do not like the mystery man – it does not differentiate between people.

The problem is caused because when you call the get_avatar function from the show_avatar function, you pass 3 parameters, the third one being $default which is populated with a default of your choice. If you pass only 2 paramters, wordpress will automatically pickup default from what is selected in wordpress settings. In fact I do not understand why show_avatar function is required at all – the theme comments.php can directly call get_avatar function the way default theme does by sending two parameters.

I have fixed the problem by removing the third parameter. Please share your thoughts.

Regards
Hardeep
http://blog.Hardeep.name

addpost Vladimirs WordPress Forum Reply to Post

Reply to Topic:
Avatar bug

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

htmlEditor Vladimirs WordPress Forum
Smileys
sf confused Vladimirs WordPress Forum sf cool Vladimirs WordPress Forum sf cry Vladimirs WordPress Forum sf embarassed Vladimirs WordPress Forum sf frown Vladimirs WordPress Forum sf kiss Vladimirs WordPress Forum sf laugh Vladimirs WordPress Forum sf smile Vladimirs WordPress Forum sf surprised Vladimirs WordPress Forum sf wink Vladimirs WordPress Forum sf yell Vladimirs WordPress Forum
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 2