Member
Member
fugeb   2009-03-29, 19:54
#1

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
Member
Member
sbillard   2009-03-29, 23:41
#2

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.)

Member
Member
fugeb   2009-03-30, 22:01
#3

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 !

Member
Member
sbillard   2009-03-30, 22:14
#4

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

Member
Member
fugeb   2009-03-30, 22:28
#5

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
Member
Member
sbillard   2009-03-30, 23:18
#6

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

Member
Member
sbillard   2009-03-30, 23:20
#7

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.