Disqus comment count generates an error that's why

Who I am
Martí Micolau
Author and references

If on your site you have decided to manage your Blog comments with the Disqus platform, then you must know that you will need to update the Helpers.cs file, to solve the problem of the count.js not working and download the version of Source of Blogengine.

Disqus is a comment hosting service for websites and virtual communities that works through an online platform. Its use is very advantageous both for its many features and for the possibility of getting in touch with other users who use it.

Unfortunately on there is an outdated Disqus code snippet and this generates an error in the count.js slowing down the loading of your blog pages.

To intervene on the code you will need to download the Source version of BlogEngine by connecting to the page of BlogEngine Codeplex, in the Download section, and after installing Visual Studio, the Express version, open the previously downloaded Blogengine project (the source one).

From VS Express, open the solution file - BlogEngine.sln. This solution contains 2 projects - the project BlogEngine Core and the main site. Once the project is open, all you have to do is perform the following steps to produce the file BlogEngine.Core.dll for the directory BIN contained on your site.

The file to modify in question is located in this path: BlogEngineBlogEngine.CoreWebScriptingHelpers.cs. Line 117 includes a code snippet for Disqus to change to:

Lines of code in the Helpers.cs file

if (BlogSettings.Instance.ModerationType == BlogSettings.Moderation.Disqus) { sb.Append(" n"); sb.Append("//= 0) { "); sb.Append("query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&'; "); sb.Append("}}"); sb.Append("document.write(''); "); sb.Append("})(); n"); sb.Append("//]]> n"); sb.Append(" n"); }

Changes to apply to the Helpers.cs code

if (BlogSettings.Instance.ModerationType == BlogSettings.Moderation.Disqus) { sb.Append(""); sb.Append(" var disqus_shortname = '" + BlogSettings.Instance.DisqusWebsiteName + "';"); sb.Append(" (function () {"); sb.Append(" var s = document.createElement('script'); s.async = true;"); sb.Append(" s.type = 'text/javascript';"); sb.Append(" s.src = '//' + disqus_shortname + '';"); sb.Append(" (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);"); sb.Append(" }());"); sb.Append(""); }

At the end perform the Recompilation of Blogengine.Core.dll in Visual Studio Express and copy the file from SourceBlogEngineBlogEngine.CorebinRelease alla directory bin of your Blog. If you have Filezilla you can simply upload and fix.

Adriana gil We are a specialized and passionate team of virtual reality. We have extensive experience in this area. We decided to create ForVirtualRealityLovers to share all our information with customers and users. We have quality information. You can find tips, guides, interviews, top products and much more! If you are curious, enter our site and discover the virtual world! 😉 set post URLs to lowercase in Sitemap.axd ❯

Articles related to

How to download Deezer Premium for free
Difference between CPM and RPM
How to export Chrome bookmarks
Best alternatives to Stockists to buy smartphones and tablets
How to download from TNT Village Scambioetico 2020
How to find out if Google has punished our site
Add a comment from Disqus comment count generates an error that's why
Comment sent successfully! We will review it in the next few hours.


  • Apple launches the new iPhone SE and the new iPad Pro
  • How to promote a business on Facebook
  • Replace PostPager with PostPaging in
  • Le alternative a eBay
  • How to activate Facebook two-factor authentication
  • 10 rules for making a winning Facebook fan page
  • How to get lots of likes on a Facebook page
  • Amazon Prime Day 2022: best offers
  • Google Drive, iCloud, SkyDrive and many others: which Cloud Storage to choose?
  • On September 12, Apple will unveil the iPhone 5
  • Best TV series on Amazon Prime Video 2022
  • How to advertise your Facebook fan page with the cover image as well
  • How to make an Amazon return: process, forms and costs
  • How to make an unsubscribe request to the Bing search engine
  • Apple: presented iPhone X, iPhone 8 and 8 Plus and the third generation of the Apple Watch
  • I can't clear Google history: how to fix
  • How to see birthdays on Facebook and save them in Excel
  • How to hide messages on Facebook
  • How to get a free Amazon voucher
  • Use your PC as a wireless router
❤️Chi Sleep For Virtual Reality Lovers?

For Virtual Reality Lovers we are a team of people who aim to give you all the best information about Virtual Reality.

What information do we share?

We share everything you need to know about virtual reality, tips, prices, features, guides and much more !.

🤖What are the best virtual reality products?

We have the best information section on the best virtual reality products.

This work is under a Creative Commons Attribution-Non-Commercial-No Derivatives 4.0 International License. 2021/ X

Check out our best articles!

How to find out who visits your Facebook profile

How to insert a donation button in

Track Twitter clicks with Feedburner

How to archive Outlook messages

add a comment of Disqus comment count generates an error that's why
Comment sent successfully! We will review it in the next few hours.