WordPress.org

Ready to get started?Download WordPress

Forums

WP-Photos and 1.2 beta (26 posts)

  1. hazyd
    Member
    Posted 9 years ago #

    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

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    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>

  3. Beel
    Member
    Posted 9 years ago #

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

  4. hazyd
    Member
    Posted 9 years ago #

    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

  5. Beel
    Member
    Posted 9 years ago #

    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.

  6. hazyd
    Member
    Posted 9 years ago #

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

  7. Beel
    Member
    Posted 9 years ago #

    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 ;-)

  8. iain
    Member
    Posted 9 years ago #

    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... :)

  9. stan
    Member
    Posted 9 years ago #

    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?

  10. ringmaster
    Member
    Posted 9 years ago #

    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.

  11. Alex King
    Member
    Posted 9 years ago #

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

  12. ringmaster
    Member
    Posted 9 years ago #

    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.

  13. Beel
    Member
    Posted 9 years ago #

    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.

  14. motionless
    Member
    Posted 9 years ago #

    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!

  15. Anonymous
    Unregistered
    Posted 9 years ago #

    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.

  16. motionless
    Member
    Posted 9 years ago #

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

  17. Beel
    Member
    Posted 9 years ago #

    I was refering to anonymous, I have class but I will take a look at your situation when I get home this evening.

  18. elmsblog
    Member
    Posted 9 years ago #

    I have not had luck with this either. I've been posting on another thread as well: http://wordpress.org/support/10/6140
    Any help is surely appreciated! :)

  19. motionless
    Member
    Posted 9 years ago #

    I'm using 1.2-mingus

  20. Alex King
    Member
    Posted 9 years ago #

    I will be creating a 1.2 plugin, I just need to finish a couple of projects I'm working on first.

  21. elmsblog
    Member
    Posted 9 years ago #

    Alex: I just wanted to tell you that I've tried every photo plug in I can find, and can't wait for yours! (one suggestion: have the mouse pointer act as a link when mouse-overing the full size pic, so people know it's a link or add some text "click on photo to return to entry", etc.)

  22. andrew_h
    Member
    Posted 9 years ago #

    I created a modified photo plugin today. It is designed to allow multiple users to upload images and make posts and is highly simplified to that end. It has three aspects.
    First, it puts a stripped down upload screen at the top of the Write page. This is done with two php include in post.php plus a highly modified upload.php.
    Second, it has the option to create thumbnails and it has different upload limits depending on whether a thumbnail is used or not (since I do not mind large files *if* they do not clog up the load speed of my index page). One other thing it does is to rename the image files using unix time stamps so that there is never a duplicate image problem (I know the existing upload.php has a renaming option as well but I don't want the user to have to deal with that at all).
    Third it returns a modified text string for insertion into the message (which is right below on the same page). This text string sets up single images as per usual. But if they go for the thumbnail option it provides a different string that sets the thumb in the message and links to the full size image which loads in a special purpose display page (photo.php) - along with it's own title, heading etc.
    It may not suit anyone else but some of those idea might be useful for others.
    Andrew

  23. elmsblog
    Member
    Posted 9 years ago #

    Is that plug in available for others to try out? ;-)

  24. andrew_h
    Member
    Posted 9 years ago #

    I don't have time right now to put it together in a form that would be useful. I might possibly in a couple of days. Yes I think it could be usefulfor many people , especially the feature that all the action is on the edit page, but everyone will want a different customization. I also need to test it a bit longer to see if any problems emerge.
    Andrew

  25. kmoen
    Member
    Posted 9 years ago #

    I love the photo hack! One part that i find doesn't work for me is when the photo is clicked it opens at the bottom of the post. Since my folks site i wove together is a personal blog with large entries, people are confused where the photo went.
    Is their any way to have the photos open all on the right hand side from the top of the post?
    Also- when a person views the comments, all the photos open as well, did i error in placing the code to cause this?
    Site is http://www.globaltrekkers.ca if anyone is interested in trying out.
    thanks!
    keith

  26. Anonymous
    Unregistered
    Posted 9 years ago #

    Any word on the multiple user upload hack for wp-photo, Andrew?
    Sounds like a dream to me!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.