• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [fixed] SWFobject 2 + Mootools craches IE6
PostPosted: Wed Jul 23, 2008 5:41 pm 
Offline
Forum Members
Forum Members

Joined: Wed May 30, 2007 7:40 pm
Posts: 89
i found a (kind of) major bug... but it isn't any ones bad.
CMSMS adds the tag at the top of the every page. But when you have flash on your page using the new SWFobject 2 in combination with the MooTools 1.2 java script framework, Internet Explorer craches completely :o
This error presumably will also occur with older versions of SWFobject and/or MooTools and other combinations of java scripts.

The fix is to add a small pies of code that closes the base tag () only in Internet Explorer.

Open the file plugins/function.metadata.php and go to line 44 where it says $result .= "\n\n";

Just add replace it with this line: $result .= "\n\n";

And the problem is fixed.

I suggest adding this change to the distributed file just in case people run into this problem (as it's pretty hard to find anything on the net about this problem)


Top
 Profile  
 
 Post subject: Re: [fixed] SWFobject 2 + Mootools craches IE6
PostPosted: Tue Jun 09, 2009 10:39 am 
Offline
Forum Members
Forum Members

Joined: Fri Nov 14, 2008 6:24 am
Posts: 14
Hello louisk,

thanks a lot for that hint! Your workaround works realy fine, but I think it's not valid in the end  ;)
A clean and valid version without conditional comments would be the following:

line 44 in plugins/function.metadata.php:
Code:
$result .= "\n<base href=\"".$config['root_url']."/\"></base>\n";


It's a little bit unusal notation in XHTML for empty Tags, but it's OK and valid. And the truly astonishing fact about this solution is: you save 27 bytes in your code!  ;D  ;D  ;D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner