1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

Others Can you guys help me out

Discussion in 'Free Services' started by bmcoll3278, Sep 26, 2009.

  1. bmcoll3278

    bmcoll3278 New Member

    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.
     
  2. GDSweb.ca

    GDSweb.ca Moderator/Developer

    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.
     
  3. GDSweb.ca

    GDSweb.ca Moderator/Developer

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

    [​IMG]

    [​IMG]


    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)
    [​IMG]

    Unlike the code on the other pages of your template.....(view Below)
    [​IMG]

    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
     
  4. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    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.
     
  5. CovertPea

    CovertPea Moderator Staff Member Verified Member

    :D Oh Dave!!
     
  6. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    no I'm serious...
     

    Attached Files:

  7. bmcoll3278

    bmcoll3278 New Member

    ok ok I built the script in a few hours wile on nightquil. Ill fix it.
     
  8. bmcoll3278

    bmcoll3278 New Member

    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.
     
  9. bmcoll3278

    bmcoll3278 New Member

    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.
     
  10. bmcoll3278

    bmcoll3278 New Member

    Brownie found Nation Rejoices .
    [​IMG]
     
  11. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

  12. bmcoll3278

    bmcoll3278 New Member

    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.
     
  13. CovertPea

    CovertPea Moderator Staff Member Verified Member

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

    Brian, your Mumma should be over the moon!
     
  14. bmcoll3278

    bmcoll3278 New Member

    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.
     
  15. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    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.
     
  16. bmcoll3278

    bmcoll3278 New Member

    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.
     
  17. bmcoll3278

    bmcoll3278 New Member

    hey I did the indents did it help?
     
  18. bmcoll3278

    bmcoll3278 New Member

    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
     
  19. GDSweb.ca

    GDSweb.ca Moderator/Developer

    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! :)
     
  20. GDSweb.ca

    GDSweb.ca Moderator/Developer

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