Keyword

NOT FIXED (no count now though): IE7 & IE8 errors with this plugin

  • Jack Bremer
  • Jack Bremer's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 10 months ago - 14 years 10 months ago #23842 by Jack Bremer
I am having huge problems with this plugin in IE7/8:

I get this error most times we refresh in IE7, and occasional (similar) errors with IE8:



Works BEAUTIFULLY in Firefox...

Any ideas, any more info you need?

Joomla v1.5.10
Disqus plugin v2.1

[UPDATE]Thought I had this fixed with details below, but still having "operation aborted" errors[/UPDATE]

Please Log in or Create an account to join the conversation.

  • Jack Bremer
  • Jack Bremer's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 10 months ago #23843 by Jack Bremer
Replied by Jack Bremer on topic Re: IE7 & IE8 errors with this plugin
OK, have fixed this with a PHP comment-out...

This gave me the clue: disqus.disqus.com/get_num_repliesjs_breaking_in_ie_7/

Go into the plugin's settings, and turn off (NO) both of these:
Display a comments counter/anchor link in listings (e.g. blogcategory)
Display a comments counter/anchor link in article view

Then go to:
/plugins/content/jw_disqus.php

Comment out the following (approx line 165):
			window.addEvent('domready', function(){
				// Smooth Scroll
				new SmoothScroll({
					duration: 500
				});
		    
				// Disqus Counter
				var links = document.getElementsByTagName('a');
				var query = '?';
				for(var i = 0; i < links.length; i++) {
					if(links[i].href.indexOf('#disqus_thread') >= 0) query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
				}
				var disqusScript = document.createElement('script');
				disqusScript.setAttribute('charset','utf-8');
				disqusScript.setAttribute('type','text/javascript');
				disqusScript.setAttribute('src','http://disqus.com/forums/{$disqusSubDomain}/get_num_replies.js' + query + '');
				var b = document.getElementsByTagName('body')[0];
				b.appendChild(disqusScript);
			});
becomes:
/*
			window.addEvent('domready', function(){
				// Smooth Scroll
				new SmoothScroll({
					duration: 500
				});
		    
				// Disqus Counter
				var links = document.getElementsByTagName('a');
				var query = '?';
				for(var i = 0; i < links.length; i++) {
					if(links[i].href.indexOf('#disqus_thread') >= 0) query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
				}
				var disqusScript = document.createElement('script');
				disqusScript.setAttribute('charset','utf-8');
				disqusScript.setAttribute('type','text/javascript');
				disqusScript.setAttribute('src','http://disqus.com/forums/{$disqusSubDomain}/get_num_replies.js' + query + '');
				var b = document.getElementsByTagName('body')[0];
				b.appendChild(disqusScript);
			});
*/
Sorted. Shame though - no more comments count.

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #23844 by JoomlaWorks
I will add options so people won't have to comment the code.

May I ask what other extensions you have on, cause this could me a conflict in JS originating from another extension...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #23845 by Jorge Talancon
Thank you very much for both the great plugin and the bug fix. Works perfectly!!!!

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago - 14 years 7 months ago #23846 by FoxFinder
I'm having the exact same problem. I have narrowed it down to the embeding of youtube videos in my articles.

If I remove the video, the plugin works in IE.

Any suggestions would be great.

BTW Great plugin!! if only everyone would use Firefox :D

Webpage error details

Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI:

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum