Default page format when viewing images


#1

Ok,
Sorry for the long title but I wanted to be as clear as possible.

I have a number of thumbnails images that link to a full size image. When a user clicks the thumbnail they are taken to that full size image, this image is in a plain white background window. What I want to do is have a standard background colour and header image without having to create actual html pages for each image?

I’ve search hotscripts and google but I’m not even sure what the keywords should be! It’s not a POTD script because the images are in lots of WordPress posts.

An example of what I mean can be seen here:
www.planetdoom.com

By clicking on the POTD image it opens almost eactly how I want it to. I realise that this seems to be accomplished with asp but is there another way?

An example of my page can be found here:
http://www.planetphillip.com/posts/cern-research-laboratory/

Hope that makes sense.

TIA

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#2

It’s a piece of cake.

Sure, it can be done with anything that does CGI, such as Perl, PHP, etc.

Let me know if you want me to show you how to do it in Perl.

:cool: Perl / MySQL / HTML+CSS


#3

In reply to:
“Let me know if you want me to show you how to do it in Perl.”

Yes, please, although I might be happier knowing the php version. Can you,or somebody, point me in the right direction for that as well.

TIA

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters


#4

Here is an example in Perl:

http://atropos.openvein.org/web/dreamhost/perl/pageview.pl?image=2612492.jpg

Follow the link at the bottom to get the source code.

:cool: Perl / MySQL / HTML+CSS


#5

Thank you. I eventually got it working. It seems that the .pl page has to be in the same directory as the images. Is that correct or have I been lucky?

I’d like to use php because my header images use a random script that I would like to continue to use. Even just a few key words regarding what to search for would be great.

Thanks again.

Phillip
http://www.planetphillip.com/
Commentary and Analysis of Sci-Fi Single Player First Person Shooters