Pages (2):    1 2
Member
Member
efurban   19-08-2008, 19:07
#21

worked. thks.

Member
Member
kace   23-11-2008, 20:55
#22

For those who use the ruzee integration and are looking for a solution to the Zenphoto pages not being indexed when mod rewrite is on, I think this mod will do the trick. At least it did for my site and hopefully it will be the solution for yours as well.

Open the index.php file found in your root Zenphoto folder (NOT your themes index.php file)

Replace the line header("HTTP/1.0 200 OK");

with header("Status: 200 OK");

I did this and now all my Zenphoto albums show status 200 to search engines, as well as give a 404 response to pages that do not exist.

Give it a try and test out the headers, (I use http://www.web-sniffer.net, but there are many others) I think this is the solution to this particular issue. If not, let me know. Seems to have totally solved my "silent 404" problem.

BTW I am using WP 2.6.3 and ZP 1.2.1

Junior Member
Junior Member
irisp   29-01-2009, 20:26
#23

I am of course trying to attempt the same task as the rest of you here...integrate Zenphoto with Wordpress. I tried everything listed and I was able to pull the header in fine but I have the similar 404 problem. I tried the solution that "kace" posted but found that both header("HTTP/1.0 200 OK"); and header("Status: 200 OK"); were already listed in the index.php file so that unfortunately didn't change anything. So I'm looking for any new simple solutions if there are any.

And is there a way to keep "Page not Found" out of the page title on the browser tab?
thnx

Member
Member
amyg   06-02-2009, 02:16
#24

After playing with this for awhile, it began to appear (to me) that some of this is due to the specific WordPress theme and the way they handle 404s
Especially the "page not found' issue - switching back and forth between WordPress themes - sometimes I'd have "Page Not Found" in my browser window and othertimes, I'd see the name of the page as outputted by ZenPhoto.

I never came up with a solution - but it might be something to investigate. A bit over my head though.

Member
Member
C   11-02-2009, 23:23
#25

Hi,

I've fiddled with this since a while now, using ruzee's method. It worked ... almost. The problem I have is that the .css file is not being applied to the gallery properly.

Well - unless I look at it with opera from my own machine that is.

http://www.confession-box.org/gallery/

Stylesheet is here: http://www.confession-box.org/gallery/themes/default_plus_wordpress/styles/light.css - it's basically just a slight variation of the default zenphoto style that fit the general design of my page quite well ... I only addjusted some colours.

Would love to get suggestions - I am not much of a code person, obviously.

Member
Member
kace   25-04-2009, 16:03
#26

amyg, yes it does have to do with the WP theme you are using. Check the `` tags in the theme's header.php file. To keep the 404 out of the browser's title bar, the following code does the trick - (backup your file first just in case!)

| | |

This way, when the 404 gets sent it won't show in the browser title bar and you can make it whatever you want it to be by using the `` function. Unfortunately, because of the getGalleryTitle, getAlbumTitle, etc which are defined functions in ZenPhoto, those will only work when within the ZenPhoto pages, not when you are on a WordPress page only. I'm sure there's a way to define those functions from within the WP php files but it is beyond my knowledge. (If anyone has the code for that I'd love to know what it is.)

For pages within WordPress only, I just use a different page template with a different header.php file with the usual title functions like : etc.

I'm sure there are other workarounds, (maybe easier ones!) but this particular solution works great for me.

Member
Member
amyg   25-04-2009, 21:43
#27

Kace.
Thanks so much!
I'll give this a shot. I'd given up -I'm so glad I stopped by today.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.