Hello;
I believe you want to get a direct link to the picture, not to details... Am I right?
Then open includes/functions.php and find:
function get_media_code($media_file_name, $image_id = 0, $cat_id = 0, $image_name = "", $mode = "", $show_link = 0, $detailed_view = 0) {
global $site_template, $site_sess, $lang, $mode;
Replace by:
function get_media_code($media_file_name, $image_id = 0, $cat_id = 0, $image_name = "", $mode = "", $show_link = 0, $detailed_view = 0) {
global $site_template, $site_sess, $lang, $mode, $script_url;
About 60 lines behind, find this line:
"image_name" => $image_name,
Insert after this one:
"image_path" => $site_sess->url($script_url.(str_replace("./", "/",$media_src))),
Now, in templates/your_template/thumbnail_bit.html, you can add your code:
<a href="{image_path}">{image_name}</a>
(Tested and working in version 1.7.4)