Sorry, the forums are locked while I handle some maintenance.

 
This Forum is Currently Locked – Access is Read Only
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Now working in IE7

No Tags
UserPost

2:54 pm
February 16, 2010


Brayne

Member

posts 8

Internet Explorer Doesn't like extra commas in javascript. It wants to find the next variable that doesn't exist. I was able to get the plugin working in IE7 by removing the extra variables as follows…

Line 449 – You'll find this….

///////

foreach ( $this->_settings['featured-content-showcase'] as $setting => $value ) {

///////

We need to find the last element in an array so we know where to remove the extra comma…
So I'm creating a variable that finds the end of the array.
///////

$last_key = end(array_keys($this->_settings['featured-content-showcase']));
foreach ( $this->_settings['featured-content-showcase'] as $setting => $value ) {

///////

Line 459 (or about there) – Find this….

///////

echo "{$setting}:    {$value},\r\n";

///////

Replace with this….

///////

if($last_key == $setting) {
echo "{$setting}:    {$value}\r\n";
} else {
echo "{$setting}:    {$value},\r\n";
}

///////

Then we need to remove the last comma in the default settings as well….

Line 594 – (or close, we've pushed everything down a bit.)
Find this….

///////

'panel_scale'            => 'nocrop',

///////

And remove the end comma….

///////

'panel_scale'            => 'nocrop'

///////

Then save the file.

Google and Microsoft have officially stopped supporting IE6…. and so should EVERYONE. I did not test this in IE6. I'm telling all my clients, "I no longer do work for IE6" But I did test this in IE7 and it works. Be sure to emtpy cache and reload the page for testing.
Hope this helps out!

2:56 pm
February 16, 2010


Brayne

Member

posts 8

Sorry, this is in the file named featured-content-showcase.php

7:28 pm
February 18, 2010


Iain

Member

posts 8

I'm not sure how to include

$last_key = end(array_keys($this->_settings['featured-content-showcase']));
foreach ( $this->_settings['featured-content-showcase'] as $setting => $value ) {

in featured_content_showcase.php. I gather it needs to be a part of the same php 'string' (excuse me if I'm using the incorrect term) as

foreach ( $this->_settings['featured-content-showcase'] as $setting => $value ) {

but I don't know how far down to insert it. Cou you give me an example of your code?

Thanks,

Iain 

8:04 am
April 24, 2010


freegod725@yahoo.com.hk

Member

posts 3

it works, thanks for the fix

No Tags

About the Xavisys Forum

Forum Timezone: America/Phoenix

Most Users Ever Online: 50

Currently Online:
1 Guest

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 26
Topics: 410
Posts: 1034

Membership:

There are 792 Members
There has been 1 Guest

There are 2 Admins
There is 1 Moderator

Top Posters:

lkmweb@me.com – 9
Brayne – 8
Xarzu – 8
Iain – 8
Aaron Fineman – 8
checox7@yahoo.com – 6

Recent New Members: puckles@gmail.com, kwelx@kwelx.com, kaufmanauthor@gmail.com, meesfrenkelfrank@hotmail.com, heather@holmpage.com, mark@avantgarde-group.nl

Administrators: AaronCampbell (242 Posts), Imported Questions (1 Post)

Moderators: nancy@mequoda.com (0 Posts)



 
Stop Censorship