I need a thumbnail!
They can then click on the thumbnail to get the full size picture.
http://www.boatcrafts.net/how_to/aluminum.php
I am right now writing a "how to"
These same pictures will be used elsewhere on the website.
It does not make any sense to copy and paste the same picture all over the website.
a simple cpmfetch call in any of the places the picture is required.
Later, I will be looking to do the same thing in phpbb.
Baby steps right now......
Brad
If you are just going to the full size photo from the thumbnail, it makes no sense to use cpmfetch.
1) Complexity in the pages (easier for something to go wrong)
2) Inefficent, as fast as CpmFetch it, it is slower than a direct image tag
3) Page becomes dependent on your database and CPG installation
Like Phill104 said, an IMG tag does not copy the image everywhere, it simply points to it.
For example, this image is my gallery
http://www.fistfullofcode.com/photos//albums/2004_12_06/thumb_bo_img_1550.jpg as PID 522.
Now I can write a bunch of cpmfetch code to do this, at which time:
* I need to execute PHP code to run it
* cpmfetch loads all the libraries
* cpmfetch parses your request
* cpmfetch contacts the database
* cpmfetch queries the database for 522
* cpmfetch does some file searching to determine what to feed back
* cpmfetch builds a table
* cpmfetch displays it
* cpmfetch closes the db connection.
Or, as Phil and I are suggesting:
<a href="
http://www.fistfullofcode.com/photos/albums/2004_12_06/bo_img_1550.jpg" target="_new">
<img src="
http://www.fistfullofcode.com/photos/albums/2004_12_06/thumb_bo_img_1550.jpg" />
</a>
Which goes and gets the thumbnail, and if you click on it, goes and gets your large image.
Only one copy of the thumbnail exists, and one copy of the large image. there is no loss of security here, if you think there is, let me know and I will either conceed the point, or tell you where you are wrong.