Hi
I'd like to integrate the DisqUs javascript widget to an existing XWiki blog
section.
The site is
www.parisjug.org. We deactivated the comment section
cause there's no captcha. Howerver I'd like to propose a solution
for our visitors, so one can comment easily our blogs posts.
DisqUs is an open solution that is based on a javascript widget.
Here is what I need to integrate in each page :
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'parisjug';
// Question pour XWiki : ici il faut que je configure un identifier
// c'est comme un sujet de Mail. Il faudrait que je mette par exemple
// l'url de la page XWiki afin que les commentaires soient regroupes
// ensemble par article. Bref est ce que vous pouvez me mettre un ID ?
// var disqus_identifier = 'unique_dynamic_id_1234';
// var disqus_url = 'http://example.com/permalink-to-page.html';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type =
'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] ||
document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a
href="http://disqus.com/?ref_noscript">comments powered by
Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments
powered
by <span class="logo-disqus">Disqus</span></a>
I am a beginner at XWiki, so I don't know how to add this Javascript
section. Plus, it requires some sort of unique URL so that each comment
stream on DisqUs is attached to a page on XWiki
Does anybody tried already to integrate it with XWiki ?
Thanks for your help
Nicolas Martignole