WordPress Gallery

I really just want a gallery to work WITH my WordPress blog (http://blog.thelifeofbrian.info). I've fiddled with NextGen but found it fell far short of all the hype.

I've read that WordPress integration is coming "soon" - any idea when?

Until then.... Can somebody lay it out for me, the best way to install ZenPhoto, what WordPress plugins to use (I see there are several), etc.

I would like the gallery to be at http://blog.thelifeofbrian.info/pics. So how would I do this -- install the app in that folder? How do I get the themes to match? Is any of this documented already?

Thanks... I have searched, but haven't found the answers yet.

Comments

  • Chief Member
    Be aware though the ruzee one although the best for integration will leave you with silent 404's on all you album and image pages meaning that google wont index them, this is if you have permalinks turned on.
  • so is there any word on how long before the real integration becomes a reality? This all sounds like a bunch of hacks...
  • acrylian Administrator, Developer
    If you mean with "real integration" to use as a wordpress plugin. Sorry, that is not planned currently.

    An easy solution just to make a theme for zenphoto to match the rest of your site. This is basically how we did it on zenphoto.org.
  • silent 404's ? Will google not index any of the albums, and of course, what are silent 404's?
  • This theme should give you a good start.

    http://www.zenphoto.org/trac/attachment/wiki/ZenphotoThemes/wordpress_theme.zip?format=raw

    It's basically our theme we are using to display the showcase on the homepage. It's just a blank zenphoto theme that pulls in your wordpress theme around it.
  • Chief Member
    Sorry I should have explained more (I was coining someone elses phrase). Basically if you use ruzees method and maybe the one above (although I can't check today) if you have permalinks on for both wordpress and zenphoto although people can see your albums and pictures without problems google cant and will throw up 404 errors. Check this by validating your xhtml for your albums and the actual picture links.

    Unless aitf311's solution solves this what I'm doing at the moment is using the permalinks for wordpress for pretty links navigating the site and then turned permalinks off for zen not ideal but google will at least index your images.

    Does that make any more sense?
  • acrylian Administrator, Developer
    Why don't you just take a look at our themes/showcase section on zenphoto.org and do some google tests?
  • Chief Member
    I think I'll start my trying the one posted by Aitf as all the ones in the theme section weren't integrated with word press and out of the ones I checked in the showcase barely any were either. Interestingly I don't think I found a single site in the showcase with valid xhtml (I didn't go through all the sites though).
  • The theme I posted integrates perfectly with wordpress. You may have to change some of the id names on the divs but that's about it.
  • Thanks, I'll play around with it. By "real integration" I meant whatever the devs meant in their last release notes when they promised it was coming soon...

    I've installed a gallery using SimpleScripts through my provider, but it will not allow me to log in to the admin site - so I've gotten nowhere with it. Waiting on support from my host on that...
  • The "real integration" was a priority in the past but has lost its steam in the last year or so. The integration using the methods described have sufficed for most people. The theme posted is probable the simplest solution as it's pretty much ready to go in any wordpress installation.
  • I found integrating ZP in WP was quite easy. I just copied the index.php from my WP theme, replaced the code in the content section and added soms items in the head section. (http://www.spoenk.nl/beeldend/fotografie)

    At first I asked this same question here at the forum. Will there be a perfect integration of ZP inside WP. But now I don't want that anymore. Now I like to keep those two seperated. You never know how WP or ZP will evolve and perhaps there will come a day that you want something else than WP or ZP. Also a reason why I try to minimize the amount of plugins I use in WP and ZP, at least plugins that alter things in the database.

    Or think of this: let's say you are using the images inside the ZP albums to link to from within a WP post or even place them inside your posts. Then, after some time, you decide to use another program, or ZP let's you store images some place else or whatever... Then the links will be broken.

    Personally I think it's best to keep these two seperated. That's why I've chosen to not use something like NextGen.
  • http://www.zenphoto.org/trac/attachment/wiki/ZenphotoThemes/wordpress_theme.zip?format=raw
    aitf, this was nice to find. Question though. Getting meta description and "title" for the galleries/albums does not seem possible using this method?
  • I'd like to weigh in here. I've been looking for a solution to my ZP images not being indexed by google for about 4 months (as it turns out - ever since I included my WP header!). I received a lot of advice about alt tags etc on this forum and the other. After I posted my 404 errors question and got Chief's reply it all started to make sense.

    1. Google Webmasters shows that all of my Zp pages come back as 404.
    2. When I upgraded to WP 2.6 the browser bar said 'nothing found' for all of my ZP pages.
    3. Google has zero of my 2000 ZP images indexed.

    So it's an issue with mod_rewrite.

    As I...

    a) Used Ruzee's (ZP Developer recommended) include.
    b) Use WP pretty permalinks
    c) Enabled ZP mod_rewrite.

    ... all of my ZP pages came back as errors.

    So, what can we do about it? How do we make a b c consistent with each other?

    Developers - we look to you for guidance here! We want to keep our headers, pretty permalinks and be included in the Google club.

    What should we do? I have disabled mod_rewrite of the time being. I want to test it out. Have a look at my site if you like. Some of the links may be temporarily broken.

    I'm more than willing to be a try out any thought you may have as long as it allows me to keep my theme and my header include!

    http://phauxshow.com/
  • acrylian Administrator, Developer
    I personally have no idea since I never used zenphoto and wordpress that way (I made separate themes). Did you try the solution we use on zenphoto.org that aitf311 posted above? Or did you try the zenphoto google sitemap our user mightyhitter posted a while back: http://basri.my/plugins/zenphoto-google-sitemap
    Here is the thread to it: http://www.zenphoto.org/support/topic.php?id=3252&replies=18
  • If zenphoto is just skinned to match my site (wordpress) I assume google indexing is not an issue here. Google does not have a problem indexing zenphoto on it's own right? The way I have zenphoto set up I don't want it to index images, but my albums, which all have a title and description in the head meta.
  • aitf311, Am trying the wordpress_theme but got the error saying couldn't find Sajax.php file. I'm using WP 2.6.

    Warning: include() [function.include]: Failed opening '/var/www/angel/zenphoto/zp-core/Sajax.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/angle/zenphoto/themes/wordpress/header.php on line 7

    any help will be appreciated
  • I believe that was an oversight. If you remove the Sajax.php line from the header.php file it should work fine for you.
  • worked. thks.
  • 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
  • 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
  • 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.
  • C Member
    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.
  • kace Member
    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!)

    `<?php bloginfo('name'); ?> | <?php echo getGalleryTitle();?> | <?php echo getAlbumTitle();?> | <?php echo getBareImageTitle();?><?php if (is_404()) { ?> <?php } ?>`

    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 `<?php if (is_404()) {?>` 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 `<?php bloginfo('name'); ?> : <?php bloginfo('description'); ?>` etc.

    I'm sure there are other workarounds, (maybe easier ones!) but this particular solution works great for me.
  • amyg Member
    Kace.
    Thanks so much!
    I'll give this a shot. I'd given up -I'm so glad I stopped by today.
Sign In or Register to comment.