php question - blank.gif images

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Global Dialers
    Confirmed User
    • May 2004
    • 1349

    #1

    php question - blank.gif images

    if i have a .php template page made up with say 25 thumbs leading to the full size pics on it

    what would i need to use to load up a blank.gif image if there were only say 24 images in a specific folder on the server or is that not something that you can do on a stand alone / page by page basis
    the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
    the rest of thegalleries are free placements.
  • RicardoB
    Confirmed User
    • Jan 2004
    • 2576

    #2
    Maybe I'm reading ya wrong but here goes:

    I asume you are using a table structure to load the thumbs in?
    I also asume the thumbs always have the same size?

    In that case load up the blank gif as the background of the cells and ya there

    Comment

    • Global Dialers
      Confirmed User
      • May 2004
      • 1349

      #3
      Originally posted by RicardoB
      Maybe I'm reading ya wrong but here goes:

      I asume you are using a table structure to load the thumbs in?
      I also asume the thumbs always have the same size?

      In that case load up the blank gif as the background of the cells and ya there
      but wouldnt that still show a red x if there was a thumb image missing that was hard coded into the table cell

      like say i have two rows of 5 thumbs - 10 thumbs

      if i use the same php page across 1000 sub directory yet some of them only have 7 8 or 9 images in wont the missing 3 2 or 1 images show up as a red x?
      the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
      the rest of thegalleries are free placements.

      Comment

      • dgraf
        Confirmed User
        • Jun 2004
        • 133

        #4
        You want to list a directory and do a decision upon its content?
        Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

        Comment

        • Repetitive Monkey
          Confirmed User
          • Feb 2004
          • 3505

          #5
          if(!file_exists("$thumb_name.gif")){
          $thumb_name="blank";
          }
          echo"<img src=\"$thumb_name.gif\" border=\"0\">";

          Comment

          • Global Dialers
            Confirmed User
            • May 2004
            • 1349

            #6
            kindof i guess yes at least that sounds like what i want to do lol

            my programmer doesnt get in for another couple of hours and im an impatient fuck lol
            the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
            the rest of thegalleries are free placements.

            Comment

            • Global Dialers
              Confirmed User
              • May 2004
              • 1349

              #7
              thank you

              whats the haha bit though please damn word censors
              the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
              the rest of thegalleries are free placements.

              Comment

              • dgraf
                Confirmed User
                • Jun 2004
                • 133

                #8
                PHP Code:
                if (file_exists("dir/file.jpg")) ... 
                
                Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks

                Comment

                • Repetitive Monkey
                  Confirmed User
                  • Feb 2004
                  • 3505

                  #9
                  Originally posted by Global Dialers
                  thank you

                  whats the haha bit though please damn word censors
                  Reverse }

                  Comment

                  • Roberto the Perverto
                    Registered User
                    • Jul 2004
                    • 89

                    #10
                    I dunno what programs you are using but if you have this coded yourself or not I'll offer a few solutions.

                    in the code, you can have it count how many images you told it to put into each template, if it is less then 10 then the remaining images will be named blank.gif.

                    Server side; the red X's will draw a 404 error, you can use .htaccess for just that directory to redirect 404 traffic to blank.gif, but this will have you loose some money from possible 404 traffic. It is an easier fix if you are not the coder on the proejct though.
                    ICQ: 524433
                    Strip Club Reviews

                    Comment

                    • Repetitive Monkey
                      Confirmed User
                      • Feb 2004
                      • 3505

                      #11
                      Originally posted by Repetitive Monkey
                      Reverse }
                      The entirety of "haha123;" should be replaced with this, by the way.

                      Comment

                      • Global Dialers
                        Confirmed User
                        • May 2004
                        • 1349

                        #12
                        thanks for the help everyone

                        roberto basically what im doing is getting a bunch of content ready for upload now for a new cms that we should have finished off today

                        however i also realized that instead of just leaving the content sitting there on the server in a heap of different sub directorys doing nothng i could throw in a simple .php page and create a few million tgp galleries with keywords and all that funky shit for the search engines

                        this is where the blank.gif solution came about because i know some of the directorys will have less images than what i want the basic template php page to have

                        in essence by uploading all the content and then uploading all the php template pages into each of their directorys it gives me a regular amount of galleries that can be linked to from free sites and shit like that as well as tgp submissions to gain additional traffic / revenue for our program when we launch in a few months time which will als give me some traffic for beta testing purposes
                        the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
                        the rest of thegalleries are free placements.

                        Comment

                        • Global Dialers
                          Confirmed User
                          • May 2004
                          • 1349

                          #13
                          sorry another stupid question..

                          would it be best to have the blank.gif location as a url or a server path

                          or dies it not matter either way?
                          the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
                          the rest of thegalleries are free placements.

                          Comment

                          • Repetitive Monkey
                            Confirmed User
                            • Feb 2004
                            • 3505

                            #14
                            Originally posted by Global Dialers
                            sorry another stupid question..

                            would it be best to have the blank.gif location as a url or a server path

                            or dies it not matter either way?
                            Relative is best. You might change domains or something like that later.

                            Comment

                            Working...