Alamy module

daveozzz
daveozzz's picture

Joined: 2006-07-25
Posts: 70
Posted: Fri, 2006-12-22 11:06

A few people have asked me about an Alamy module I wrote... I've finally got round to posting it.

Basically all it does is to check the contents of an AlamyRef customfield, if it's non-null then an item action is created which, when clicked, will do a redirect to the Alamy site using the image ref as a parameter (thanks to Dave Pattinson for telling me about this link syntax).

Very very basic stuff which would do with a lot more work and is probably buggy. But give it a try if you want.

Prereqs:-
The Custom Fields module.

Instructions:-
1. Create a custom field for all photo objects called "AlamyRef"
2. Download, install and activate the module.
3. For each image you want to link back to Alamy, populate the AlamyRef field with the 6 character Alamy reference number (ensure there are no spaces or newlines following the reference number).
4. Once done you should see a item action saying "License Image" for the image.

Hope it helps someone.

Cheers,
David Osborne
http://www.davidosbornephotography.co.uk

AttachmentSize
alamy.zip2.6 KB
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-12-22 12:16

I think that's an excellent addition!
Can you please add your module at http://codex.gallery2.org/index.php/Gallery2:User_Contributions ?

 
jnekrasz

Joined: 2005-06-13
Posts: 2
Posted: Tue, 2007-01-02 08:48

As a heads up to anyone installing this:

It assumes you have the "Custom Fields" module installed. It isn't installed by default with a typical install.

You can find it on the official module downlad link located at http://codex.gallery2.org/index.php/Gallery2:Download#Modules

--
Joe Nekrasz

 
daveozzz
daveozzz's picture

Joined: 2006-07-25
Posts: 70
Posted: Mon, 2007-06-04 09:59

As a note on the topic of SEO... I found that Google had picked up the Alamy redirect page and indexed it hundreds of times under the results for my site. I've no idea if that was a particularly bad thing or not but I didn't like it.
So I've changed my implementation of this module to create an itemlink to link directly to Alamy rather than redirect via a TPL file.
I won't post the changed module here since it's not an independent change (requires a change to itemlinks.tpl), but if anyone would like to make the same change give me a shout and I'll let you know what I did.

 
hmax

Joined: 2010-02-01
Posts: 1
Posted: Mon, 2010-02-01 09:04

Hello!

I try the alamy modul and it works very fine. - Thank you!

Its possible to open the Alamy-Page in a new Window?

Max