ZenphotoCMS Forum
function definitions and editing the admin pages - 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: function definitions and editing the admin pages (/thread-4929.html)



function definitions and editing the admin pages - fugeb - 2009-03-29

Hi guys!

I need to add a couple of fields to the admin edit album page, where is the format of this page defined ?

Also, where is the getAlbumCustomData() function defined?

Thanks !

  • Fuge B



function definitions and editing the admin pages - sbillard - 2009-03-29

template-functions.php as are most of these functions.

But why are you asking? Do you intend to change the function? If so, I would strongly advise against it. You will be forever finding your changes reverted when a new version of zenphoto is released. And, of course, it should be entirely unnecessary to change this function. (Specially since it has nothing to do with showing fields on the admin pages.)




function definitions and editing the admin pages - fugeb - 2009-03-30

Hi !

I am new to php and wanted to study the ways these functions query the mysql database and pass on the values, that is why I wanted to know where they were defined.

Also, as I asked earlier, how can I change the format of the admin album edit page? I'm not sure where this template is defined.

Thanks !




function definitions and editing the admin pages - sbillard - 2009-03-30

The script that defines this page is admin-edit.php




function definitions and editing the admin pages - fugeb - 2009-03-30

Thanks Stephen !

Is there a way for me to modify the admin pages while also keeping zenphoto compatible with future updates ? i.e. will this page have to be modified each time I update zenphoto ?

  • Fuge B



function definitions and editing the admin pages - sbillard - 2009-03-30

No, as before mentioned, it is unwise to modify Zenphoto core scripts.




function definitions and editing the admin pages - sbillard - 2009-03-30

However, maybe there is a way to do what you wish.

your theme can define its own set of options. These are displayed in the custom options portion of the option/themes tab. Why not just make these things options of your theme? Probably they are not applicable elsewhere anyway.