Member
Member
gekamas   2008-04-24, 02:36
#1

I am looking for some basic guidance on how to incorporate Zenphoto (which looks fantastic, btw) into my webtemplate (stick it between the header and the footer).
I have tried to find this in the forums, but I couldn't. So pardon me if it has been answered already. By way of background, last time I designed anything in html/asp/vb/js was in 2003. It looks like things changed from tables to div's, etc. (What I am trying to say I understand the basics but not php).

So here are the questions:

  1. Do I need to create my own webpage and then insert the commands from index.php?
  2. Or do I need to modify index.php? If so, will I have to have PHP spit the header and the fooer or I can do plain html?
  3. What about the index.php page in the themes/default folder? (using default theme) Is that the one I need modify instead?

All comments are GREATLY appreciated!

Member
Member
gekamas   2008-04-24, 03:22
#2

Ok after some research, I realize that "themes" and "theming" is the answer. So whoever is looking to incorporate Zenphoto into his or her own website should check those sections/topics out. It may seem obvious for some of you, but for the rest of the folks out there, theming means actually making themes for others for fun or profit.

Check this link out: http://www.infobulles.ch/syndication/ZenPhoto_Gallery/2006/09/15/How_to_Make_a_ZenPhoto_Theme__updated_

Administrator
Administrator
acrylian   2008-04-24, 13:08
#3

That link is old and outdated! The easiest is to look at the included default theme. If you have some knowledge about web design, the basic elements are not that hard to find since all functions sort of named after what they do. Further information about theme functions please see here: www.zenphoto.org/documentation/index.html

Member
Member
Pierrot   2008-04-26, 03:00
#4

Have look at my site. If what I've done (called up the header and footer) is what you are talking about let me know and I'll let you know how I did it.

Member
Member
sevenupcan   2008-04-26, 09:11
#5

Pierrot, did you use a common header/footer across your site? and if so how do you do this? Thanks.

Administrator
Administrator
acrylian   2008-04-26, 15:58
#6

Actually that is really easy, just make a php file called header.php with the general header code and then call it with ``in you theme (with the right path of course).

Member
Member
Pierrot   2008-04-26, 16:28
#7

I'm not an expert but I can tell you what I did...

Primarily, I used this tutorial and then made the changes to the css file. I initially thought that the Zenphoto part of my site would still be under the rule of the it's theme css. This wasn't the case though - and every change I wanted to make in my gallery had to be made through my Wordpress theme css. I don't know why this was the case or whether it matters (Acrylian, perhaps you can answer that?) but it worked so I went with it.

Ultimately, what this meant was that I had to move some chunks of my ZP css to my WP file. I'm so new to this and tend to panic anytime I have to do something which involves more than 2 steps so I designed it all locally first using CSSEdit and TextWrangler. I worded with an entire copy of the ZP Default theme, which I renamed Default2, then just uploaded that and the new WP theme css.

That's it. It functions well.

Let me know if I can help in any way,

P

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