Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Cyril

    (@cyril)

    From what I look, if you use permalink (and rewrite), there are few place in wp source where it still use the old link name (index.php?….) and that doesn’t mix very well (cat=all, preview box …).
    Actually, I am still in the old system until that clear up.
    Cyril

    I get the same error when I do an upgrade from my 1.01 wp to the today cvs
    but it seems to work well.
    Cyril

    How to use wp-photo with wp 1.1 (cvs extract from 17 feb 2004)
    Open up the wp-photos.config.php file and change the settings as needed.
    in index.php :
    – this goes at the top somewhere before the rest of these tags
    <?php require_once(‘wp-photos.hack.php’); ?>
    replace the story content ‘div’ by :
    <div class=”storycontent”>
    <?php
    if (!isset($single) || $single != 1) {
    $photo = get_preview_photo($id);
    if (!empty($photo->thumb)) {
    print($photo->preview_thumbnail());
    }
    }
    ?>
    <?php the_content(); ?>
    <?php
    if (isset($single) && $single == 1) {
    $photos = get_post_photos($id);
    $photos = get_thumbnail_grid($photos);
    print($photos);
    }
    ?>
    </div>
    in wp-admin/edit.php :
    add :
    <th scope=”col”>Photos</th>
    after
    <th scope=”col”>Delete</th>
    and before </tr>
    add :
    <td><?php include_once(‘../wp-photos.hack.php’); wpphotos_link(); ?></td
    >
    after
    <td><?php if (($user_level > $authordata->user_level) or ($user_login == $au
    thordata->user_login)) { echo “
    ss=’delete’ onclick=\”return confirm(‘You are about to delete this post \'”.the_
    title(”,”,0).”\’\\n \’OK\’ to delete, \’Cancel\’ to stop.’)\”>Delete“; }
    ?></td>
    and before </tr>
    in wp-photos.hack.php, replace wpphoto_link function by
    function wpphotos_link() {
    global $wpphotos, $id;
    $path = ”;
    if (strtolower($wpphotos->type) == ‘wordpress’) {
    $path = ‘../’;
    }
    $string = ‘
    nk”>Add/’
    .’
    target=”_blank”>Edit‘
    .’ [‘.get_post_photos_count($id).’]’;
    print($string);
    }
    Now the edit post look like that :
    ID When Title Categories Comments Author Edit Delete Photos
    13 2004-02-15
    5:30:00 pm Sortie motoneige General no comments Cyril Edit Delete Add/Edit [2]
    you can update the story content ‘div’ in the Preview
    part of wp-admin/post.php by :
    <div class=”storycontent”>
    <?php
    $photo = get_preview_photo($id);
    if (!empty($photo->thumb)) {
    print($photo->preview_thumbnail());
    }
    ?>
    <?php the_content(); ?>
    <?php
    $photos = get_post_photos($id);
    $photos = get_thumbnail_grid($photos);
    print($photos);
    ?>
    </div>
    if you like.
    Cyril
    Montreal

    I just work on an adaptation of Alex wp-photos on the last 1.1 beta.
    I can give you help with my changes.
    Alex, do you want a copy of them to update your package ?
    Cyril

    Thread Starter Cyril

    (@cyril)

    Mea culpa 🙁

    Thread Starter Cyril

    (@cyril)

    Ok,
    I think I find my solution, my html is pretty old, and CSS are new to me.
    After playing around, I create entry for wp-photo classes in my css file with
    padding and border …
    Alex, can you add a css sample in your zip for the next version ?
    Thanks.
    Cyril

    Thread Starter Cyril

    (@cyril)

    Hi Alex, Jason,
    any way is a good way, we just need to put a category (or general) on each post.
    I would like to do that modification and other to add more security in the code, but since the new WP deal with cat and subcat, I would like to work directly on it.
    The new WP with cat and subcat is the nightly build version ?
    How can I report modification in the cvs tree ?
    Do you have a bug-database to know where work is needed ?
    Thanks.
    Cyril

    Thread Starter Cyril

    (@cyril)

    I read that the new beta has cat and subcat,
    I think if we remove a cat, post without cat must be link to the parent of the removed cat and if no parent to the General.
    Just my idea, I don’t have that new version.
    Cyril
    Montreal

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