• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks Creating Link from Galleries

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 May-01-2005, 11:12 AM
#1
acwilliams is offline acwilliams OP
Beginner grinner
Creating Link from Galleries
Does anyone know how to create a link from a gallery?

I would like like visitors to be able to link back to the site that they came from...
Old May-01-2005, 11:43 AM
#2
Nikolai is offline Nikolai
Darth SLR
Nikolai's Avatar
May I ask why?
Quote:
Originally Posted by acwilliams
Does anyone know how to create a link from a gallery?

I would like like visitors to be able to link back to the site that they came from...
Ain't ALL the browsers already have the BACK button (and Return key on the keyboard?) Why waste your valued screen real esate for something which is ALWAYS there for free?

Otherwise just google for "javascript back", you'll find a lot of code snippets, like this one:

Code:
 < form >
< input type="button" value="Back" onclick="history.back()" >
< /form >
which would result into smth like follows
<form>
<input type="button" value="Back" onclick="history.back()">
</form>

HTH
__________________
"May the f/stop be with you!"
Star*Explorer: on Dgrin, home; Master Class: open;
Class is in session, My Facebook, @DarthSLR, #NiksTips
member: NAPP, PPA, partner: Adobe
Comprehending life, universe and everything - one pixel at a time
Old May-01-2005, 11:51 AM
#3
onethumb is offline onethumb
SmugMug CEO & Chief Geek
onethumb's Avatar
Quote:
Originally Posted by acwilliams
Does anyone know how to create a link from a gallery?

I would like like visitors to be able to link back to the site that they came from...
The API exposes the gallery URLs, so you can easily make a call using REST or XML-RPC if that's what you're looking for.

Alternatively, you can build the URL manually. The form is always of:

[PROTOCOL]://[HOSTNAME]/gallery/[ALBUMID]/{PAGE}/{IMAGEID}/{SIZE}

Where:

PROTOCOL = http
HOSTNAME = NICKNAME.smugmug.com OR www.smugmug.com OR custom domain
ALBUMID = the # of the gallery
*PAGE = the page #
*IMAGEID = the specific photo #
*SIZE = what size of photo is desired.

{} * = optional

Don
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