Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Gravatar not working correctly

Hello everyone,

I just launched my first vanilla forum and ran into one "major" problem. Gravatar is not working correctly.

When you look at my profile, you see that Gravatar is working: http://forums.cyanjoe.org/profile/6/lumio
But when you look at my discussion, it is not: http://forums.cyanjoe.org/discussion/2/welcome

Has anyone a clue what is wrong or anyone an idea how to debug that?

Thank you!

Tagged:

Comments

  • Options

    first off it doesn't look like a gravatar in either place. is it really a gravatar or just an avatar. also what plugins are you using, and you didn't mention your version of vanilla as requested when you post a question

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    Do you have any other plugin like gravatar enabled ? it looks as though it is picking a default image from your theme...

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    If your wordpress.com gravatar image email is not the same with the one in your forum this can happen.

    http://en.gravatar.com/support/wordpress-accounts/

    http://en.gravatar.com/support/gravatar-locations/

    I agree with peregrine about the avatar not being a gravatar image. If you look at the url it is taking it from the theme.

  • Options

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    Yea if (C('Plugins.Gravatar.UseVanillicon', TRUE)) so he may have vanillicon also enabled and it overrides Gravatar?

  • Options
    edited June 2014

    Vanillicon shouldn't override Gravatar. On my forums, I have both enabled and it shows my Gravatar still shows, but I am not sure if Vanillicon still works. I have to test that

  • Options
    peregrineperegrine MVP
    edited June 2014

    @vrijvlinder said:
    Yea if (C('Plugins.Gravatar.UseVanillicon', TRUE)) so he may have vanillicon also enabled and it overrides Gravatar

    absolutely correct @vrijvlinder. it is obvious from the code as you say and as you obviously can. it will get overridden if you have the config you mentioned set to true.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    Hello guys,

    thank you so much, for helping!

    I'm using Vanilla 2.1

    The following plugins are enabled:

    // EnabledPlugins
    $Configuration['EnabledPlugins']['GettingStarted'] = 'GettingStarted';
    $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
    $Configuration['EnabledPlugins']['Tagging'] = TRUE;
    $Configuration['EnabledPlugins']['Flagging'] = TRUE;
    $Configuration['EnabledPlugins']['OpenID'] = TRUE;
    $Configuration['EnabledPlugins']['Gravatar'] = TRUE;
    

    Yes, my theme provides a default avatar. I tried to disable it but I have the feeling, that it is somewhere cached? If I disable it, it stays as it is.

  • Options
    peregrineperegrine MVP
    edited June 2014

    Yes, my theme provides a default avatar.

    try

    $Configuration['Plugins']['Gravatar']['UseVanillicon'] = FALSE;

    The first step to troubleshooting is determining - if things work correctly with BitterSweet Theme.

    report back.

    if doesn't correct problem, it may be a bug in gravatar in vanilla 2.1 (possible, but unlikely since no one else reported it here (you could verify).

    http://vanillaforums.org/discussion/26703/plugins-themes-that-work-and-don-t-work-in-vanilla-2-1#latest

    I don't think it is caching problem. they probably didn't take into account gravatars.

    not sure where the cyan joe theme is or came from - is it in the add-ons if so provide a link.

    if you don't have gravatars- disable the gravatar plugin. it looks like you don't use gravatars, unless you signed up for one.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    @peregrine said:
    The first step to troubleshooting is determining - if things work correctly with BitterSweet Theme.

    That was such a great help, thanks! ... okay, now I know that it is my theme.
    I created the theme by myself - and as you might have guessed I'm still a newbe here.

    Now the thing with my theme is the following:

    if (!function_exists('UserPhotoDefaultUrl')) {
      function UserPhotoDefaultUrl() {
        return Url('/themes/' . Theme() . '/design/images/default-picture.png', TRUE);
      }
    }
    

    I tried again by commenting it out and it works now (I guess I commented the wrong part out in the first place). But the funny thing is: locally it is working as it should. Maybe there is a different order when what module is executed.

    How can I use Gravatar and have a custom UserPhotoDefaultUrl()?

    Thank you so much peregrine!

  • Options
    peregrineperegrine MVP
    edited June 2014

    leave that function out of your theme and let gravatar handle it.

    enable gravatar and add this to your conf/config.php

    $Configuration['Plugins']['Gravatar'[['DefaultAvatar'] = "point it to your location of default gravatar";

    or rename your default-picture.png and put it in this folder.

    plugins/Gravatar/default.png

    report back what you did if you solve it.


    @lumio said....
    I'm still a newbe here.

    for future reference:

    http://vanillaforums.org/discussion/comment/199091/#Comment_199091

    and then add to this as you try new plugins.

    http://vanillaforums.org/discussion/26703/plugins-themes-that-work-and-don-t-work-in-vanilla-2-1

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.