TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Can't get this to work.

Page: 1 Reply
Jun 14th 2003#108457 Report
Member since: Sep 16th 2002
Posts: 1876
Ok, I've been trying to get this php pop-up thing to work.

I originally found it here: http://www.regretless.com/scripts/scripts.php#dodosnmimage

So far I have this in the nmimage.php file:

[PHP]
## The pop up function for dodo's nmimage popup
function popup($nmdir, $title, $pic, $thumbnail, $des, $fmode = "false") {
global $target;
$target++;

$size = GetImageSize($pic);
$width = $size[0];
$height = $size[1];
if($thumbnail != "" && $thumbnail != "none") {
$size = GetImageSize($thumbnail);
$twidth = $size[0];
$theight = $size[1];
}

// get function mode
if($fmode != "false") {
$fmode = explode(",", $fmode);
$mode = $fmode[0];
}
print "
print "nmimage.php?z=$dir$pic&width=$width&height=$height&title=$title','$target','width=$width,height=$height,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=0,top=0,screenx=50,screeny=50');return false\">";
if($thumbnail != "" && $thumbnail != "none") {
if($mode == "highlight") {
if(!$fmode[1])
$fmode[1] = "black";
if(!$fmode[2])
$fmode[2] = "white";
print "
";
} elseif($mode == "shake") {
print "";
} elseif($mode == "ghighlight") {
if(!$fmode[1])
$fmode[1] = 50;
print "";
} else {
print "";
}
} else {
print "$des";
}
} // end of function
?>
[/PHP]

And I have this in my html doc

[PHP]


Untitled Document




## call the function
popup("F:\blah\blah\nmimage.php /", "Testing EyeGlobe", "F:\blah\blah\image.gif", "F:\blah\blah\imagethumb.gif", "testing this", "none");
?>



[/PHP]

I already followed the directions on the site over and over again. I'm sure that all my directories are correct.

Any help?
Reply with Quote Reply
Jun 15th 2003#108474 Report
Member since: Jun 9th 2003
Posts: 8
Can you please post the error that you're recieving? That'd help a lot.
Reply with Quote Reply
Jun 15th 2003#108475 Report
Member since: Sep 16th 2002
Posts: 1876
It's just a white screen when I open it with explorer.
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum