[xwiki-users] How to integrate Disqus in a xwiki blog section ?
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
Hi Nicolas, On Dec 12, 2010, at 10:40 AM, Nicolas Martignole wrote:
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.
Well first you should know that we support captchas on comments for unregistered users (since XE 2.3M1). See http://platform.xwiki.org/xwiki/bin/view/Features/RightsManagement#HActivati... Would that fit your need? Thanks -Vincent
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
Thanks Vincent I'll forward the details to the XWiki administrator I could not find this option on our wiki, in the Blog section, maybe I don't have the admin rights cheers Nicolas 2010/12/12 Vincent Massol <[email protected]> > Hi Nicolas, > > On Dec 12, 2010, at 10:40 AM, Nicolas Martignole wrote: > > > 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. > > Well first you should know that we support captchas on comments for > unregistered users (since XE 2.3M1). > > See > http://platform.xwiki.org/xwiki/bin/view/Features/RightsManagement#HActivatingCAPTCHAsforanonymouscomments > > Would that fit your need? > > Thanks > -Vincent > > > 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 > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
On Dec 12, 2010, at 3:29 PM, Nicolas Martignole wrote: > Thanks Vincent > > I'll forward the details to the XWiki administrator > I could not find this option on our wiki, in the Blog section, > maybe I don't have the admin rights It's not related to Blog. It's a general Admin feature. You need Admin rights indeed to access it. Thanks -Vincent > cheers > > Nicolas > > 2010/12/12 Vincent Massol <[email protected]> > >> Hi Nicolas, >> >> On Dec 12, 2010, at 10:40 AM, Nicolas Martignole wrote: >> >>> 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. >> >> Well first you should know that we support captchas on comments for >> unregistered users (since XE 2.3M1). >> >> See >> http://platform.xwiki.org/xwiki/bin/view/Features/RightsManagement#HActivatingCAPTCHAsforanonymouscomments >> >> Would that fit your need? >> >> Thanks >> -Vincent >> >>> 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
participants (2)
-
Nicolas Martignole -
Vincent Massol