now I'm trying to do something else, for the past two days I tried but i can't get it working :
I want to put the actual filenames of the pictures under the thumbnails. I've messed up with autodesc, thumbfilename and even the .js but no luck. Not sure someone will help me
here is part of working code so far :
Code:
<script type="text/javascript">
new phpimagealbum({
albumvar: myvacation, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [4,50],
sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
// autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
// showsourceorder: true, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
var test=thumbfilename
test=test.replace(".jpg","")
var myurl=" channel.php?n="+test
window.open(myurl, '_self')
}
})
</script>
Thanks
Bookmarks