Step four:
Open /templates/<your_template>/details.html
Replace
{image}
With:
<a href="./data/media/{cat_id}/{thumbnail_file_name}" id="imagine" title="{image_name}"><img src="./data/media/{cat_id}/{thumbnail_file_name}" {imag_size} /></a>
Wouldn't that work better in the /templates/<your_template>/media/<your file type.html> better?
Not all files will be images. Some will be videos or music and may have a different script to view them, ala media players.
EDIT:
Also, you might not need to do all of that if you already use
this. IF you have that already MODDED into your 4Images, then this is all you need to do:
1. Install fancybox (follow their instructions)
1a. When they tell you to place the script info above the /head tag, go to your /templates/<your_template>/header.html and do it there.
2 Open /templates/<your_template>/media/<your file type.html>
FIND, depending on what set-up you have to view the image:
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
ADD or REPLACE with this-
<a id="single_image" href="./data/media/{cat_id}/big/{image_file_name}" title="{image_name}"><img src="{media_src}" border="0" alt="{image_name}"{width_height} /></a>
Yup. It works like that...
CLICK HERE