Member
Member
PeterM   03-03-2008, 18:51
#1

Hello!
Is there a way I can use http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin to create a blank themed page? Basically, I am looking into fitting my site around Zen Photo, so in order to get the right layout, I need a blank page with space so I can add a php include for news or something similar.

Any pointers?

Thanks

Administrator
Administrator
acrylian   03-03-2008, 19:39
#2

Even easier, just take album.php for example and remove all the album/image stuff. Then rename that page to "info.php" for example and you can call it with zenphoto/index.php?p=info or with modrewrite zenphoto/page/info

Member
Member
PeterM   03-03-2008, 20:20
#3

Ooo, I get this though:

Zenphoto Error: the requested object was not found. Please go back and try again.

Maybe I took out too much?

`

Administrator
Administrator
acrylian   03-03-2008, 21:00
#4

No, more too less, you need to remove all album related stuff, since there is no album context, you get an error.

Here the more or less core stuff (from default theme):
`

 | 

| Archive View | Powered by zenphoto

`

I hope I missed nothing myself...

Member
Member
PeterM   03-03-2008, 22:46
#5

Parse error: syntax error, unexpected ';' in /public_html/zenphoto/test.php on line 10
sorry

Where can I put this file? Currently I have it in the zenphoto directory.

Administrator
Administrator
acrylian   04-03-2008, 10:09
#6

You have to place it in your theme's folder

Member
Member
PeterM   04-03-2008, 10:44
#7

How would I edit it to work outside the themes folder, say, in the "zenphoto" root folder?
I also still get the same error: Parse error: syntax error, unexpected ';' in /public_html/zenphoto/themes/stopdesign/test.php on line 10 - looks like there was a missing ")" so i put that in, but now i get a blank page: http://www.petermakosch.com/02/zenphoto/themes/stopdesign/test.php

Hmm :S

Administrator
Administrator
acrylian   04-03-2008, 11:13
#8

Why do you want that page to be outside the theme's folder? To repeat it, the url for a custom theme page ist zenphoto/index.php?p=info or with modrewrite zenphoto/page/info

There is apparently something missing in your theme, since it shows an error, too, when using the correct url. of course my example was from the default theme which is much simple than the somewhat stopdesign theme. So her an empty page for stopdesign:
`

Member
Member
PeterM   05-03-2008, 10:31
#9

Well, I edited it to look the same but I am still getting a blank page.
Not to worry, I will find another way of adding news content :/

Administrator
Administrator
acrylian   05-03-2008, 10:47
#10

If you would post the code we'll could take a look and maybe help.

Member
Administrator
Administrator
acrylian   05-03-2008, 13:51
#12

No, subdirectories do not matter. Here is the a example for stoppdesign based on your posted code. I just tested it:
`

Member
Member
PeterM   05-03-2008, 14:01
#13

I am so thick sometimes.
No, really. So all this time, I have been trying to call it from it's absolute location, but after re-reading, calling it from the index with the ?p=blah query and it works a treat.

Boy, I feel so sheepish! oops!
Sorry :$

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