|
|
Joined: Feb 2007
Posts: 209
Enthusiast
|
Enthusiast
Joined: Feb 2007
Posts: 209 |
Does any one have the code to pull random images from a galary and put them in a custom island?
Thanks.
-Tim
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
cache_builders/gallery_island.php is perty close to what you'd need..
just limit the query to return ONE image and add a rand to the query..
coupla other tweaks and bada bing.. eg: you wouldn't load a .tpl file, but instead format things the way you want them..
Yarp's birthday custom island is an example of how to format stuff..
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Also Rick posted a widget for a random images island from the ubb gallery. HERE
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
^^ that is even BETTER, Ruben.. !
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Well the only problem with the query it finds old orphaned gallery files deleted in older releases also. It was a quick plug in by Rick.
You can see it here,the bottom right island.
They will not work when you select the image to view the full image when they were orphaned pictures deleted in older versons. The thumbnails appear because they are orphaned but the medium,large files are gone so....
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
makes sense
|
|
|
|
Joined: Feb 2007
Posts: 209
Enthusiast
|
Enthusiast
Joined: Feb 2007
Posts: 209 |
Well the only problem with the query it finds old orphaned gallery files deleted in older releases also. It was a quick plug in by Rick.
You can see it here,the bottom right island.
They will not work when you select the image to view the full image when they were orphaned pictures deleted in older versons. The thumbnails appear because they are orphaned but the medium,large files are gone so.... Well, I would be glad to get the code that runs the random image on this forum, tbh. I was using photopost and had a great random script that work with that software, but have made the move to using the built in gallery function.
-Tim
|
|
|
|
Joined: May 2008
Posts: 753 Likes: 1
Old Hand
|
Old Hand
Joined: May 2008
Posts: 753 Likes: 1 |
Well the only problem with the query it finds old orphaned gallery files deleted in older releases also. It was a quick plug in by Rick.
You can see it here,the bottom right island.
They will not work when you select the image to view the full image when they were orphaned pictures deleted in older versons. The thumbnails appear because they are orphaned but the medium,large files are gone so.... Well, I would be glad to get the code that runs the random image on this forum, tbh. I was using photopost and had a great random script that work with that software, but have made the move to using the built in gallery function. Ruben posted a link to the code a couple posts up....
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
|
|
|
|
Joined: Feb 2007
Posts: 209
Enthusiast
|
Enthusiast
Joined: Feb 2007
Posts: 209 |
Thanks, I didn't even see it.
-Tim
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (1 invisible),
875
guests, and
141
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|