16
HTML & templates / Re: HELP in need of an image gallery!
« on: March 30, 2008, 09:19:45 AM »
i have a idea to make image to show in HFS. but it need jalbum to create miniature.
for example
your photo folder name "PHOTO"
use jalbum to create miniature, and folder name "min"
now we got two folder
then add these folder on HFS and make the "real folder"
like this
and we need to make a "new empty folder" before the "min" and name "min"
this one is the fake "min" folder.
then change name of the real "min" folder to "PHOTO" (the real picture folder name)
now like this
at last add some code in the fileTPL
change code in [file.jpg]
now file *.jpg icon will try to get file under http://localhost/min/PHOTO/thumbs/
if nothing there then get the default icon "item-icon".
this one is for beta version, ex:
for example
your photo folder name "PHOTO"
use jalbum to create miniature, and folder name "min"
now we got two folder
Code: [Select]
D:\WEB\PHOTO\ <<< this one is the real picture
D:\WEB\PHOTO\min\ <<< this one is miniature
then add these folder on HFS and make the "real folder"
like this
Code: [Select]
http://localhost/PHOTO/
http://localhost/min/
and we need to make a "new empty folder" before the "min" and name "min"
this one is the fake "min" folder.
Code: [Select]
http://localhost/PHOTO/
http://localhost/min/min/
Code: [Select]
http://localhost/min/
is empty folderCode: [Select]
http://localhost/min/min/
is D:\WEB\PHOTO\min\then change name of the real "min" folder to "PHOTO" (the real picture folder name)
now like this
Code: [Select]
http://localhost/PHOTO/
http://localhost/min/PHOTO/
Code: [Select]
http://localhost/min/
is empty folderCode: [Select]
http://localhost/min/PHOTO/
is D:\WEB\PHOTO\min\at last add some code in the fileTPL
change code in [file.jpg]
Code: [Select]
<img src='/~img_lock'>
toCode: [Select]
<img src="http://%host%/min%encoded-folder%thumbs/%item-url%" onerror="if(!this.times){this.times=1;};if(this.times<=10){document.title=this.times;src='%item-icon%';this.times++;}else{}" border="0"/>
Code: [Select]
http://%host%/min%encoded-folder%thumbs/%item-url%
the "min" is the "empty folder" , "thumbs" is create by jalbum program.now file *.jpg icon will try to get file under http://localhost/min/PHOTO/thumbs/
if nothing there then get the default icon "item-icon".
this one is for beta version, ex:
Code: [Select]
[file.jpg]
<tr><td>
{.if|{.get|is new.}|<span class=flag> NEW </span>.}
{.if not|{.get|can access.}|<img src='/~img_lock'>.}
<a href="%item-url%"><img src="http://%host%/min%encoded-folder%thumbs/%item-url%" onerror="if(!this.times){this.times=1;};if(this.times<=10){document.title=this.times;src='%item-icon%';this.times++;}else{}" border="0"/> %item-name%</a>
{.if| {.?search.} |{:<div class=item-folder>{.!item folder.} <a href="%item-folder%">%item-folder%</div>:} .}</div>
<td align=right>%item-size%<td align=right>%item-modified%<td align=right>%item-dl-count%{.$item end.}