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.

Avatar not saved using jsConnect

Hi,

I'm using jsConnect in my WHMCS cms.
Using this code:
http://forum.whmcs.com/showthread.php?48059-Vanilla-Forums-WHCMS-Single-Sign-On

I not allow registrations in my forum.

When a user is loged in the forum, and set a avatar seems run ok but if he logout and relogin, the avatar not exist more.

Some idea about how to solve?

Thanks.

Tagged:

Comments

  • In the plugin's folder modify the class.jsconnect.plugin.php file:

    Comment out rows 219 and 329-331.

  • businessdadbusinessdad Stealth contributor MVP

    @HalfCat said:
    In the plugin's folder modify the class.jsconnect.plugin.php file:

    Comment out rows 219 and 329-331.

    I would suggest to show the code to comment out, as line numbers can change between different plugin versions. For example, in my case, line 219 is blank. :)

  • Uh, thanks for the remark. These are the lines:

    $Form->SetFormValue('Photo', GetValue('photourl', $JsData, ''));
    

    and

    if (!$User['PhotoUrl'] && function_exists('UserPhotoDefaultUrl')) {
        $User['PhotoUrl'] = Url(UserPhotoDefaultUrl(Gdn::Session()->User), TRUE);
    } 
    
Sign In or Register to comment.