Hey everyone, after seeing how PicasaWeb does their image navigation, I decided to give it a shot in a theme and this is what I came up with:
http://www.trisweb.com/tests/zenphoto-svn/Random/Desktops/ActionCat-1051338286.jpg.htmlHave fun browsing the dynamically loaded images :-) If anyone wants this code, it's freely available in the /themes/testing-js folder from SVN, and it's rather good if I do say so myself.
Okay, back to spending my time on more important things ;-)
Comments
Thanks for the compliments everyone. It's got a long way to go... there needs to be AJAX for getting and submitting comments, as plain JS possibly adds too much to the initial page load... and it needs to be able to load individual images, and work with back/forward in the browser.
The code is fairly simple... it should speak for itself, but if anyone wants explanation I'd be happy to give it. It took a couple late nights, followed each by a morning where everything made much more sense. ;-)
I'm currently integrating some effects, and converting a lot of the grunt work to jQuery. I believe jQuery will replace scriptaculous as Zenphoto's javascript library of choice for many reasons. It'll do sortable images too, and should make some of the things I'm doing in the new admin much easier. :-)
even if it is 20 positions forward.
IMHO this should be changed so user can choose how many photos to preload.
(1,2,5,10,every)
Anyway, Goood Job.
Will `testing-js` work with 1.0.8.2?
The testing-js theme relies on SVN code as of rev. [416], but that should be very stable if you want to use it.
hehe, monster already started calling it tricasa
I like the name!
like "Tricasa: cool new navigation"
or "mr. trisweb rules" :P
It could theoretically be integrated into Wordpress as long as the client supported javascript. It would be a snippet of included code to place the image and navigation buttons, and since that would be standard zenphoto theme template stuff, it would work with any theme.
That's a great idea, perhaps something we can integrate with Zenpress (I'm planning a lot of things for zenpress once we've got it into the main project :-)
Very well done trisweb
When pressing an image from the overview, it will be loaded, but pressing nex will not show the next image inline, but the sec one from the overview (and then the next one etc).
Hope you understand what I mean
ps. use this theme in the next ZP as default
It may not be the default theme, but I'm trying to make it an option for *all* themes. We'll see.
this plugin is excellent! excellent!
`function printImageTitle($editable=false) {
global $_zp_current_image;
if ($editable && zp_loggedin()) {
echo "
echo "initEditableTitle('imageTitleEditable');";
} else {
echo "
}
}`
This ensures that the `getImageTitle()` function works if you're logged in or not (which was the error I ran into above). One problem I still have is that when you first load an image, there's no description.
How do i download the theme it is very stylish and tryed followign your link but was unabel to grab the files fro the theme.