![]() |
|
How to use codeblocks? - 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: How to use codeblocks? (/thread-9619.html) |
How to use codeblocks? - janwessel - 2012-02-11 I am new to Zenphoto, so plz forgive me if I ask the wrong question. I have installed Zenphoto (versionZenphoto Setup v1.4.1.6[8326]), and using the Default theme. As I understood I should be able to use codeblocks (codeblock1) for that. Do I have to put HTML code, or PHP code? Regards, Jan How to use codeblocks? - acrylian - 2012-02-11 Note that 1.4.1.6 is not the current version. Regardless of that, you can enter basically enter any kind of code within a code block, so html or PHP or even javascript. If code blocks work and where they are output depends on how the theme you are using is setup. If your theme does not support code blocks at all or does use them in not fitting places you need to modify the theme used. Info on theming on the tutorial of the same name, code blocks are documented on the functions documentation: How to use codeblocks? - sbillard - 2012-02-11 Quote:Some of the standard themes do have at least partly support (you can see that in the source of the theme How to use codeblocks? - janwessel - 2012-02-14 Thanks for the quick replies, sorry for my late response. How to use codeblocks? - janwessel - 2012-02-17 Hello all, As follow up I have done the following:
This all, because on my photo site there is picture of my father (who died some years ago) and I wanted to play an MP3 file when showing this image. Thanks for the software and the support-forum. Regard Jan Wessel How to use codeblocks? - sbillard - 2012-02-18 Glad all this worked. But I think you did miss a small point of my post. If you did leave all this in the themes/default folder then when you install a new version of Zenphoto it will overrite your work. Instead make a new folder with the files with a different name. Then when you update Zenphoto your changes will not be touched. You can also at that point compare your theme with the current version of the default theme to see what changes have happened that you might want to apply to your version. How to use codeblocks? - janwessel - 2012-02-18 You are so right. I am blushing, cause as a configuration manager I should have realized from the beginning... :-) Thanks for pointing this out. Regards, Jan How to use codeblocks? - Wete - 2012-02-18 Maybe you wanna edit your theme by using a tool like Notepad++. In this case it can be impossible to edit the files because of the owner - it's set to your php instance, because the ZenPhoto script generated the new files. Then it's better to download the default theme folder (or which theme you want to edit) via ftp and upload it in a new folder. Then you can edit the files without using the ZenPhoto built-in editor. The title of your new theme, description and so on are set in Wete How to use codeblocks? - acrylian - 2012-02-18 On Mac I recommend the free TextWrangler btw. How to use codeblocks? - janwessel - 2012-02-18 @Wete @acrylian Further, I like to do my playing around with the code and settings locally. How to use codeblocks? - acrylian - 2012-02-18 Komodo Edit being an IDE is a little more than just an text editor. But surely fitting (I use Eclipse as an IDE). For the quick "edit in-between" especially for html and css it is a little too huge at times. How to use codeblocks? - janwessel - 2012-02-18 I have installed only the free open source editor Komodo Edit It' big brother is the Komodo IDE 7. I will see how I like it, and then maybe switch to something else. How to use codeblocks? - acrylian - 2012-02-18 Right, confused it with the IDE. There are numerous good tools…:-) |