![]() |
|
Sane integration of tricasa in zenphoto. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Sane integration of tricasa in zenphoto. (/thread-1850.html) Pages:
1
2
|
Sane integration of tricasa in zenphoto. - ulfben - 2007-11-25 I upgraded to trunk yesterday and have been fiddling with it for a good number of hours now. I believe that the most important step for zenphoto now, is to make image flipping smooth (like slim/grey/light/dark/thick-box, simpleviewer or the tricasa hack) by default. By default I mean that it must integrate nicely into the zenphoto structure of Thus I integrated tricasa in the Default theme to see what needs to be done. [b]This works perfectly well: [/b] [b]These are the problems (and bugs): [/b] [list] []Tricasa always flips from the first image no matter what image you actually start at. [*]The image container size is static, so smaller images won't be centered. I don't know if fiddling with the URL is within the powers of JS - but I could live without it anyway. So... how difficult would this be to do? Is it possible at all? My gallery offers a fairly big sample set to see how tricasa behaves. You're free to browse around of course, but here's a few usefull links to save you time: Sane integration of tricasa in zenphoto. - ulfben - 2007-11-25 Here's a fix for issue #2; that tricasa isn't aware of where we enter an album. Quote:function preLoadLores() {
( Sane integration of tricasa in zenphoto. - ulfben - 2007-11-26 I've added support for reading/writing comments and keeping the EXIF-data in sync. You can download my Tricasa enabled default theme (v. 0.1). Just visit my gallery for a demo. You'll have to replace one of zenphotos core files (functions-controller.php) - I added some logic to allow you to post a comment to any image ID, not just the $zp_current_image. This is of course necessary for adding comments to the correct image. (I'm hoping this "patch" might get accepted into core proper?) The theme is only modified in two ways: it's made to allow larger default image dimensions (800x600), and the image.php it tricasified. (oh, and I believe I removed the subalbum RSS-links, since it doesn't work properly anyway). [b]Still left to do:[/b] [list] [list] Sane integration of tricasa in zenphoto. - aitf311 - 2007-11-26 Looking great! Hope to see you finish it. Your #2 fix is awesome, thanks a ton. I've updated the version on the themes page to reflect your change. Sane integration of tricasa in zenphoto. - ulfben - 2008-04-03 Just a [i]slight[/i] update to this hack. You can grab the tricasa_default 0.2 here. Once again: Note: Sane integration of tricasa in zenphoto. - titou - 2008-04-04 for issue #1, you can use in javascript: With this, you will be able to change the url or to reload the good page. Sane integration of tricasa in zenphoto. - AlexWilson - 2008-04-04 Mostly the same issues I ran into with my Galleria/jCarousel theme: I disable paging just by setting my image and album limits per page to be very high. I opted to not use image.php for the problems with the URLs for SEO and bookmarking and such -- the image display is done on album.php, and it use document.location.hash to change the URL for the displayed image. Sane integration of tricasa in zenphoto. - ulfben - 2008-04-04 Thanks for the feedback, both of you. Using the location.hash seems to be difficult; something in the ajax-library (or otherwhere) keeps reseting in every time I flip an image. I did however turn the end node of the bread crumb navigation to a link that's kept in sync with the tricasa-browsing; thus giving users atleast one way to find a link. tricasa_default 0.2.1 Sane integration of tricasa in zenphoto. - jssmadtown - 2008-04-04 Perhaps this is known already, if "allow comments" is toggled off, then the images don't advance with the title. Gets stuck on the first image selected from the thumbnail page, while the title advances back/forth just fine. Sane integration of tricasa in zenphoto. - ulfben - 2008-04-04 Good catch! I've updated 0.2.1 with a fix. Now, if anyone could tell me what the hell is going on in IE when flipping between images, I'd be very happy. Note though that IE centers images nicely. Let me know if you can get Firefox to behave as well. Sane integration of tricasa in zenphoto. - jssmadtown - 2008-04-04 Nice quick fix! How hard is it to make the full image appear clicking on its large image, as in the default theme? Thanks! Sane integration of tricasa in zenphoto. - ulfben - 2008-04-05 Done. (though not thickboxed, that turned out to be tricky indeed) tricasa_default 0.2.2 Sane integration of tricasa in zenphoto. - jssmadtown - 2008-04-05 So, when flipping through, when I click on an image I get from the brower (Firefox & Safari): `NOT FOUND The requested URL /albums/.../IMG.jpg.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.` The desired full image is IMG.jpg, so the .php isn't getting stripped. Thanks! Sane integration of tricasa in zenphoto. - jssmadtown - 2008-04-05 ulfben, Although default is already very clean, I like the even more streamlined approach you've taken (and of course the tricasa speed). Of the elements left out (RSS, etc.), I miss the "image info" the most. Is this hard to maintain? Could be placed somewhere else, e.g., inline to the right of image if need be. Also, I don't use comments much, but I notice that the comment form captcha isn't working? You probably know this Thanks! Sane integration of tricasa in zenphoto. - trisweb - 2008-04-05 Sweet, thanks for working on this. The URLs need to work like this: When on an image page, instead of linking to So, what would be required is some sort of new rewrite rule for Then you'll also have to update the image links in the album to use the All in all not too difficult, and that should give you reliable current image, and even stuff like bookmarking and sending links should work just fine. Sane integration of tricasa in zenphoto. - trisweb - 2008-04-05 BTW - Even more ideal (and theoretically possible) would be to make this generic for any theme. So, it could just be an option in the admin and would "just work" Sane integration of tricasa in zenphoto. - ulfben - 2008-04-05 Quote:The desired full image is IMG.jpg, so the .php isn't getting stripped. Quote:I miss the "image info" [...] The reason for turning it off is performance. Every image has EXIF-fields, and every image's data gets loaded (in full mark up form) when you enter an album (image.php). Considering how useless that data is for the vast amount of visitors, it's just rubbish to keep it. YMMV of course. Quote:the comment form captcha isn't working Sane integration of tricasa in zenphoto. - sbillard - 2008-04-05 The .php append is from the option Sane integration of tricasa in zenphoto. - ulfben - 2008-04-05 (soddit, blockquote is broken) Tris - you're the one who truly understand the CSS witchcraft doing the image-flipping. Could you please take a look at my gallery in IE and see if you can find a solution to the weird behaviour when loading new images? (eg: it seems to display the low-rez image two steps back or something, while loading the new one). Also: do you know how to have the images centered in Firefox like they are in IE? Sane integration of tricasa in zenphoto. - jssmadtown - 2008-04-05 Ok, I now "understand" the origin of the .php suffix (I wouldn't qualify as a php/apache novice, even...) Still, I suspect a bug. I turned off mod_rewrite. I now get the error
This is quite puzzling, since I don't have this directory structure. I have /gallery/index.php and /gallery/albums/ etc., where ZP is installed on my "gallery" directory (name chosen by me). P.S. There's a suspicious line Sorry, not quite familiar enough with this yet to track back... |