Problem with picture

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zamuel
    New Member
    • Sep 2006
    • 42

    Problem with picture

    Hey everyone.

    I have a strange problem with PHP site. This only happens in IE 6.
    So, when user logs in there is a placeholder for user's own picture. Also there is a form where this picture can be loaded. The problem is that the picture won't show in main page, but shows in the loading form.

    The main page works with following code:
    [HTML]
    <div style="position :absolute;left: 0;top:30px;heig ht:130px;width: 130px;backgroun d-image:url('afbe eldingen/[[profielafbeeldi ng]]');background-position:center ;" id="profielafbe elding"></div>
    <div style="position :absolute;left: 0;top:0;height: 200px;width:188 px"><img src="[[URL]]images/photoframe.png" width="188" height="200" /></div> [/HTML]

    Which is assigned in PHP with following code:

    [PHP]$index->assign("profie lafbeelding",$u ser->afbeelding);[/PHP]

    And eventually with following code the picture is fetched from db:

    [PHP]
    function get_afbeelding( ) {
    $this->classes();
    $this->afbeelding = false;
    $this->SQL->query("selec t * from tblAfbeeldingen where uid='".$this->uid."'");
    if (sizeof($tmp = $this->SQL->result(true,tr ue))) $this->afbeelding = $tmp['afbeelding'];
    }

    [/PHP]

    The form works with following code:

    [HTML]<p align="center" class="tekst">< img class="profile" src="afbeelding en/[[afbeelding]]" style="display:[[img]]" id="afbeelding "/>[/HTML]

    Assigning:

    [PHP]
    $page->assign("afbeel ding",$user->afbeelding); [/PHP]

    And the database fetching is the same.

    What could cause this not to work in IE6? Any suggestions?
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    My guess would be that IE doesn't support some (any) of the HTML/CSS you are using. (It has a nasty habit of doing that)

    To be honest, I wouldn't bother with it. If people insist on using IE6 (or IE in general) they deserve to see broken pages...

    But, I'm still going to move this over to the HTML/CSS forum. Maybe somebody there can spot the problem.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, Zamuel.

      What's the final HTML look like? Are those [[var]] tokens getting replaced by anything, or are they remaining in the end result?

      Comment

      • zamuel
        New Member
        • Sep 2006
        • 42

        #4
        Hello, I have been busy for a while. Yes, the problem was solved accidentally. I had some other pictures (PBGs) on the site and because of that I had to make a fix not to mess up the transparency. Fortunately this fixed also the problem with the main picture.

        Thanks for everyone.

        Comment

        • zamuel
          New Member
          • Sep 2006
          • 42

          #5
          I mean 'PNGs' on the last reply.

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            Glad to hear you got it working! Thanks for posting your solution.

            Good luck with your project, and if you run into any trouble, post back anytime (:

            Comment

            Working...