zen as a plugin

Ok I am confussed. I need to know where to place the plugin code in the header or before the header. I have tried both places and the body as well in a desperate attempt. I have included the basic loop as well to print the albums. I am just a confused as to how to include this code. I know that this is not easy or recomended to do but I do need to include it in my current CMS (Etomite). Any help will be greatly appreciated.

Thanks,

Spencer

Comments

  • Are you refering to http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin?

    It goes before the header.
  • sevans Member
    Ok so I have it in the right place no errors are thrown but nothing prints on the page. Am I suppose to use something than the standard loop to print the albums like in the index file of zen photo? I appreciate your prompt reply on the last question. Sorry for the additional newbie questions.

    thanks,

    Spencer
  • You need to put in any code you want zenphoto to do. You really have not said what you want to accomplish. The example in the link above is one idea. Expand on it to meet your needs.
  • sevans Member
    Yeah basicly I just want the default template embeded in my page. So I assumed pulling the loop would atleast print the list of albums but it did not. Is that the wrong assumption or do I need to dig further just want to make sure I am headed down the right path before spending hours and hours beating my head against the wall.

    Thannks,

    Spencer
  • There are a number of things setup in the environment before a theme's index or album page is created. It is probably not practica for you to replicate all that (although it is certainly possible.)

    You would need to replicate the relevant code from the zenphoto root index.php and from the theme index.php. Even that may not succeed because you will have to deal with folder pathing.
Sign In or Register to comment.