![]() |
|
Hello world macro - 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: Hello world macro (/thread-13947.html) |
Hello world macro - ctdlg - 16-06-2024 I try to understand Zenphotos macros. Following this page I get a blank page because of line and with Using [ HELLOWORLD ] displays in red 1 parameter is missing, but page is fully displayed. [ HELLOWORLD 'My' ] does not work too. Hello world macro - acrylian - 16-06-2024 Without the full code it will be hard to tell. What does the debuglog say? (that is the first you have to look!). If you have the spaces before/after the brackets it is probably just that. Those are only there in the doc - as noted - to make sure ZP does not exectute them. So I referenced it on the other topic but this is a quite simple macro plugin you also can use as a guide: Hello world macro - ctdlg - 16-06-2024 My php file is a copy of code found here : [/code] Your macros are ok : Hello world macro - acrylian - 17-06-2024 The code looks actually correct, althouth the macro class probably should be "function" instead of "expression". Thanks you just found an error. There was a globla declaration missing. Should be fixed in the 1.6.4 support build. 1.6.4 will probably be release later today. |