javascript - Disqus not displaying comment count -


summary: setting disqus display comment count on page within our mvc .net site. have 'fixed' feature before on tumblr page, thought had needed skills on site failing. have reviewed of ryan's (https://stackoverflow.com/users/1370956/ryan-v) applicable answers have not found solution.

i following directions disqus.com this:

https://help.disqus.com/customer/portal/articles/565624

but having no success. understanding need is:

  1. add script disqus_shortname replaced within it
  2. insert href tag "#disqus_thread" appended end of article url

once done think script should insert comment count number , display on page -- isn't working me.

in tumblr supposed insert meta tag

<meta name='text:disqus shortname' content='' /> 

but don't believe applies in setting (although didn't stop me giving try).

i can assume i'm missing obvious. wonder if localhost environment interrupting testing since using link localhost page displaying disqus comments. have tested using live disqus comment page same results.

details: have tested number of wrong things, believe following least-wrong:

script:

<script type="text/javascript">     /* * * configuration variables: edit before pasting webpage * * */     var disqus_shortname = 'my-shortname'; // required: replace example forum shortname      /* * * don't edit below line * * */     (function () {         var s = document.createelement('script'); s.async = true;         s.type = 'text/javascript';         s.src = '//' + disqus_shortname + '.disqus.com/count.js';         (document.getelementsbytagname('head')[0] || document.getelementsbytagname('body')[0]).appendchild(s);     }()); </script> 

html:

<a href="http://localhost-link/#disqus_thread"></a> 

so, make perfect sense never come @ question, turned out using '#' didn't work us, instead had used in conjunction '&' - example:

<a href="http://localhost-link&#disqus_thread" data-disqus-identifier="12345"></a>

also ended using identifier attribute, can read on same disqus article linked in original question.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -