[Hejes-devel] [1098] enabled disqus in blog/show (tags/release-1.1.2)

hejes-devel at nytud.hu hejes-devel at nytud.hu
Fri Feb 14 11:43:21 CET 2014


Revision: 1098
Author:   mihaltz
Date:     2014-02-14 11:43:21 +0100 (Fri, 14 Feb 2014)
Log Message:
-----------
enabled disqus in blog/show (tags/release-1.1.2)

Modified Paths:
--------------
    tags/release-1.1.2/web2py/applications/helyesiras_webdev/views/blog/show.html

Modified: tags/release-1.1.2/web2py/applications/helyesiras_webdev/views/blog/show.html
===================================================================
--- tags/release-1.1.2/web2py/applications/helyesiras_webdev/views/blog/show.html	2014-02-14 10:42:02 UTC (rev 1097)
+++ tags/release-1.1.2/web2py/applications/helyesiras_webdev/views/blog/show.html	2014-02-14 10:43:21 UTC (rev 1098)
@@ -76,7 +76,24 @@
   {{pass}}
 </div>
 
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+    var disqus_shortname = 'helyesirasmtahublog'; // required: replace example with your forum shortname
+    var disqus_identifier = '{{=post.posts.slug}}'; // unique id of this post => id of thread in disqus
+    var disqus_title = '{{=post.posts.title}}'; // title of this post => title of thread in disqus
+    var disqus_url = '{{='http://helyesiras.mta.hu'+URL(c='blog', f='show', args=[post.posts.slug])}}';
+    /* * * DON'T EDIT BELOW THIS LINE * * */
+    (function() {
+        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+    })();
+</script>
+<noscript>Kérjük, engedélyezze a JavaScriptet <a href="http://disqus.com/?ref_noscript">a hozzászólások</a> megjelenítéséhez.</noscript>
+<a href="http://disqus.com" class="dsq-brlink">Hozzászólások betöltése...</a>
 
+
 {{pass}} {{# (if post != None:) }}
 
 </div> <!-- <div id="blog-container"> -->




More information about the Hejes-devel mailing list