Hi All,
The 'disqus_callback()' is great for customising Disqus after is has
loaded.
However, the dialog that appears when the user hits 'Post As' is not
in the DOM, and (AFAIK, correct me if I'm wrong) can't be modified
yet.
Is there a callback that is fired when the user hits "Post As", after
the resulting dialog loads? Or is there any way I can tweak the
elements in this dialog in the 'disqus_callback'?
Is there anywhere that these things are documented? The official
Disqus docs (
http://docs.disqus.com/developers/js/ ) on JavaScript
are pretty lite, I couldn't even find the documentation for that
'disqus_callback' hook.
Here's my situation: My budget won't stretch to afford the SSO
upgrade to Disqus, and yet I have authenticated users in my system.
This creates the silly situation where they have to enter information
that I already have just to comment. In fact this is a bit of a deal-
breaker for me, so I'm basically going to try and address this, or try
to find a new commenting system. My idea is as follows: when the
disqus 'Post As' dialog appears, I inspect the Name/Email/Website
elements. If they are populated, I leave them as is. If however they
are blank/default, then I pre-populate them with data from my system
about the user in question. The user can then edit these if needed.
I can use Firebug to inspect the elements of this form, and I notice
that Disqus has given them good names, ones I am assuming won't be
changing too frequently (e.g. dsq-field-email).
So any ideas on where I can hook my javascript to play with them?
Kind Regards,
Will