<div id="left-main-image"> <img src="#" alt="#" /> </div> <div id="right-gallery"> <div class="right-gallery-thumbs"> [!autoGallery?itemchunk=janicesChunk!] </div> </div>
<a href="[+imgpath+]" title="[+title+]"/><img src="[+tnimgpath+]" alt="[+title+]" /></a>
<a href="[+imgpath+]" alt="[+title+"><img src="[+tnpath+]" border="4" hspace="6" vspace="6" width="170" /></a>
<a href="[+imgpath+]" alt="[+title+]" ><img src="[+tnpath+]" alt="[+title+]" /></a>
<a id="[+filename+]" href="[+imgpath+]" rel="lightbox[gallery]" title="[+filename+]">[+filename+]</a>
function generateTN($srcfile, $tnimgpath, $tnwidth = 190, $tnheight = 245, $quality = 100) {
$params['tnpath'] = $basepath . $gallery . '/tn_' . $params['filename'];
They aren’t static values, they’re default values. If you call generateTN($src, $dst); you will get a 100% quality image thats 190x245px. If you call generateTN($src, $dst, 200); you will get a 100% quality image thats 200px wide and it calculates a height thats in proportion to the original image.
Right. But a little bit of additional logic would do the trick.
Yes, the filenames are a bit odd but it was a deliberate choice: most (if not all) OSes will allow filename.flv and filename.jpg to exist in the same folder. In this case, which file has the thumbnail "tn_filename.jpg"? This came up when we were doing things like albums with "title tracks" - you would have "Adrenaline.jpg" as the cover art for the album "Adrenaline" that contains "Adrenaline.mp3". Since the gallery folder is supposed to be a backend thing I wasn’t too concerned about it looking a bit odd.
As for database addition: our server comes with cpanel, that comes with phpMyAdmin, which is a web tool for modifying databases. Maybe I need to release my gallery add/modify code too...