Creating Link from Galleries

acwilliamsacwilliams Registered Users Posts: 1 Beginner grinner
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...

Comments

  • NikolaiNikolai Registered Users Posts: 19,035 Major grins
    edited May 1, 2005
    May I ask why?
    acwilliams wrote:
    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:
    < 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!"
  • onethumbonethumb Administrators Posts: 1,269 Major grins
    edited May 1, 2005
    acwilliams wrote:
    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
Sign In or Register to comment.