Random Image script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Plat
    Confirmed User
    • Jan 2002
    • 2680

    #1

    Random Image script

    I'm looking for a random image script that will put 3 random thumbnails on my site that link to their proper gallery page. The thumbs should change on refresh and show new random galleries. I put a small php script on my site that could do it but ended up eating all my server resources in less than 5mins.

    Any help, suggestions?

    Thx Thx
    Im fuckin retired
  • CowboyAtHeart
    Registered User
    • Oct 2002
    • 94

    #2
    I don't see why a php script couldn't handle it, php is generally fairly light unless it's written poorly.
    Is it mod_php or just running as cgi? and what level of traffic?
    <A HREF="http://www.jesussmut.com/">
    <IMG SRC="http://www.jesussmut.com/images/jesusbutton1.gif" BORDER=0>
    </A><br>
    Have a look at <A HREF="http://www.jesussmut.com/">JesusSmut</A>

    Comment

    • Libertine
      sex dwarf
      • May 2002
      • 17860

      #3
      I have something similar around, however, it doesn't dynamically display the thumbnails. That tends to hurt your server with large amounts of traffic, so a cronjob would be a better option.
      /(bb|[^b]{2})/

      Comment

      • Plat
        Confirmed User
        • Jan 2002
        • 2680

        #4
        Ya I was thinking of that on my way home just now. Cronjob it to run every 2mins or so. I'd be pushing approx. 20 runs per second the other way which was bad, I shoulda learned my lesson from something else I wrote awile back.

        Are there any free scripts out there that I could customize...? anyone know?
        Im fuckin retired

        Comment

        • Webby
          Too lazy to set a custom title
          • Oct 2002
          • 14956

          #5
          Plat:

          Try these links..

          http://www.cosmicscripts.com/
          http://www.teca-scripts.com/free/randex.php

          Both have a few scripts that may do what you want!
          XXX TLD's - Another mosquito to swat.

          Comment

          • Libertine
            sex dwarf
            • May 2002
            • 17860

            #6
            Originally posted by Plat
            Ya I was thinking of that on my way home just now. Cronjob it to run every 2mins or so. I'd be pushing approx. 20 runs per second the other way which was bad, I shoulda learned my lesson from something else I wrote awile back.

            Are there any free scripts out there that I could customize...? anyone know?
            Why every 2 minutes? Isn't that still a bit much... I mean, the average surfer doesn't visit the same site twice in 10 minutes, so why force your server to update that often?
            /(bb|[^b]{2})/

            Comment

            • Webby
              Too lazy to set a custom title
              • Oct 2002
              • 14956

              #7
              Plat:

              yea punkworld is right... have a look at these links.. there are scripts there where you could arrange the pics or whatever to display at random by grouping em - no need to run cron... cron is a sledgehammer to crack that peanut!
              XXX TLD's - Another mosquito to swat.

              Comment

              • Plat
                Confirmed User
                • Jan 2002
                • 2680

                #8
                Originally posted by punkworld


                Why every 2 minutes? Isn't that still a bit much... I mean, the average surfer doesn't visit the same site twice in 10 minutes, so why force your server to update that often?
                Well I have categories split on different pages therefore they will see it a few times in 10mins

                I hate to bring this fag as an example but. Sexocean how the galleries rotate after every refresh, I just want 3 galleries to rotate not a million galleries that link to CP and dialers like he does.
                Im fuckin retired

                Comment

                • Libertine
                  sex dwarf
                  • May 2002
                  • 17860

                  #9
                  Originally posted by Plat


                  Well I have categories split on different pages therefore they will see it a few times in 10mins

                  I hate to bring this fag as an example but. Sexocean how the galleries rotate after every refresh, I just want 3 galleries to rotate not a million galleries that link to CP and dialers like he does.
                  In that case, a combo of javascript, a php script and a cronjob would be a good solution.
                  Cronjob runs once daily to make the php script select a bunch of pictures and cram the javascript to go with them in a file, that javascript chooses randomly from those pictures and displays a few of them.
                  /(bb|[^b]{2})/

                  Comment

                  • Webby
                    Too lazy to set a custom title
                    • Oct 2002
                    • 14956

                    #10
                    Plat:

                    Three galleries are a piss thru with random scripts.. totally flexible! I got well over 500 feeder sites that are almost entirely generated using random scripts - dig into em and you will see the possibilities!
                    XXX TLD's - Another mosquito to swat.

                    Comment

                    • Plat
                      Confirmed User
                      • Jan 2002
                      • 2680

                      #11
                      well actually let me rephrase what I said up top.

                      3 images

                      A - B - C

                      with 5 galleries for each letter rotating
                      Im fuckin retired

                      Comment

                      • Dusen
                        Confirmed User
                        • Aug 2002
                        • 2251

                        #12
                        I'll script it for you in PHP and if you want cron commands, let you know how.

                        josh at picjunkie dot com
                        Penis Pill Sponsor List and Reviews:
                        http://www.pillsponsors.com

                        Comment

                        • Plat
                          Confirmed User
                          • Jan 2002
                          • 2680

                          #13
                          I emailed you Josh.

                          If anyone else can help I can pay you back with traffic if you like.

                          Thanks
                          Im fuckin retired

                          Comment

                          • grumpy
                            Too lazy to set a custom title
                            • Jan 2002
                            • 9870

                            #14
                            its easy done in java
                            I will post it for you

                            How many thumbs / links are there?
                            Don't let greediness blur your vision | You gotta let some shit slide
                            icq - 441-456-888

                            Comment

                            • Plat
                              Confirmed User
                              • Jan 2002
                              • 2680

                              #15
                              Originally posted by grumpy
                              its easy done in java
                              I will post it for you

                              How many thumbs / links are there?
                              5 thumbs displayed at one time for 25 galleries
                              Im fuckin retired

                              Comment

                              • grumpy
                                Too lazy to set a custom title
                                • Jan 2002
                                • 9870

                                #16
                                whats your icq?
                                Don't let greediness blur your vision | You gotta let some shit slide
                                icq - 441-456-888

                                Comment

                                • Plat
                                  Confirmed User
                                  • Jan 2002
                                  • 2680

                                  #17
                                  45580484
                                  Im fuckin retired

                                  Comment

                                  • grumpy
                                    Too lazy to set a custom title
                                    • Jan 2002
                                    • 9870

                                    #18
                                    sample
                                    just look at the source of the page, its a simple one.
                                    If you need modifications let know.
                                    Don't let greediness blur your vision | You gotta let some shit slide
                                    icq - 441-456-888

                                    Comment

                                    • Webby
                                      Too lazy to set a custom title
                                      • Oct 2002
                                      • 14956

                                      #19
                                      grumpy:

                                      Neato one!
                                      XXX TLD's - Another mosquito to swat.

                                      Comment

                                      Working...