▼  Site Navigation Main Articles News Search  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc Links to Webcomics Bible Quotes About Older Musings
site version 7.3
Srcipts I use
written by: admin


Date Written: 8/8/09 Last Updated: 8/17/13

On this site I use programs from other sites, mostly from dynamic drive.  I use

Walter Zorn Tooltips
PHP Photo Album script v2.11
Slashdot Menu
Virtual Pagination script v2.0
http://wordpress.org/
http://www.phpbb.com/
Ajax Pagination version 1.2.2
Tab Content Script version 2.2
Dock Content script version was last updated 8/23/06, which I will label as 1.0. retired


Photo Album script v2.11 Edits

Add the following line

desc=(desc.indexOf('%filename')!=–1)? '
/images/' + albumvar.images[i][1] : desc
after
var desc=(desc && desc!="")? '
' + desc.replace(/(%i)|(%d)|(%s)/g, function(m){
return (m=="%i")? i+1 : (m=="%d")? albumvar.images[i][2] : ""
}) : ''

Also add the following:
new phpimagealbum({
albumvar: myvacation, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [3,2],
sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
autodesc: "%filename", //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){
thumbnailviewer.loadimage(thumbref.src, "fit2screen")
}
})

The script looks pretty much the way I want it to now.



Replace:

if (setting.sortby[0]=="file") //sort by filename (asc)
this.albumvar.images.sort(function(a,b){return a[1].localeCompare(b[1])})
with:
if (setting.sortby[0]=="file") //sort by filename (asc)
this.albumvar.images.sort(function(a, b){var x = a[1].toLowerCase(), y = b[1].toLowerCase(); return x > y? 1 : x < y? –1 : a[1] > b[1]? 1 : –1;});
ref

TAGS: website
copyright 2005–2024