1

I have installed Disqus on localhost and want users of a particular role type only to be able to comment. Basically, there are free and premium users but I wish to allow only the premium users to be able to comment using Disqus. The comments should be visible to every role type but the ability to comment should be given to only the premium users and the administrator. It would be great if someone could help me out with this !

1 Answer 1

0

in admin/config/services/disqus set the location to block

then in admin/structure/block put the "Disqus comment" block below the "Main page content"

Now, edit the Disqus comment block, scroll all the way down, under Visibility Settings, click on roles and check mark premium and administrator.

Edit:

Unfortunately, you can't remove the comment box. Disqus used to offer a way to do it, but now they don't.

The only workaround, would be to create a block that is displayed for anonymous users and non premium authenticated users only.

Then inside that block put css to hide the comment box behind/underneath the article body.

For Example:

<style>
 #disqus_thread { z-index: 1; position: relative; top: -180px;}
 .article-body { z-index: 2; position: relative; background: white;}
</style>

Unfortunately, with this tactic you would lose the comment count and the sort option. Although, you could display the comment count using the views module.

4
  • Thank you for the answer ! I guess I wasn't clear enough with my question - The comments should be visible to all but the ability to comment should be limited to only the premium users and the administrator. I will edit my question with this detail.
    – shveta08
    Jun 21, 2015 at 2:07
  • I edited my answer.
    – No Sssweat
    Jun 21, 2015 at 13:31
  • Unfortunately, this doesn't work for me ! I tried different options but also realized that by doing so I will also have to remove the reply button, because the free users would still get a chance to reply.
    – shveta08
    Jun 23, 2015 at 4:43
  • 1
    oh dang, forgot about the reply button lol. Using the default Drupal comments is the only way to achieve this.
    – No Sssweat
    Jun 23, 2015 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.