GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Random Image script (https://gfy.com/showthread.php?t=84109)

Plat 10-22-2002 12:05 PM

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

CowboyAtHeart 10-22-2002 12:17 PM

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?

Libertine 10-22-2002 12:49 PM

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.

Plat 10-22-2002 12:51 PM

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?

Webby 10-22-2002 01:02 PM

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!:glugglug

Libertine 10-22-2002 01:06 PM

Quote:

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?

Webby 10-22-2002 01:12 PM

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!

Plat 10-22-2002 01:14 PM

Quote:

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.

Libertine 10-22-2002 01:17 PM

Quote:

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.

Webby 10-22-2002 01:18 PM

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!

Plat 10-22-2002 01:20 PM

well actually let me rephrase what I said up top.

3 images

A - B - C

with 5 galleries for each letter rotating

Dusen 10-22-2002 06:22 PM

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

josh at picjunkie dot com

Plat 10-22-2002 07:08 PM

I emailed you Josh.

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

Thanks

grumpy 10-22-2002 07:09 PM

its easy done in java
I will post it for you

How many thumbs / links are there?

Plat 10-22-2002 07:20 PM

Quote:

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

grumpy 10-22-2002 07:24 PM

whats your icq?

Plat 10-22-2002 07:30 PM

45580484

grumpy 10-22-2002 07:32 PM

sample
just look at the source of the page, its a simple one.
If you need modifications let know.

Webby 10-23-2002 08:12 PM

grumpy:

Neato one!:thumbsup


All times are GMT -7. The time now is 07:30 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123