[Hejes-devel] [1116] disqus comments disabled outside of helyesiras.mta.hu
hejes-devel at nytud.hu
hejes-devel at nytud.hu
Mon Mar 3 15:26:11 CET 2014
Revision: 1116
Author: mihaltz
Date: 2014-03-03 15:26:11 +0100 (Mon, 03 Mar 2014)
Log Message:
-----------
disqus comments disabled outside of helyesiras.mta.hu
Modified Paths:
--------------
trunk/web2py/applications/helyesiras_webdev/views/blog/show.html
Modified: trunk/web2py/applications/helyesiras_webdev/views/blog/show.html
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/views/blog/show.html 2014-03-03 10:37:24 UTC (rev 1115)
+++ trunk/web2py/applications/helyesiras_webdev/views/blog/show.html 2014-03-03 14:26:11 UTC (rev 1116)
@@ -77,7 +77,8 @@
</div>
<div id="disqus_thread"></div>
-<script type="text/javascript">
+{{if 'env' in request and request['env'].get('http_host') in ['helyesiras.hu', 'helyesiras.mta.hu', 'xn--helyesrs-fza2j.mta.hu']:}}
+ <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
@@ -89,9 +90,12 @@
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>
+ </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>
+{{else:}}
+ <p><i>(Disqus hozzászólások kikapcsolva a {{=request['env'].get('http_host')}} szerveren.)</i></p>
+{{pass}}
{{pass}} {{# (if post != None:) }}
More information about the Hejes-devel
mailing list