PDA

View Full Version : Help Editing Image Gallery Script



Nocturnal
June 27th, 2003, 01:36
I'm building a 'site' for my son. All it has is a image gallery.

The problem I'm having is that the frame I have the gallery in is to small to fit the full blown pictures. I need to have it to open the pictures in another frame.

Here you can see what I'm talking about..

http://www.nocturnal-designs.com/joey is the site..
http://www.nocturnal-designs.com/joey/spgm/spgm.php is the main gallery page..
http://www.nocturnal-designs.com/joey/elmo.html is the popup


this is the script that is running..
http://spgm.sourceforge.net/?lg=us&id=download


If someone wants to help me let me know.

Nocturnal
June 27th, 2003, 15:52
please :cry2:

Cagez
June 27th, 2003, 18:15
I think your going to want to open up sgpm.php, go down to line 1458 (search for print PARAM_NAME_FILTER."=$filter".URL_EXTRA_PARAMS."#pic\"$border_class >";) and just add 'target=' in there... I haven't used it before or tried it, but a quick glance looks like thats all you need.

Nocturnal
June 27th, 2003, 20:29
how should I add that? any way I've tried I get errors on that line.

Cagez
June 27th, 2003, 22:24
print PARAM_NAME_FILTER."=$filter".URL_EXTRA_PARAMS."#pic\"$border_class >";

into

print PARAM_NAME_FILTER."=$filter".URL_EXTRA_PARAMS."#pic\"$border_class target=\"yourframe\">";

Try that.

Nocturnal
June 27th, 2003, 22:47
You just made my sons site. Thanks. :D

Cagez
June 27th, 2003, 23:03
Hehe, no problemo :)