|
Posted by PhilM on 07/30/05 01:44
"neil lewis" <gibsonsphoto@ntlworld.com> wrote in message
news:YbwGe.4891$hc4.3742@newsfe6-win.ntli.net...
> I'm nearing the end of developing a new website which uses PHP/MySQL to
> handle user sessions and generate image galleries on the fly for voting
> purposes.
>
> While everything works fine in Moz/FF/Konq, there are a couple of issues
> with IE (no kidding!) and Opera which I'm having problems sorting out.
> First, the site is frame-based and although Moz/FF/Konq/IE don't show
> the frame borders 'cause I've made them zero, Opera does show thin grey
> outlines on all frames. IE shows some white lines, but not on all frames.
>
> Second, and much more important, although all browsers show the gallery
> contents when the user is not logged in, as soon as the user logs in,
> IE/Opera no longer generate the thumbnails.
>
> To ensure that only logged in users can vote, the thumbnail script
> detects whether the user is logged in and generates the links only if
> they are. The links include GET data, passed to the voting script
>
> I think I've tied the problem down to a specific line of code, but I
> can't actually see anything wrong with it. Remember, it works fine in
> proper browsers!
>
> NOTES on the code snippet:
> 1) function clickable returns true if the user is logged in.
> 2) $gallery is the URL of the gallery folder in use and is set from GET
> data passed to the script.
>
[snipped]
> // Up to this point, everything works in IE/Opera.
> // If the variable $linkto is simply echoed to the page, they render
> // a table of link addresses with appended GET data.
>
> echo "<a href=\" $linkto \"";
is the above correct?, or should it be
echo "<a href=\" $linkto \">";
> }
> // Add the image
> echo "<img width=$width height=$height src=\"" . $picUrl . "\" >";
> // End the hyperlink if the user is logged in
> if (clickable())
> echo "</a>";
what about braces for above??
if (clickable()){
echo "</a>";
}
> // Complete the item
> echo "</TD> \n";
> $column++;
> if ($column == 4)
> {
> echo "</TR> \n";
> $column = 0;
> }
> }
> ?>
then again, I may simply be showing my own ineptitude ;)
[Back to original message]
|