Support

Home Forums Event Espresso Premium [LISTATTENDEES] Shortcode gravatar default image

[LISTATTENDEES] Shortcode gravatar default image

Posted: February 5, 2013 at 3:39 am

Viewing 4 reply threads


Daniel Magin

February 5, 2013 at 3:39 am

Feature Request: with [LISTATTENDEES show_gravatar=”true”] i can show the gravatars in the attendees list. attendees without a gravatar show a standard image, i think this i coming from gravatar interface. i would like to have my own custom image for attendees without a gravatar.

is there any way to do it?

regards daniel

  • This topic was modified 11 years, 9 months ago by Daniel Magin.


Dean

February 5, 2013 at 4:17 am

Hi

It is based on the default WordPress avatar image, so as standard it will check for gravatar and if not it will show the default avatar (Settings > Discussion)

You could follow a guide such as this (http://wpengineer.com/502/add-avatar-to-wordpress-default/ – not tested just an example) to set a new default avatar image.


Daniel Magin

February 5, 2013 at 4:18 am

hi dean,

thank you. you are a hero ๐Ÿ™‚

daniel


Daniel Magin

February 5, 2013 at 1:53 pm

Hi Dean,

fyi i found out the default avatar is loading from the event espresso code:

/plugins/event-espresso/templates/attendee_list.php

Line 110

$gravatar = $show_gravatar == 'true'? get_avatar( $email, $size = '100', $default = 'http://www.gravatar.com/avatar/' ) : '';

so it is easy to change the $default parameter to any other URL to image like:

$gravatar = $show_gravatar == 'true'? get_avatar( $email, $size = '100', $default = 'http://www.MyUrlOrWhatEver/wp-content/uploads/2013/02/defaultavatar.png' ) : '';

so it easy for evrybody to change here the default image ๐Ÿ™‚

regards

daniel


Dean

February 5, 2013 at 11:47 pm

Hi Daniel,

Well I didn’t know that so thanks for letting me know, and yes probably an easier fix for people rather than having to add an additional function.

Viewing 4 reply threads

The support post ‘[LISTATTENDEES] Shortcode gravatar default image’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso