WordPress.org

Ready to get started?Download WordPress

Forums

Get the PHOTOS hack running (4 posts)

  1. DuneBlog
    Member
    Posted 9 years ago #

    Dear all,

    I try to Install (AlexKing's) PHOTOS for a WP test installation but there are such differences what the Readme says and what my fiels have. What is running on my Computer? I have WP v1.5 and P!v4.1

    From README.txt I've done successfully anything until point until point 4.
    In point 2 (plugins/wp-photos.php) I only input my table name and my own name under "$wpphotos->photographer". What I don't know is how to use the "$wpphotos->display_URL = 'wp-photo.php';".

    Now point 5: It's here where my problems start as I can't find the location where to insert the Codes. I open wp-admin/edit.php.
    The Readme says "Add this at line 89: <th scope="col">Photos</th>". Your example does not mach the real file. Your Example says: "<th scope="col"><?php _e('Delete') ?></th>". The real file shows this: "<legend><?php _e('Browse Month…') ?></legend>".
    BTW - it is on line #139 NOT #89.

    This is how it looks like after my Editing:
    138 <th scope="col"><?php echo $column_display_name; ?></th>
    139 <?php } ?>
    140 <th scope="col">Photos</th>
    141 </tr>

    At least I managed this insert I hope ;)

    Further the README.txt says: Add this at line 144: <td><?php wpphotos_link(); ?></td>". The Demo shows this:

    <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "" . __('Delete') . ""; } ?></td>
    </tr>

    I may be blind (sometimes) or may not being able to read. But this Code is nowhere to find. I can find on line 219 something similar but honestly I'm totaly lost and my knowledge in php is not sufficient to make suche a decission. But anyhow I insertet it below this code and before the "</tr>". Was this correct?

    Point 6 instructs to open the "index.php". Done!
    To simplify here is the content of my index.php:

    <?php include_once ("<blog location>/wp-content/plugins/rk/referrer-karma.php"); check_referrer();

    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    I don't have the "<?php the_content" and the next code should go before which comments? "/* Short and sweet */"?

    Does please anyone have time to give me a help getting PHOTOS up and running on WP. Thanks for your time and patience.

  2. moshu
    Member
    Posted 9 years ago #

    I have no idea about this plugin but I bet the instructions talk about the index.php in your theme.

  3. DuneBlog
    Member
    Posted 9 years ago #

    ohh, I haven't thought about this one. Thnaks moshu. Will logout and check it at home. Will let you know.

  4. Alex King
    Member
    Posted 9 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags