I have a new service on my site. You can upload your pet photos to share. It is simple right now just a name and short description of the photo. If it starts to get abuse with inappropriate stuff I will have to figure out some security measures. But my wife wanted me to build it so I did. would some of you guys please upload a few photos to share please. http://www.bmcoll.com/petpics the link to upload is right at the top Thanks.
Hey Brian, I posted a couple pics for ya! the pics are of my dog sleeping, and my buds dog with a huge rawhide bone! I might add more later..... Kris J.
Just to let you know.... Hey, When i was on your pet photo page, the layout was all messed up. I took a couple of screenshots for you to see what I'm talking about... I started to check out your code and noticed what I think is the problem with it being rendered properly. In the code of your pet photo page, you're spacing (indents) lack. (view picture below) Unlike the code on the other pages of your template.....(view Below) I've noticed in some browsers (Opera mainly) that when the code is like that, the page is missing parts or it is looking out of place in sections. Just thought I'd give you a heads up
Hey my dog clicked on your upload now he's lost. I can't even see him. He likes to eat twice a day. Pretty laid back. Answers to Brownie.
Only you Dave. I save the photo uploaded it with the form and all worked well. I dont know what happened when you tried it. the pic uploaded but the sql did not update. I have not done any code to strip slashes and stuff from the sql input so if your caption had any odd things in it like , that may be the problem. I will try to get some code to fix that.
Thanks Kris. I use php tidy to clean up the code and forgot one line at the bottom so it was not doing it . Like I said I built it in a few hours on nightquil I wanted a pre written script but no money to spare so I wrote a basic one to make mama happy.
So glad you found Brownie his brothers and sisters were starting to wonder. I noticed the page is getting slow at displaying the thumbnails. For one I uploaded the puppies which were large files 1.75m, Brownie was 117k you might want to take a look at the code at PHPF1.com - Max's PHP Photo Album. http://www.phpf1.com/product/php-photo-album.html The code has a photo resizer and more. It's a nice piece of work. or Max's Image Uploader http://www.phpf1.com/product/image-upload-script.html
Will do. Like I said I threw it together fast to make mama happy. I plan to mess with the code a lot to speed up load time.
I'm so glad to be working with such a fun bunch of people. If you can't have a laugh you may as well be six foot under. Brian, your Mumma should be over the moon!
Ok I added a resize to my upload file and the thumbnails on the main page are much smaller now it loads better Thanks for the idea Dave. But I wrote my own as the others seem not to integrate with my sql insert very well.
Well thats because it was for a flat file. Hey nice work loads really fast. I like the pic frame on the large pics and the back button is a nice touch. Did you turn on fastphp. for caching and non code recycle or di you do something to the server in the htaccess file? come on don't hold back.
Imagemagik. built into php. rewrites the image and resizes it to 400 px. but also saves a copy of the orig. So when you upload it makes a small copy in low quality and adds image_small to the front of the file name. So the thumbs are pulled from the small pics and the full image on the large pic page. I also added a addslashes command to the input from the form so if some one like you uses ,.;'": in the description it wont stop it from getting into the data base. I dont know what fastphp is so now I have something new to look into.
I downloade opera and tried every thing I can think of. my page looks fine in firefox,ie,chrome but the format is all screwed up in opera any ideas any one. I have been making small changes to the code for hours with no effect
I'm going to check thru you code and see what i can find.......I'm thinking it's something with your css. oh how I love doing stuff like this!
I'm thinking that you might have to define the width and height of the google Ad <div> you have in the middle of your pic thumbnails. that might be the problem....(or just define it for all <div>'s on the page).