Support » Plugins » WP-Photos and 1.2 beta

  • Hello all,
    I’ve just upgraded my installation to the 1.2 beta, and I am trying to install the WP Photos hack. In part 4 of it it says to add some code to edit.php at line 275 to add the ‘add/edit pictures’ link. On the new – upgraded – edit.php there doesn’t appear to be a line 275 and I can’t see where to put the code. Can anyone advise where to put it? Or if this plugin is even compatible with the 1.2 beta?
    Thanks,
    Hazel

Viewing 15 replies - 1 through 15 (of 25 total)
  • Sure. Here is where I placed mine in post.php:
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(','); ?> — <?php the_author() ?> @ <?php the_time() ?> | <?php include_once('../wp-photos.hack.php'); wpphotos_link(); ?></div>

    That was me, by the way, if you have any more questions.

    Okay, I got the add/edit links in, but now when the image thumbnail shows on my blog the ‘view photos’ link doesn’t work, it just seems to just be another permalink to the entry. You can see it at:
    http://www.stitchingupastorm.co.uk/thepast/2004/05/01/introducing/
    The code is definitely in my-hacks.php, and all the other files are there. Can anyone help?
    Hazel

    Yes, wp-photos was developed when the blog-header had $c=1 along with $more. Either add it there or you can change each instance of $c to $single in the index file.

    Brilliant! Thanks for your help! Its all working now!
    Hazel

    Hack! Hack! I didn’t know I would be helping to cough up a fur ball (cats are one rung above rodents on the evolutionary ladder 😉

    sorry beel,
    i’m having the same problem as hazyd was, but not managing to fix it yet…
    could clarify that you mean by “Either add it there or you can change each instance of $c to $single in the index file.”…
    sorry – newbie… 🙂

    Hi guys
    I am getting this :
    Warning: main(../wp-photos.hack.php): failed to open stream: No such file or directory in /home/httpd/vhosts/scribbleandtweak.com/httpdocs/wordpress-1.0.2/index.php on line 1
    Warning: main(): Failed opening ‘../wp-photos.hack.php’ for inclusion (include_path=’.:/usr/share/pear’) in /home/httpd/vhosts/scribbleandtweak.com/httpdocs/wordpress-1.0.2/index.php on line 1
    Fatal error: Call to undefined function: wpphotos_link() in /home/httpd/vhosts/scribbleandtweak.com/httpdocs/wordpress-1.0.2/index.php on line 1
    what am I doing wrong?

    I made some changes to the source to generate thumbnails for a folder that didn’t already have them. You just click “make thumbs” next to the directory you want done and it creates the “t” directory and makes thumbnails for it. Interest?
    It might be nice to convert this whole thing to a 1.2 plugin, too. I’ll have to work on that.

    My experience has been that most people don’t have GD enabled.

    That may be true, but for the people who are looking for server-side resample functions and have GD, this could be the ticket. I really like wp-photos in comparison to others that are available, and think that thumbnail functions would be a nice addition.
    Any other photo gallery with resampling features is going to need image libraries enabled on the server, anyway. Gallery, for instance, uses ImageMagick, which unlike GD, doesn’t come packaged with PHP.

    iain: Sorry, I didn’t catch your post till now. The hack with which Alex so graciously provided us has you put some code in the index file. The code has instances (I think – I am not at my computer) of $c != 1 and $c == 1, just change the $c to $single.

    Looks like I have wp-photo almost working with 1.2 by following the above comments. I have one last (simple) problem I can’t figure out off the top of my head.. the wpphotos_link() function doesn’t seem to be passing the $id variable for the add/edit links in post.php. The url for those looks something like this now:
    add: wp-photos.php?post_ID=
    edit: wp-photos.php?post_ID=&action=edit
    Did I miss something?
    thanks!

    Hi,
    I am trying to use WP-Photo, one instruction says “Add this to edit.php before the
    tag ….”, I am having hard time to find this file. Do I have to create new file with this name?
    Please advise.
    Thanks.

    Beel,
    were you referring to the anonymous post or mine? =)
    thanks

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘WP-Photos and 1.2 beta’ is closed to new replies.