Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
[LISTATTENDEES] Shortcode gravatar default image | Event Espresso - Staging Server

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, 11 months ago by Daniel Magin.


Dean

  • Support Staff

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

  • Support Staff

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 - Staging Server