• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP/Javascript Help: Open new window, size based on EXIF data

Yep, looked at that before I posted, as well as some other google results, and all it yeilded was a "😕 ... I think I need AT's help :-\ "
 
So I'm trying to figure it out, and I've added this piece of code, but it generates a parse error on the second to last line.

Any help?
 
Change the second to last line to this:
$imgsizes = "NewWindow(this.href,'viewer','$imgwidth','$imgheight','yes');";

You had extra double quotes in there for some reason. That ends the quoted string. Another way to do it would be to use the concatenation operator (.) before and after the variables in that quoted string (the way you had it)
 
Back
Top