![]() |
|
ThumbsZoom Plugin: I'm working on it - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: ThumbsZoom Plugin: I'm working on it (/thread-10655.html) Pages:
1
2
|
ThumbsZoom Plugin: I'm working on it - bic - 13-12-2012 Hi, I've added a new functionality to my theme, to have a zoom effect on the thumbs (in album and search result pages) when the mouse stops on them. You can see how it works here: This is a theme based mod, but if you like it I can make a plugin to have it working for almost every official theme of zenphoto. ThumbsZoom Plugin: I'm working on it - acrylian - 13-12-2012 A plugin would be better. New plugins are always welcome. ( It will of course not work on mobile/tablet devices as they don't have a "hover" but they can just use the normal "big" view then) See the contributor guidelines about submitting a plugin (see "get involved"). Then we add an entry to the extensions section. PS: You should rename it btw. Those are not "album thumbs" but the "image thumbs". ThumbsZoom Plugin: I'm working on it - bic - 13-12-2012 I am adding an option to the plugin, so that any user can choice if use the ajax engine (default) or add the theme support, if using a custom theme. I have a question: Edit: ThumbsZoom Plugin: I'm working on it - acrylian - 13-12-2012 I changed the topic name. You are detecting the context which will work but you can also simply check for the gallery page by using `if($_zp_gallery_page == ' album.php'). This what we generally do. It will of course not work if anyone uses a special custom theme structure. ThumbsZoom Plugin: I'm working on it - bic - 13-12-2012 Thanks acrylian, I'll use your tip that will work for official themes at least. For the name, don't you think it's better ImgThumbsZoom? ThumbsZoom Plugin: I'm working on it - acrylian - 13-12-2012 Regarding the name I guess you will have some usage instruction. Even with "imgThumbs" zoom you could think it will work with other thumbs. ThumbsZoom Plugin: I'm working on it - bic - 13-12-2012 Ok, then shorter is better, thanks again. ThumbsZoom Plugin: I'm working on it - bic - 14-12-2012 Update: ThumbsZoom Plugin: I'm working on it - acrylian - 14-12-2012 Great, so ready for a extension page entry? If so let us know where to link to I am not overly familiar with all Stopdesign details as it is quite a special theme (as Eff+). But that rule is normally just used to hide text as an image replacement technique. We use the same one for example for our logo on our site. Anyway, it is virutally impossible to support all themes since they can be quite different. People need to do some customizing anyway for a lot of things. Maybe just put a note in your instructions that it may not work with all themes by default. ThumbsZoom Plugin: I'm working on it - bic - 14-12-2012 Yes, it's virtually ready. I just need to publish an instruction and download page on my site to host it, and may be make some optimization for the code, adding also some understandable comments on it. In an optimization perspective, how would you deal with a very few css rules, that are needed for positioning the zoom over the original thumbs? ThumbsZoom Plugin: I'm working on it - acrylian - 14-12-2012 Actually inline css should be avoided but in this case it makes sense. Inline css also has always priority overriding css file rules. Disadvantage is of course that no one can set custom styles but that is probably not needed for this effect. Otherwise the theme_head filter would be the way. ThumbsZoom Plugin: I'm working on it - sbillard - 14-12-2012 I think you should ignore stopdesign. As acrylian has said, it is a very complex, special theme. The developers also find that they cannot support all extensions on that theme as well. As to the thumbnails, they are implemnted as background images which may make your mouse-over stuff impossible. It is actually the "frame" that is the image. ThumbsZoom Plugin: I'm working on it - bic - 14-12-2012 Actually it could be possible to add the support for Stopdesign, adding the proper selector in js file, but then is not easy to deal with the text-indent rule. The plugin puts the zoomed image inside the tag [b]a[/b], to have the same link of the corresponding thumb to image page, but the text-indent rule moves the zoomed image out of the screen. I was also trying to add support for translation, using gettext_pl() function, but I was not able to get it work. ThumbsZoom Plugin: I'm working on it - acrylian - 14-12-2012 Thanks for the note! The translation tutorial indeed is missing that info. ThumbsZoom Plugin: I'm working on it - bic - 14-12-2012 Eureka! ThumbsZoom Plugin: I'm working on it - acrylian - 15-12-2012 That actually was there once for sure! Somehow my last edit has killed the formatting of the example completely, too. Fixed now. Thanks for letting us know again. ThumbsZoom Plugin: I'm working on it - bic - 15-12-2012 You are welcome acrylian, I know how hard are you working on this project, with a very few people constantly engaged in the development. Any time I can give a little help I'm really very glad. ThumbsZoom Plugin: I'm working on it - acrylian - 15-12-2012 Thanks. Let us know in case you find anything more or unclear descriptions (hopefully not that much...;-)). ThumbsZoom Plugin: I'm working on it - bic - 17-12-2012 I've added the support for Stopdesign, quite tricky for several reasons. Of course, as sbillard said, the mouse over effect can't be associated with the images (because they are backgrounds) but with their container. Anyway it's not a big difference for users I suppose. Now I'm writing the documentation and download page on my site, but I'm having problems with the download manager (download list plugin) of Zenphoto. For some reason the downloaded file provided by PrintDownloadLink function is corrupted, while the same file, downloaded via a direct link in the address bar of the browser, is ok. I've tried .zip and .tar files, and also .jpg and .pdf files to make a check. Any idea about the reason? ThumbsZoom Plugin: I'm working on it - bic - 17-12-2012 Now comes the most strange think I discovered: I've downloaded 2 small zip files, one with the link provided by Then I've opened both files with a text editor (notepad++) and, surprise, the first file as a blank line at the very beginning, that the other (working) file has not. More: once I deleted the blank line in notepad++ and saved the corrupted file, it was no more corrupted! |