Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: trouble with ie vs firefox  (Read 11290 times)

0 Members and 1 Guest are viewing this topic.

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
trouble with ie vs firefox
« on: December 21, 2006, 06:49:33 am »

So first off my setup of cpmfetch works perfectly with no flaws in any browser that I have found.

Check it out here:

http://www.amateurillustrator.com/

What I want help with is the way internet explorer loads cpmfetch'd images:

In firefox when you load my homepage there are no problems during the loading...but when loading the page in IE, during the loading process, the formatting of the page messes up but then neatly fits back together once all the images are loaded.

look at the attached images, loading.jpg and loaded.jpg for a demonstration of what cpmfetch does in IE during loading.

It seems that it somehow picks random widths for the un-loaded images that cause the page to balloon out to the right.

This isn't a huge problem but as most people unfortunatly use IE it looks bad, especially for people with slower connections.

Any way to fix this?

Cheers

nick
« Last Edit: March 18, 2007, 05:05:10 pm by vuud »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: trouble with ie vs firefox
« Reply #1 on: December 21, 2006, 07:32:32 am »

Happens when <img> tags don't have a width and height attribute.
Logged

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: trouble with ie vs firefox
« Reply #2 on: December 21, 2006, 08:08:19 am »

oh right

is there a way of fixing this?

maybe by setting a max width or something??
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #3 on: December 21, 2006, 05:58:31 pm »

oh right

is there a way of fixing this?

maybe by setting a max width or something??

If you can guarentee all your thumbnails are a particular size, you can hardcode the height and width into the cpmfetch calls.

Its gonna screw with any img that is not that size though
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: trouble with ie vs firefox
« Reply #4 on: December 21, 2006, 07:07:36 pm »

yeah thats what i thought...i have the cellattribute width set to 100 but that doesn't seem to come into effect until after the images are loaded.

is there no other way?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #5 on: December 21, 2006, 07:56:48 pm »

yeah thats what i thought...i have the cellattribute width set to 100 but that doesn't seem to come into effect until after the images are loaded.

is there no other way?

You need to set it on the images...

There is a way to pass it through the options array... like imagewidth or something... i forget, maybe its in the docs
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: trouble with ie vs firefox
« Reply #6 on: December 21, 2006, 07:59:52 pm »

yeah but this will cause the images to distort right as they are all different width's...although none of them are over 100 pixels wide.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #7 on: December 22, 2006, 03:59:56 pm »

yeah but this will cause the images to distort right as they are all different width's...although none of them are over 100 pixels wide.

Exactly, 2 posts up I said...
Quote
Its gonna screw with any img that is not that size though

I can't think of any other way to tackle it, well...  I suppose if you knew how much screen area the resulting grid of images would take you could wrap the whole call in a table with some transparent shims to force the height and width...

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: trouble with ie vs firefox
« Reply #8 on: December 24, 2006, 12:04:13 am »

...or set the with property to a fixed width and apply some JavaScript onload gimmick to unset the width once the images have been loaded. Not an issue with cpmfetch imo, but a matter of your creativity. Call it missing feature if you want.
Logged

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: trouble with ie vs firefox
« Reply #9 on: December 24, 2006, 04:10:13 am »

yeah, I knew it wasnt a bug with cpmfetch, just something with the way ie loads images...

ah well I will see if I can figure something out form your two suggestions.

Cheers

Nick
Logged

nickfzx

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 285
Re: trouble with ie vs firefox
« Reply #10 on: February 28, 2007, 03:49:11 am »

I actually figured this out just today....it dawned on me that the thumbnails were only stretching as far as the alternative text of the thumbnail was.

The alternative text was "click on the thumbnail to see the full sized image"   therefore the unloaded image was that long.

All I had to do was change the alternative text to "thumbnail" and now it look nice when loading in IE and Opera.

Just thought I'd post in case anyone else reads this with the same problem.

P.S.

Thanks GauGau for reactivating my account after it was blocked from posting for some reason.
Logged

cocostaff

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: trouble with ie vs firefox
« Reply #11 on: March 14, 2007, 05:39:56 pm »

I've a similar problem : under IE, some thumbail from specific albums (actually Velasquez and Grunwald albums) doesn't appear !
(i've tried width and height parameters in IMG tags, but no results...)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #12 on: March 14, 2007, 07:08:07 pm »

I've a similar problem : under IE, some thumbail from specific albums (actually Velasquez and Grunwald albums) doesn't appear !
(i've tried width and height parameters in IMG tags, but no results...)

You have images that just don't appear??
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

cocostaff

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: trouble with ie vs firefox
« Reply #13 on: March 14, 2007, 08:39:14 pm »

Exactly, here is my homepage http://www.picturelive.net
But the link works well...
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #14 on: March 14, 2007, 10:46:36 pm »

Exactly, here is my homepage http://www.picturelive.net
But the link works well...

Wow!  Well whatever the shortcomings and failures of IE are - this cannot be tolerated.

Let me see what can be done before I release 1.9.12...

Stupid IE.  In the meantime tell people to switch to firefox :p

Here is the issue, and it seems to be a cpmfetch bug... Coppermine is doing a much better job of encoding stuff.  For instance, in the one I am looking at, I encode some things like spaces, but not other things.

In this particular one, at least a comma and a funny (whatever you call the %E1 entity) are not encoded.

So anyway, IE cannot handle it - who knows why.

Anyhow, I will have to look into it later tonight or tomorrow maybe for a solution - but thank you for bringing this to my attention!

Vuud

PS. Great site also, love it.


Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

cocostaff

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: trouble with ie vs firefox
« Reply #15 on: March 15, 2007, 10:48:08 am »

Wow!  Well whatever the shortcomings and failures of IE are - this cannot be tolerated.

completely ugly under ie, i agree...


Quote
Stupid IE.  In the meantime tell people to switch to firefox :p
I've tried, but statistically more than half still you ie rather than ff

Quote
Here is the issue, and it seems to be a cpmfetch bug... Coppermine is doing a much better job of encoding stuff.  For instance, in the one I am looking at, I encode some things like spaces, but not other things.

In this particular one, at least a comma and a funny (whatever you call the %E1 entity) are not encoded.

So anyway, IE cannot handle it - who knows why.

Anyhow, I will have to look into it later tonight or tomorrow maybe for a solution - but thank you for bringing this to my attention!

Vuud
thank you for the this great mod and time you spend to improve it...

i'll be waiting for new versions  :P




Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #16 on: March 15, 2007, 02:11:06 pm »

completely ugly under ie, i agree...

I've tried, but statistically more than half still you ie rather than ff
thank you for the this great mod and time you spend to improve it...

i'll be waiting for new versions  :P


Yeah, I know we can't really force people to use IE... although on my own site, I just may ignore CSS anomolies that happen under IE and put a big "Why does this site look stupid under IE"...  Thats assuming of course they are violating a standard on something...


Anyway...


I looked last night and I do encode the path, but apparently I am not doing a good job of it.  Today / tonight I hope to troll the CPG code and see how they do it - since apparently it works for them :)

Ah well

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: trouble with ie vs firefox
« Reply #17 on: March 18, 2007, 05:04:28 pm »


This issue has been fixed, and partially tested.  The full solution is included in release 1.9.12 which is not posted yet. 

When it comes online, you can download it from http://cpmfetch.fistfullofcode.com

Vuud

Thx to cocostaff for testing the fix.
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.049 seconds with 16 queries.