A website I am migrating over to Disqus has a user base in the hundreds. Many of them have uploaded images within Drupal and their Drupal comments have there images showing up. This is good.

I have just installed the 6.x-1.x-dev version and exported all the comments to Disqus. I had to apply the patch at: http://drupal.org/node/987258 to get anonymous comments to export and also prevent exceptions from Disqus API. So this is now good.

But now I don't have any Drupal user images showing up in the Disqus thread. Does anyone have a solution for this?

Thanks,

David

Comments

frederick.tarantino’s picture

we just came across this problem too. we have drupal users on the site... but when you click on the user in the comments, you don't go to the drupal profile page. it's a disqus popup. darn. seemed so perfect. it also won't let us hook in on the comments for the activity feed (heartbeat)... and the comments don't link to any part of the user profile, and the picture will be different. confusing.

RobLoach’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

waynedrupal’s picture

Also looking for a solution to Drupal's user pic showing on Disqus comments in site with this module.

BeaPower’s picture

Also looking for an implementation. Is this possible now?

ARUN AK’s picture

Version: 6.x-1.x-dev » 6.x-1.9
Priority: Normal » Critical
Status: Closed (fixed) » Needs work

Hi friends,

In my site facing same issue : http://see-king.com, I need to show user picture with comments.

I am also looking for a solution. If anyone get a solution please post it here.

Thank you.

marcingy’s picture

Version: 6.x-1.9 » 7.x-1.x-dev
Priority: Critical » Normal
semei’s picture

Are there any approaches to this problem?

Grayside’s picture

Status: Needs work » Closed (fixed)

The default approach supported by Disqus and this module is to set up your Disqus integration with Disqus SSO. This requires getting in touch with Disqus to turn on SSO for your account, then performing the necessary SSO configurations in this module.

Returning to closed as SSO may be touchy, but it works.

semei’s picture

Sorry, I don't understand what you mean. SSO works for me, but it doesn't display ther user's profile picture/avatar. It displays ther user's username and profile link, but not the user picture. Is this intended behavior?

Grayside’s picture

The default SSO integration this module includes user picture integration. If that's not working, it's a bug.

slashrsm’s picture

@Grayside: Should we remove it then? I've never used disqus with SSO so I don't have any experience with it.

Grayside’s picture

@slashrsm, it's working just fine for me and others, I think this is an edge case not everyone encounters.

semei’s picture

I think the problem was that my website was password protected. It would load comments from the Disqus server but not the user picture from my server. When I remove the password protection, Disqus loads a profile picture, but always the default picture. It never loads the user-specific one. Has anyone dealt with this issue before?

Grayside’s picture

Do you have a non-standard user picture implementation? Special caching?

semei’s picture

I do not have non-standard user picture implementation or any special caching. When I remove the default picture from my settings, Disqus doesn't load any picture at all. I'm using Picture module which creates different sizes for different devices, but it doesn't change the storage location of the original user picture. And I added a line to my template.php so that the user picture doesn't get displayed on the user profile, but this is just theming.

semei’s picture

The problem persists with Picture module disabled and a different theme enabled.

semei’s picture

Category: feature » support
Status: Closed (fixed) » Active
semei’s picture

--- nevermind, this was a caching issue ---

semei’s picture

Category: Support request » Bug report
Issue summary: View changes
semei’s picture

Okay, here are news.

I am using File Entity Module (as many of us probably are) which turns files into fieldable entities. Hence, $account->picture in the "// Load the user's avatar." section in disqus.module will no longer be just the File ID, but rather an object. Therefore, is_numeric($account->picture) will return FALSE and the module will not load the user's profile picture.

The following code will work, but of course it needs to be implemented correctly to check for File Entity Module first;

// Load the user's avatar.
    $user_picture_default = variable_get('user_picture_default', '');
    if (isset($account->picture) && !empty($account->picture) && $file = $account->picture) {
      $data['avatar'] = !empty($file->uri) ? $file->uri : NULL;
    }
    elseif (!empty($user_picture_default)) {
      $data['avatar'] = variable_get('user_picture_default', '');
    }
    if (isset($data['avatar'])) {
      $data['avatar'] = file_create_url($data['avatar']);
    }
david387’s picture

@semei: Thank you for the above code. Could explain in more detail what you mean by "it needs to be implemented correctly to check for File Entity Module first"?

semei’s picture

If you are not running File Entity Module, the original code should work as desired. But if you are running FEM then the original code will fail, as described in my post #21. In that case, the code below "// Load the user's avatar." needs to be replaced with the code I posted.

Sol Roth’s picture

If you are using file entity, and either

1. want to pass a specific image style to the disqus avatar, which allows for better user cropping through image actions (maybe you're default profile avatars aren't sqaure, according to their documentation disqus recommends 128x128

2. don't want to use the modification in #21,

You may want to check out: https://www.drupal.org/sandbox/solomonrothman/2310029 This sandbox module uses the data alter hook in the disqus module to make sure the avatar is set correctly if you're using file entity and also to allow for a separate selected image style.

vgutekunst’s picture

Hi is it possible to link the image and or username to the drupal user profile-page instead of the disqus profil?

regards,

slashrsm’s picture

@lolhonk: AFAIK no.