Skip navigation
Sidebar -

Advanced search options →

Welcome

Welcome to CEMB forum.
Please login or register. Did you miss your activation email?

Donations

Help keep the Forum going!
Click on Kitty to donate:

Kitty is lost

Recent Posts


Random Islamic History Po...
by zeca
Today at 05:36 PM

What music are you listen...
by zeca
Today at 02:11 PM

NayaPakistan...New Pakist...
Today at 11:42 AM

Reading stabbings
Yesterday at 10:32 PM

Coronavirus crisis
Yesterday at 12:20 PM

Qur'anic studies today
January 12, 2021, 03:05 PM

AMRIKAAA Land of Free .....
January 12, 2021, 11:42 AM

Hello
January 09, 2021, 07:46 AM

Paris murder
January 08, 2021, 07:50 PM

Freely down loadable Boo...
January 07, 2021, 03:21 AM

The Lady of the Heaven., ...
January 04, 2021, 05:10 PM

Do humans have needed kno...
January 01, 2021, 10:01 AM

Theme Changer

 Topic: Problem viewing some avatars

 (Read 7753 times)
  • Previous page 1 23 4 Next page « Previous thread | Next thread »
  • Re: Problem viewing some avatars
     Reply #30 - June 21, 2010, 10:34 AM

    In other words, imgur has somehow included an image size of 0 x 0  and of course our software only resizes images if they are over the 125x150 limit. Consequently the image is displaying exactly as imgur specifiy it: 0px by 0px.

    The reason this is not happening on IE is most likely because, as usual, IE is to stupid to adhere to web standards.

    I don't understand what you're talking about. The forum software just writes an img tag with: width="125" height="150". It doesn't resize external images.

    Bottom line: use a different image host.

    Bullshit. Angry

    German ex-Muslim forumMy YouTubeList of Ex-Muslims
    Wikis: en de fr ar tr
    CEMB-Chat
    I'm on an indefinite break...
  • Re: Problem viewing some avatars
     Reply #31 - June 21, 2010, 10:38 AM


    I can?t see Tlaloc?s avatar and IE8 cannot find bayimg.

    Like a compass needle that points north, a man?s accusing finger always finds a woman. Always.

    Khaled Hosseini - A thousand splendid suns.
  • Re: Problem viewing some avatars
     Reply #32 - June 21, 2010, 10:39 AM

    Okay, I looked at this in Firefox, and I can see what you mean. But it doesn't make any sense.
    If you visit http://imgur.com/RQPLL.png and look at the image info, it reports the correct dimensions. What the fuck gives?

    German ex-Muslim forumMy YouTubeList of Ex-Muslims
    Wikis: en de fr ar tr
    CEMB-Chat
    I'm on an indefinite break...
  • Re: Problem viewing some avatars
     Reply #33 - June 21, 2010, 10:41 AM

    Oh and I see, that we are back to questionmarks instead of apostrophees.

    That is also someting that happened some 3 days ago.

    Like a compass needle that points north, a man?s accusing finger always finds a woman. Always.

    Khaled Hosseini - A thousand splendid suns.
  • Re: Problem viewing some avatars
     Reply #34 - June 21, 2010, 10:41 AM

    This is madness, I tell you! :O

    Do not look directly at the operational end of the device.
  • Re: Problem viewing some avatars
     Reply #35 - June 21, 2010, 10:44 AM

    Yes it does if they are over 125x150. It doesn't force them to 125x150 if they have a different proportion (like 1:1 or 2:1 or whatever).

    ETA: Well obviously it doesn't actually resize the external image itself.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #36 - June 21, 2010, 10:46 AM

    Okay, I looked at this in Firefox, and I can see what you mean. But it doesn't make any sense.
    If you visit http://imgur.com/RQPLL.png and look at the image info, it reports the correct dimensions. What the fuck gives?

    Seems to be avs hosted on imgur.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #37 - June 21, 2010, 10:47 AM

    Alright folks, I got it! (I fixed ateapotist's avatar already.)

    The issue was the following. If you use a link like this: http://imgur.com/RQPLL.png you will be redirected to http://i.imgur.com/RQPLL.png; notice the "i." prefix.
    Now some browsers apparently have a problem with that. They can't reload the image from the new (redirected) URL and therefore simply show nothing.

    If you want to embed images, use the "i." prefix. Afro

    Oh and I see, that we are back to questionmarks instead of apostrophees.

    Must be an old version of IE.

    German ex-Muslim forumMy YouTubeList of Ex-Muslims
    Wikis: en de fr ar tr
    CEMB-Chat
    I'm on an indefinite break...
  • Re: Problem viewing some avatars
     Reply #38 - June 21, 2010, 10:49 AM

    Or don't use imgur for avs because you can bet nobody will remember this and we'll have to keep answering it.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #39 - June 21, 2010, 10:53 AM


    @Aziz

    I am on IE8.

    The questionmark/apostrophe thing use to be a problem some time ago,but all of a sudden the problem disappeared. Now, however, for some 3 days it is back.

    Like a compass needle that points north, a man?s accusing finger always finds a woman. Always.

    Khaled Hosseini - A thousand splendid suns.
  • Re: Problem viewing some avatars
     Reply #40 - June 21, 2010, 10:56 AM

    Yes it does if they are over 125x150. It doesn't force them to 125x150 if they have a different proportion (like 1:1 or 2:1 or whatever).

    ETA: Well obviously it doesn't actually resize the external image itself.


    It just redefines the forced width and height of all avatars with a javascript after the page is loaded:

    window.addEventListener("load", smf_avatarResize, false);

    function smf_avatarResize()
    {
    var possibleAvatars = document.getElementsByTagName ? document.getElementsByTagName("img") : document.all.tags("img");

    for (var i = 0; i < possibleAvatars.length; i++)
    {
    if (possibleAvatars[i].className != "avatar")
    continue;

    var tempAvatar = new Image();
    tempAvatar.src = possibleAvatars[i].src;

    if (smf_avatarMaxWidth != 0 && tempAvatar.width > smf_avatarMaxWidth)
    {
    possibleAvatars[i].height = (smf_avatarMaxWidth * tempAvatar.height) / tempAvatar.width;
    possibleAvatars[i].width = smf_avatarMaxWidth;
    }
    else if (smf_avatarMaxHeight != 0 && tempAvatar.height > smf_avatarMaxHeight)
    {
    possibleAvatars[i].width = (smf_avatarMaxHeight * tempAvatar.width) / tempAvatar.height;
    possibleAvatars[i].height = smf_avatarMaxHeight;
    }
    else
    {
    possibleAvatars[i].width = tempAvatar.width;
    possibleAvatars[i].height = tempAvatar.height;
    }
    }

    if (typeof(window_oldAvatarOnload) != "undefined" && window_oldAvatarOnload)
    {
    window_oldAvatarOnload();
    window_oldAvatarOnload = null;
    }
    }

    Cool shit! ;P

    Do not look directly at the operational end of the device.
  • Re: Problem viewing some avatars
     Reply #41 - June 21, 2010, 10:58 AM

    Yeah I know. I think Aziz was thinking of the html resize option which is the one we don't use (coz it's crap).

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #42 - June 21, 2010, 11:13 AM

    Cool shit! ;P


    More like "Ugly shit!". I can't believe that piece of code is included in the forum software. *puke*

    German ex-Muslim forumMy YouTubeList of Ex-Muslims
    Wikis: en de fr ar tr
    CEMB-Chat
    I'm on an indefinite break...
  • Re: Problem viewing some avatars
     Reply #43 - June 21, 2010, 11:32 AM

    It works really well.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #44 - June 21, 2010, 11:51 AM

    Alright folks, I got it! (I fixed ateapotist's avatar already.)

    The issue was the following. If you use a link like this: http://imgur.com/RQPLL.png you will be redirected to http://i.imgur.com/RQPLL.png; notice the "i." prefix.
    Now some browsers apparently have a problem with that. They can't reload the image from the new (redirected) URL and therefore simply show nothing.

    If you want to embed images, use the "i." prefix. Afro

    Minor problem now:
    Why is my avatar now showing black above and below the actual graphics part?  I made the actual image height to be 150pixels (so there would be no unsightly resizing as the page loads), and the area above and below to be transparent in colour (you can do that with png's), so that no matter what theme is used, the area above and below would use the theme colour.

    Edit:  It seems there are two completely different images:  http://i.imgur.com/RQPLL.png  and  http://i.imgur.com/RQPLLl.png

    "Many people would sooner die than think; In fact, they do so." -- Bertrand Russell

    Baloney Detection Kit
  • Re: Problem viewing some avatars
     Reply #45 - June 21, 2010, 11:59 AM

    It's probably inheriting a background colour from the css. Which theme are you using?

    ETA: Ok, no. It's your image host remaking the image with a black background. Told you to use another host.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #46 - June 21, 2010, 12:08 PM

    By adding the "l" suffix to the image name you get a lower resolution version of the image. It saves some kilobytes and makes loading faster.

    Compare: http://i.imgur.com/RQPLL.png vs. http://i.imgur.com/RQPLLl.png

    Problem is, that imgur apparently can't resize PNG's with alpha channels.

    German ex-Muslim forumMy YouTubeList of Ex-Muslims
    Wikis: en de fr ar tr
    CEMB-Chat
    I'm on an indefinite break...
  • Re: Problem viewing some avatars
     Reply #47 - June 21, 2010, 12:15 PM

    It's probably inheriting a background colour from the css. Which theme are you using?

    ETA: Ok, no. It's your image host remaking the image with a black background. Told you to use another host.

    OK. I fixed it, by simply using the correct image out of the two.  I'm sure that's what I set it to in the first place. wacko

    Never mind now.


    On a side note, Os:  I see you edited your post after I edited mine.  When you were submitting your post, it clearly did not warn you that I had -- in the meantime -- edited my post.  If you really wanna be an awsome dude, you could write some code to make it warn a responder that the last post was edited in the meantime. grin12  It would be useful in many debates here too.

    "Many people would sooner die than think; In fact, they do so." -- Bertrand Russell

    Baloney Detection Kit
  • Re: Problem viewing some avatars
     Reply #48 - June 21, 2010, 12:15 PM

     Cheesy The image host shouldn't have to resize the image.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #49 - June 21, 2010, 12:17 PM

    I uploaded an image of the right size to imgur.com, having resized it correctly on my PC. Wink

    "Many people would sooner die than think; In fact, they do so." -- Bertrand Russell

    Baloney Detection Kit
  • Re: Problem viewing some avatars
     Reply #50 - June 21, 2010, 12:20 PM

    On a side note, Os:  I see you edited your post after I edited mine.  When you were submitting your post, it clearly did not warn you that I had -- in the meantime -- edited my post.  If you really wanna be an awsome dude, you could write some code to make it warn a responder that the last post was edited in the meantime. grin12  It would be useful in many debates here too.

    The software already includes that option but I prefer it switched off as I find it more annoying than useful on the whole. It's a profile setting not an admin one so suit yourself.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #51 - June 21, 2010, 12:25 PM

    OK. I fixed it, by simply using the correct image out of the two.  I'm sure that's what I set it to in the first place. wacko

    I set it to the l-version. Sorry. lol

    German ex-Muslim forumMy YouTubeList of Ex-Muslims
    Wikis: en de fr ar tr
    CEMB-Chat
    I'm on an indefinite break...
  • Re: Problem viewing some avatars
     Reply #52 - June 21, 2010, 01:08 PM

    I'm not seeing Naerys and Hassan's avatars. I used to view them just fine until yesterday.
  • Re: Problem viewing some avatars
     Reply #53 - June 21, 2010, 01:15 PM

    they look ok to me..

    My Book     news002       
    My Blog  pccoffee
  • Re: Problem viewing some avatars
     Reply #54 - June 21, 2010, 01:24 PM

    Fine for me.

    Devious, treacherous, murderous, neanderthal, sub-human of the West. bunny
  • Re: Problem viewing some avatars
     Reply #55 - June 21, 2010, 02:29 PM

    I'm not seeing Naerys and Hassan's avatars. I used to view them just fine until yesterday.


    We are being possessed by the devil Allah. Now only your avatar shows... Cheesy

    Srsly. Are we being hacked?




    ...
  • Re: Problem viewing some avatars
     Reply #56 - June 21, 2010, 02:31 PM

    Aziz, islame, and osmanthus avatars were showing few hours ago. I am using safari on iPad.

    ...
  • Re: Problem viewing some avatars
     Reply #57 - June 21, 2010, 03:27 PM

    Dreamweavers has vanished for me now.  A few others, will add their names when it happens.

    Inhale the good shit, exhale the bullshit.
  • Re: Problem viewing some avatars
     Reply #58 - June 21, 2010, 03:27 PM

    I don't see koolkhans even though everyone else is complimenting it.  wacko

    Inhale the good shit, exhale the bullshit.
  • Re: Problem viewing some avatars
     Reply #59 - June 21, 2010, 03:29 PM

    All fine with IE  grin12

    My Book     news002       
    My Blog  pccoffee
  • Previous page 1 23 4 Next page « Previous thread | Next thread »