Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Download the latest nightly build of K2. You can now customize the metadata in K2 Options.

    The bug is in the function k2_body_class in k2/app/includes/info.php (line 648):

    // Separates classes with a single space, collates classes for BODY
    $c = join( ‘ ‘, attribute_escape( apply_filters(‘body_class’, $c) ) );

    Change it to:

    // Separates classes with a single space, collates classes for BODY
    $c = join( ‘ ‘, apply_filters(‘body_class’, $c) );

    Forum: Plugins
    In reply to: wp-photos & the edit file
    spikeyslam

    (@spikeyslam)

    Make sure wp-photo.php, wp-photos-installer.php and wp-photos-manager.php are in the root wordpress folder with all the wordpress files.

    Edit your wp-photos.php with the correct database settings. Make sure you loaded wp-photos-installer.php in a web browser. It will create a new database table for wp-photos. You can delete wp-photos-installer.php afterwards.

    spikeyslam

    (@spikeyslam)

    I noticed we were getting 404 errors too with Internet Explorer on Windows. A simple click on the Refresh button did the trick. It’s just annoying.

    Forum: Plugins
    In reply to: wp-photos & the edit file
    spikeyslam

    (@spikeyslam)

    That’s so strange. Hmm. Did you activated the plugin in the plugins section?

    Here’s my edit.php. Just download it and rename it to edit.php… It’s the stock wordpress 1.5 with the changes needed for wp-photo 1.5.

    Forum: Plugins
    In reply to: wp-photos & the edit file
    spikeyslam

    (@spikeyslam)

    That’s strange. code looks fine. hmm. Try putting photos after author:

    'comments' => __('Comments'),
    'author' => __('Author'),
    'photos' => __('Photos')
    );

    Forum: Plugins
    In reply to: wp-photos & the edit file
    spikeyslam

    (@spikeyslam)

    The structure in edit.php has totally changed with WP 1.5. Try this instead:

    Add this at line 123:
    "photos" => __("Photos"),

    as demo here:


    "comments" => __("Comments"),
    "photos" => __("Photos"),
    "author" => __("Author")
    );
    $posts_columns = apply_filters("manage_posts_columns", $posts_columns);

    Add this at line 204:
    case "photos":
    ?>
    <td><?php wpphotos_link(); ?></td>
    <?php
    break;

    so that it looks like this:


    case "author":
    ?>
    <td><?php the_author() ?></td>
    <?php
    break;

    case "photos":
    ?>
    <td><?php wpphotos_link(); ?></td>
    <?php
    break;

    case "control_view":
    ?>
    <td><a href="<?php the_permalink(); ?>" rel="permalink" class="edit"><?php _e("View"); ?></a></td>
    <?php
    break;

    spikeyslam

    (@spikeyslam)

    Whoops. That was for WP-Photos 1.0… The same problem apply for WP-Photos 1.5 on Line 184 in wp-photos.php

    Basically we’re replacing $querystring_start with “?” $querystring_equal with “=” and $querystring_separator with “&” since they’re no longer have any value. That’s why you were getting: https://www.example.com/index.phpp100c1 instead of https://www.example.com/index.php?p=100&c=1

    spikeyslam

    (@spikeyslam)

    Looks like the following variables have been depreciated in Wp 1.5:

    $querystring_start, $querystring_equal, $querystring_separator

    I guess we can just hardcode them for now. Look for line 170 in file: wp-photos.hack.php and change it to look like this:

    $url = $siteurl.'/'.$blogfilename.'?p='.$this->post_ID.'&c=1';

Viewing 9 replies - 1 through 9 (of 9 total)