User Login    
 + Register
  • Main navigation
Login
Username:

Password:


Lost Password?

Register now!
Fast Search
Slow Search
Google Ad



Browsing this Thread:   1 Anonymous Users





#1 random pics
mperdue Posted on: 2005/8/8 23:25
Just wanted to say how much I love the random pic generator on the top right of the home page. I find lots of great stuff there. Is there any way for the site owner/programmer to set up a random pic page where you can view several at once so you dont' have to reload the main page to see another one? I for one would use it a lot.
michael


#2 Re: random pics
dattodude Posted on: 2005/8/9 1:22
Well, it's not real hard:

Example of a thumbnail link:

http://datsun1200.com/modules/myalbum/photos/thumbs/4184.jpg

Look for latest photo "number" at:
http://datsun1200.com/modules/myalbum/

Get max photo value in the page text: "There are 6970 Photos in our Database, add a new one."

So we know that values from 1 to 6970 are valid.

So you just use a script to markup a page with as many thumbs as you want using IMG references like:

http://datsun1200.com/modules/myalbum/photos/thumbs/XXX.jpg

Where XXX is a number from 1 to 6970.

Easy. I'll make it up from my site if you like. I should be able to write it up tonight.

Chris


#3 Re: random pics
mperdue Posted on: 2005/8/9 4:47
Cool - please post a link when it's done! It does sound easy but I dont' know how to write a program like that. I only have very basic HTML "skils".
MIchael


#4 Re: random pics
dattodude Posted on: 2005/8/10 14:59
Ok, so every minute of the day 9 new photos are shown at:

http://www.shoeys.com/datsun/datsun1200.html

There might be a broken link or 2, but the errror checking ain't worth it. Just wait 60 seconds for the next set to appear.

Let me know if you think it's cool.

Cheers,
Chris


#5 Re: random pics
evilsim Posted on: 2005/8/10 15:37
good work dattodude your 1337 html skillz0rs dont go unnoticed around here
ive bookmarked it and already found a few phat photos through it as well ---> Open in new window

including this beauty


#6 Re: random pics
mperdue Posted on: 2005/8/10 15:41
Yeah thanks dattodude - just what I was looking for!!

I don't want to be a nit-picker but is it possible for the link to go to the photo page that shows the comments etc instead of just the pic? for example this page:

http://datsun1200.com/modules/myalbum/photo.php?lid=7006
instead of this one
http://datsun1200.com/modules/myalbum/photos/7006.jpg

That way you can see the discussion about the pic and repond. IF it's too much trouble that's no problem - i can cut and paste ".php?lid=" and put .jpg at the end. Thansk again for the link!

Michael


#7 Re: random pics
dattodude Posted on: 2005/8/10 23:41
Yeah, I guess that could work.. I'll change in the next 12 hours.


#8 Re: random pics
AndyNXSE210 Posted on: 2005/8/11 3:26
Open in new window


Oh dear....


#9 Re: random pics
dattodude Posted on: 2005/8/11 4:53
I guess this is the problem with random pictures..

Funny though.


#10 Re: random pics
dattodude Posted on: 2005/8/11 9:52
Changed the refresh to 2 minutes, and fixed the link to bring you back here.

So enjoy.

Chris






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]