开发者

Import logged in user disqus comments

I have set up an openid logging in system for mysite and the famous disqus commenting system.

How can I integrate these both, i.e. retrieve the logged in user information in the disqus commenting system preventing the users to enter their details twice on the same site else whats use of simplifying the logging in task.

Is there any api for disqus so that I can autofill the user info automatically?

Something like this is the django_template:

{%if requet.user.is_active %}
  <!--Check if any user is logged in and if someone is then add this in the html output:-->
  var disqus_email = {{ user.email }};
  var disqus_name = {{ user.username }};
  <!--Or as in my case if active user have an openid-->
  v开发者_运维技巧ar disqus_openid = {{ user.openid }};
{% endif %}

There is one simmilar post for this: Disqus and retrieving logged in user but looking at the response I decided to start a new question for my problem.


Found out the solution at http://help.disqus.com/entries/100880-configure-and-override-comment-system-behaviors.
Had to define the following for current logged in user as I already thought of in the question:

var disqus_def_name = "{{ user.get_full_name}}";
var disqus_def_email = "{{ user.email }}";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜