Previous Thread
Next Thread
Print Thread
Hop To
#234288 01/30/2010 8:42 AM
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
SD Offline
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
^^ that is even BETTER, Ruben.. ! smile

SD #234301 01/30/2010 5:01 PM
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
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
makes sense smile

Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Originally Posted by Ruben
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
Cuervo #234307 01/30/2010 10:14 PM
Joined: May 2008
Posts: 753
Likes: 1
Old Hand
Old Hand
Joined: May 2008
Posts: 753
Likes: 1
Originally Posted by Cuervo
Originally Posted by Ruben
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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (1 invisible), 875 guests, and 141 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)