![]() |
|
I'm total noob trying to learn :-) - 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: I'm total noob trying to learn :-) (/thread-12358.html) |
I'm total noob trying to learn :-) - OldskoolOrion - 08-11-2015 I'm totally new to php, but ages ago back when TC2.0 and Pascal where the new hot thing, I actually coded as my job - just moved on to other mainly security & management related functions, for which basic bash/cli scripting sufficed Now I'm preparing to start writing a few silly simple plugins just for fun, since I really like ZenPhoto and I want to really learn the innards and perhaps at some point come out with something cool.. or actually useable lol. So, first practice.. I was thinking of writing a plugin which displays a 2nd image right beneath or next to the actual image that was requested. Of course based on the assumption that i have f.e. an array of known pages, and know which to trigger on and display what (also on site) image next to it or under it.. more like a book idea.. if page 2 is clicked, I want page 3 next to it, but instead of text.. we deal with images. Shouldn't be too hard right ? I think I'm on the right track with filters.. but there's so many ! Who can point me in the correct direction ? Or hell.. if there's a simple example which already does this, to learn from : please share. Thanks ! I'm total noob trying to learn :-) - acrylian - 08-11-2015 We can't guide you step by step. But if you want the next and/or previous image as thumbs functions for that already exist: The Garland theme uses these for example. You find an overview about all available functions, classes and methods here: Some quick links: For more advanced coding there is the object model base but that is maybe something for later. I'm total noob trying to learn :-) - OldskoolOrion - 08-11-2015 thank you for the pointers.. I'm getting there.. I decided on just trying functions, see what they do, and adept accordingly I'm total noob trying to learn :-) - acrylian - 08-11-2015 Did you already find the theming tutorial? If not you should start with that: I'm total noob trying to learn :-) - OldskoolOrion - 09-11-2015 yes.. but in there it's easy.. just editing image.php : i'm not looking to become a themer : i lack design skills, next to being colourblind I'm total noob trying to learn :-) - acrylian - 09-11-2015 Any customization, design nor not, is theming. You have to add many plugins respectively their functions to a theme to be able to use them. So knowing what theme page does what is fundamental basics ;-) I'm total noob trying to learn :-) - OldskoolOrion - 11-11-2015 You are (of course) right.. walking along the code, I learned a great many of things already. I'm actually getting it, and already wrote some test plugins, that actually did what I intended :-) I'm total noob trying to learn :-) - fretzl - 11-11-2015 Great! A new developer ;-) I'm total noob trying to learn :-) - acrylian - 11-11-2015 Any third party plugin is welcome. We have a quick guide how to best provide them to the community. http://www.zenphoto.org/news/general-contributor-guidelines#providing-themes-and-plugins I'm total noob trying to learn :-) - OldskoolOrion - 11-11-2015 the moment I come up with something that is actually useful and not merely a test, which makes absolutely no sense, I will of course I'm total noob trying to learn :-) - acrylian - 11-11-2015 Of course, just for you to know about when that is ready ;-) |