function definitions and editing the admin pages

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

Comments

  • 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.)
  • fugeb Member
    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 !
  • The script that defines this page is admin-edit.php
  • fugeb Member
    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
  • No, as before mentioned, it is unwise to modify Zenphoto core scripts.
  • 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.
Sign In or Register to comment.