Viewing 15 replies - 1 through 15 (of 60 total)
  • Alex
    This is what I am looking. I downloaded wp-photos and modified WordPress 1.0 by README.
    I have few questions on this.
    4) Add this to edit-showposts.php before the
    tag and
    after the Edit/Delete links at line 275:
    Which version of WP? Is it better if you add the wp version to your download.
    Anyway I think I added that line at the right place but when I am in edit mode I can not find
    “Photo Add/Edit” command in the screen as you shown in your example.
    Any suggestions ?

    Thread Starter alexkingorg

    (@alexkingorg)

    Not really, the function output the links just fine on my install. I’m using code that is a day or so older than the 1.0.1 release candidate.

    I couldn’t find that line either. I put it in where I thought it would go, then I received a MySQL error on another line and gave up. I took the hack out and I’m just going to upload them manually.

    Thread Starter alexkingorg

    (@alexkingorg)

    edit-showposts was removed in 1.0.1.
    Try line 275 in edit.php

    I couldnt find the file to put this info in
    – this goes just in front of <?php the_content(); ?>
    <?php
    if (!isset($c) || $c != 1) {
    $photo = get_preview_photo($id);
    if (!empty($photo->thumb)) {
    print($photo->preview_thumbnail());
    }
    }
    ?>
    – this goes before the comments
    <?php
    if (isset($c) && $c == 1) {
    $photos = get_post_photos($id);
    $photos = get_thumbnail_grid($photos);
    print($photos);
    }
    ?>

    Thread Starter alexkingorg

    (@alexkingorg)

    that goes in index.php

    yes but where in index.php i added it and still i cant use my wp-photos.

    hmm… seems like the latest nightly changed the edit page significantly. any advice on how to install it for the new system?

    Thread Starter alexkingorg

    (@alexkingorg)

    After the links to edit/delete, etc.
    It can be anywhere within the posts loop.

    THanks alex for a great addition. Your website is what got me to go with WP. Below is something I added to keep images and linking from defeating the password option.
    [code]
    if (!isset($c) || $c != 1) {
    $photo = get_preview_photo($id);
    if (!empty($photo->thumb)) {
    if($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) {
    print "";
    }else{
    print($photo->preview_thumbnail());
    }
    }
    }
    [/code]

    Thread Starter alexkingorg

    (@alexkingorg)

    I’ll add that, good catch.

    Hi Alex,
    I got a parse error in wp-photos.config.p h p when I ran wp-photos.set-up.p h p, I found the error on line 33 of wp-photos.config.p h p
    .wp-caption {
    /* font-family: verdana; */
    }
    // –>
    </style>
    */
    This is line 33: /* font-family: verdana; */
    Once I removed /* font-family: verdana; */ I was able to run and add the tables with no problem.
    Karl

    I don’t think the /* font-family: verdana; */ is the problem. I think you have to delete the
    // -->
    </style>
    */

    Once you have put those CSS-elements in a stylesheet, you can delete them from the wp-photos.config.php.

    I think it’s that last ‘}’ that PHP don’t like.
    Karl

    Looks like the //–> would toss an error.

Viewing 15 replies - 1 through 15 (of 60 total)
  • The topic ‘WP Photos Hack (1.0 Compatible)’ is closed to new replies.