![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Join Date: Oct 2002
Posts: 94
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
sex dwarf
Join Date: May 2002
Posts: 17,860
|
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})/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
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! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
__________________
/(bb|[^b]{2})/ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
Quote:
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 ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Quote:
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})/ |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
I'll script it for you in PHP and if you want cron commands, let you know how.
josh at picjunkie dot com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
I emailed you Josh.
If anyone else can help I can pay you back with traffic if you like. Thanks
__________________
Im fuckin retired ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
Quote:
__________________
Im fuckin retired ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
whats your icq?
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Location: Clearwater, Florida
Posts: 2,680
|
45580484
__________________
Im fuckin retired ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
grumpy:
Neato one! ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |