• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Support URL to pull a random image

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Aug-29-2007, 05:19 PM
#1
Speedie is offline Speedie OP
Major grins
Speedie's Avatar
URL to pull a random image
Hi,
I've found out it's possible to pull a random image from a particular gallery with a URL, eg:

Code:
http://abcdefghijk.smugmug.com/photos/random.mg?AlbumID=99999999&Size=150x150
But what I'd really like is to pull an image selected randomly from across all galleries, is this possible?
Old Aug-29-2007, 05:26 PM
#2
jfriend is online now jfriend
Scripting dude-volunteer
Quote:
Originally Posted by Speedie
Hi,
I've found out it's possible to pull a random image from a particular gallery with a URL, eg:

Code:
http://abcdefghijk.smugmug.com/photos/random.mg?AlbumID=99999999&Size=150x150
But what I'd really like is to pull an image selected randomly from across all galleries, is this possible?
You could use JavaScript and the API to get a list of public galleries and then use JavaScript to pick a gallery randomly and then pull a random image with a URL. Certainly, not as simple as just using a URL, but it could all be encapsulated in a single JavaScript function.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Aug-30-2007, 12:51 AM
#3
Speedie is offline Speedie OP
Major grins
Speedie's Avatar
Quote:
Originally Posted by jfriend
You could use JavaScript and the API to get a list of public galleries and then use JavaScript to pick a gallery randomly and then pull a random image with a URL. Certainly, not as simple as just using a URL, but it could all be encapsulated in a single JavaScript function.
Thanks for your reply. Actually I meant pull a random image from my own galleries (not all public galleries). Is this still doable with a URL? What other parameters does random.mg accept?
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump