WordPress.org

Ready to get started?Download WordPress

Forums

WP Photos Hack (1.0+ Compatible) (61 posts)

  1. litlnemo
    Member
    Posted 10 years ago #

    Alex, is there any specific permissions setting I should give the folders? I did chmod 766 on them. Then I was getting the error "Warning: stat failed for wp-photos/sample/t/t (errno=13 - Permission denied) in (path to my blog directory)/wp-photos.hack.php on line 263" and the same error on line 289. I loosened up the permissions more and got that to go away, and now I am getting the "No suitable folders found" error again. I am stumped. I am not fluent enough in php to know why it is telling me this.
    (further messing around with it...)
    Ooooookay... I got the sample to work. The other folder with my own images still doesn't work...
    (further messing around)
    I think I have figured it out. There were two problems -- the permissions problem (which wasn't happening at first), and then another one. The problem seems to have been that the thumbnails did not have the exact same name as the big pics. This may seem obvious to you that they should, but not to me (never having used the script before, I didn't know if I was going to have to choose the thumbnails directly for each image or what -- I didn't assume the script would know them automatically). :) So now that I gave them both the same name I can look in the folder. It's a bit of a pain since I always store thumbnails with a different name, by habit...
    (further messing around)
    Oh hell. It still doesn't work. Says it's adding the images to "post #128" but they aren't there. They aren't showing up in the source, even. I think I am giving up for now.

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    Well, honestly, I guess I might just let it go. At this point it doesn't seem any easier than just manually putting the images in the way I've done it in the past. :) Since I don't use pictures in the blog very frequently I'm thinking in retrospect that there's no need for this for me. But maybe I'm missing something.
    Ideally I'd like something that would automatically generate small images (to place on the blog page) that link automatically to a large image when clicked on, and could be selected within the blog edit window from anywhere on my HD. But that might be asking a bit much from a hack! :D

  3. litlnemo
    Member
    Posted 10 years ago #

    That was by me. Forgot to login.

  4. Alex King
    Member
    Posted 10 years ago #

    This hack doesn't do that.

  5. toonrmeusa
    Member
    Posted 10 years ago #

    Alex,
    I now have the hack running, but I have one last problem with the layout on the page. The photo is spilling out of the posting box. For an example, compare my page with one of yours, specifically the posting "Cool sky tonight".
    I tried putting extra tags into the posting, but that didn't work. Is there a trick that you used, or do you think it might be an error in my layout file?
    Cheers,
    Dave

  6. toonrmeusa
    Member
    Posted 10 years ago #

    Sorry, didn't know you couldn't use regular HTML. I'll try again:
    I now have the hack running, but I have one last problem with the layout on the page. The photo is spilling out of the posting box. For an example, compare my page with one of yours, specifically the posting "Cool sky tonight".
    I tried putting extra tags into the posting, but that didn't work. Is there a trick that you used, or do you think it might be an error in my layout file?
    Cheers,
    Dave

  7. Beel
    Member
    Posted 10 years ago #

    For those who are trying to get wp-photos to work with 1.1, you will have to add $c =1 back in the wp-blog-header.

  8. Anonymous
    Unregistered
    Posted 10 years ago #

    i got a MySQL error. Not sure why. Can we create the SQL query manually?

  9. Anonymous
    Unregistered
    Posted 10 years ago #

    ok, i guess i am really retarded.
    i am not getting this.
    where does this go? i dont have an edit.php file.
    4) Add this to edit.php before the
    tag and after the Edit/Delete links at line 275:
    <?php include_once('../wp-photos.hack.php'); wpphotos_link(); ?>

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    holy crap. ok i figured it out.
    i had hack file enabled. and it would let me see anything.
    so if i have nothing in my hack file, it wont show my index page?

  11. Mark McKibben
    Member
    Posted 10 years ago #

    I just recently started using WordPress and this looked like a pretty cool hack but like some other people in this thread; I had problems getting it installed. Once I WP-Photo running, I went back and wrote a little tutorial detailing how I got it working. You can read my tutorial here.

  12. Anonymous
    Unregistered
    Posted 10 years ago #

    Can't we figure out some way to automate this hack a bit more? Make the files uploadable via the post function screen and the ability to create folders from the same screen...and also have it automate the making of thumbnails...it can be done correct?

  13. Alex King
    Member
    Posted 10 years ago #

    I built the hack to work the way I wanted it to work and made it available for download. I don't like uploading via a web interface, I don't like auto-created thumbnails and I don't like auto-resized images. As a result, it doesn't do any of these things.

  14. Anonymous
    Unregistered
    Posted 10 years ago #

    alex, can you look at my site, and tell me what i am doing wrong?
    http://www.4thborn.com/wp.
    i followed manzabars tutorial, but getting this problem now.
    also when i run the wp-photos.set-up.php, i get the page that tells me to click here to create the tables, but when i click on the link i get a white blank page.
    thanks

  15. Alex King
    Member
    Posted 10 years ago #

    Looks like you have a space between the < and the ? in the opening PHP tags.

  16. lisah2u
    Member
    Posted 10 years ago #

    I like this hack and have used it successfully with wordpress 1.1... but I just upgraded to the most recent nightly release of wordpress and have found a significant difference between the two versions. Where do you envision putting the wp_photos hack include statement (previously in edit.php) in the 1.2 release?
    Lisa

  17. lander
    Member
    Posted 10 years ago #

    Hi,
    I get the following error message when I'm trying to run the wp-photos.set-up.php:
    Parse error: parse error in /home/mywebsite/public_html/stay/wp-photos.config.php on line 33
    Whoops, some error occured. Bummer, huh?
    Any thoughts?

  18. Anonymous
    Unregistered
    Posted 10 years ago #

    i get a MySQL error when installing.
    What is the SQL query so I can try to add the table manually?

  19. Beel
    Member
    Posted 10 years ago #

    Just to a copy and paste from wp-photos.set-up.php, that is what I did.

  20. Anonymous
    Unregistered
    Posted 10 years ago #

    Hi,
    I have a few suggestions to make the hack more 'portable.'

    1. Go through the code for the hack and replace <? with <?php. Also replace <?= with <? echo (...). This will make it run on php setups that don't allow short tags.
    2. In the files that include CSS snippets, PHP matchs the opening /* with the closing */ in the CSS comments. I think that this would work better if you used # for the php comments like this: <pre>
      #
      # <style>
      # body {
      # font-family: font-family: verdana, tahoma, geneva
      # /* CSS comment */
      #
      </pre>
  21. franpereiro
    Member
    Posted 10 years ago #

    Hi Alex,
    I had this hack in my blog before but when I upgraded to the 1.01 version it stopped working. So, I've tried to install it from scratch but it sends me the following error when trying to install the database:
    Warning: Cannot modify header information - headers already sent by (output started at /home/frankper/public_html/wp-photos.set-up.php:2) in /home/frankper/public_html/wp-last-visit.php on line 132
    Warning: Cannot modify header information - headers already sent by (output started at /home/frankper/public_html/wp-photos.set-up.php:2) in /home/frankper/public_html/wp-last-visit.php on line 192
    Warning: Cannot modify header information - headers already sent by (output started at /home/frankper/public_html/wp-photos.set-up.php:2) in /home/frankper/public_html/wp-last-visit.php on line 215
    Whoops, some error occured. Bummer, huh?
    When I open the wp-last-visit.php file, all I can see in all the lines that the errors are reffering to, is this: " );" (without the quotes)
    As ussual, I followed your instructions (that came with the zip file).
    I have used almost all of your hacks and I have to say that they are wonderfull scripts for our weblogs, thanks for those scripts.
    What should I do to correct these errors? Thanks in advance.
    Greetings,

  22. franpereiro
    Member
    Posted 10 years ago #

    Another thing, How can I show a random pic from the wp-photos folder?

  23. Alex King
    Member
    Posted 10 years ago #

    Do a search here on the 'headers already' sent error, you'll find it answered quite a few times. :)
    I don't have a "random pic" function right now, but that is a good idea. You'd just need to write a little query to get a row from the photos table.

  24. franpereiro
    Member
    Posted 10 years ago #

    Thanks Alex for answering so quickly. I haven't looked for the 'headers already' error in the forum, I'll look right away.
    Greetings,

  25. Anonymous
    Unregistered
    Posted 10 years ago #

    Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /domain/web/domains/OD.com.ar/web/YO/wp-photos.php on line 42 Whoops, no 'post_ID' passed in, I don't know what post to attach photos to.
    ideas?

  26. Anonymous
    Unregistered
    Posted 10 years ago #

    sorry, Hello!!!
    This is problem of versions?

  27. Anonymous
    Unregistered
    Posted 10 years ago #

    In the wp-photos.config.php file it says to "add these to your style sheet". This is a really stupid question but...what is the file name of said style sheet? Is is the wp-admin.css?

  28. Anonymous
    Unregistered
    Posted 10 years ago #

    When I click on add a photo, I get an error message that says "No suitable folders found" I created a wp-photos directory in the main directory and put a photo in it. When that didn't work I created a wp-photos directory in my /photos directory and put a photo in it. That didn't work either. I think it may be a path problem or I have wp-photos in the wrong location. Any suggestions? Thanks.

  29. Alex King
    Member
    Posted 10 years ago #

    Did you also put a folder 't' with a thumbnail image with the same name as the photo file in it?

  30. kmoen
    Member
    Posted 9 years ago #

    I can't seem to find how to increase the size of the captions and "next", "previous" text bellow the photo. Any suggestions?
    thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.