Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
frederick.tarantino CreditAttribution: frederick.tarantino commentedwe 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.
Comment #2
RobLoach#423684: Disqus SSO
Comment #4
waynedrupal CreditAttribution: waynedrupal commentedAlso looking for a solution to Drupal's user pic showing on Disqus comments in site with this module.
Comment #5
BeaPower CreditAttribution: BeaPower commentedAlso looking for an implementation. Is this possible now?
Comment #6
ARUN AK CreditAttribution: ARUN AK commentedHi 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.
Comment #7
marcingy CreditAttribution: marcingy commentedComment #8
semei CreditAttribution: semei commentedAre there any approaches to this problem?
Comment #9
Grayside CreditAttribution: Grayside commentedThe 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.
Comment #10
semei CreditAttribution: semei commentedSorry, 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?
Comment #11
Grayside CreditAttribution: Grayside commentedThe default SSO integration this module includes user picture integration. If that's not working, it's a bug.
Comment #12
slashrsm CreditAttribution: slashrsm commented@Grayside: Should we remove it then? I've never used disqus with SSO so I don't have any experience with it.
Comment #13
Grayside CreditAttribution: Grayside commented@slashrsm, it's working just fine for me and others, I think this is an edge case not everyone encounters.
Comment #14
semei CreditAttribution: semei commentedI 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?
Comment #15
Grayside CreditAttribution: Grayside commentedDo you have a non-standard user picture implementation? Special caching?
Comment #16
semei CreditAttribution: semei commentedI 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.
Comment #17
semei CreditAttribution: semei commentedThe problem persists with Picture module disabled and a different theme enabled.
Comment #18
semei CreditAttribution: semei commentedComment #19
semei CreditAttribution: semei commented--- nevermind, this was a caching issue ---
Comment #20
semei CreditAttribution: semei commentedComment #21
semei CreditAttribution: semei commentedOkay, 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 returnFALSE
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;
Comment #22
david387 CreditAttribution: david387 commented@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"?
Comment #23
semei CreditAttribution: semei commentedIf 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.
Comment #24
Sol Roth CreditAttribution: Sol Roth commentedIf 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.
Comment #25
vgutekunst CreditAttribution: vgutekunst commentedHi is it possible to link the image and or username to the drupal user profile-page instead of the disqus profil?
regards,
Comment #26
slashrsm CreditAttribution: slashrsm commented@lolhonk: AFAIK no.