Documentation on Disqus events?

241 views
Skip to first unread message

SimonL

unread,
Dec 21, 2011, 3:51:26 AM12/21/11
to Disqus Developers
Hi!
Does it exist any documentation on the Disqus javascript events which
get functions attached on them in the dtjs_actions file in the
Narcissus theme? From that file it looks like there's more you can
control than the theme variables listed here. http://docs.disqus.com/help/104/
What I'm specifically after is if there's an event to intercept when
the user has clicked one of the login buttons and when they've posted
a comment.

Thanks in advance!

Anton Kovalyov

unread,
Dec 21, 2011, 12:53:13 PM12/21/11
to disqu...@googlegroups.com
Hi Simon,

You are right, we have an internal system for events—however, they are not public and subject to change without prior notice. That's why we don't have publicly accessible documentation yet but we're working on making a subset of events open to the public.

Thanks,
Anton

SimonL

unread,
Dec 22, 2011, 10:28:01 AM12/22/11
to Disqus Developers
Hi Anton,
thanks for your reply!
So basically, if we want to do something like that we'd have do go
through the API and build the front-end stuff ourselves?

Best,
Simon

Anton Kovalyov

unread,
Dec 22, 2011, 1:44:34 PM12/22/11
to disqu...@googlegroups.com
That depends on what exactly you're trying to do. Care giving me a bit more info so I could give you a better advise?

Thanks,
Anton

SimonL

unread,
Dec 27, 2011, 7:10:44 AM12/27/11
to Disqus Developers
But of course!
When a user has logged in, and when a comment has been posted, I want
to run a function which counts the user's comments (via
DISQUS.jsonData.posts) and replaces the textarea with a message if the
number of comments is above a set limit. Since listening to DOM
changes doesn't seem to work in IE < 9 I figured my options where
either capturing the Disqus JS events or using the API with a custom
front-end.

Best,
Simon
Reply all
Reply to author
Forward
0 new messages