[alamy] Link under thumbnails

patrickc

Joined: 2014-06-25
Posts: 1
Posted: Mon, 2014-06-30 12:10

Good Afternoon,
I am using the Alamy module from David Osborne but I can't find him anywhere.
The module is working well and all I would like is for the Alamy link to appear under the thumbnails in the search results. If anyone has any idea how to make this happen I would be most grateful.And if anyone knows how to make the link open in a new window I would be even more grateful.

My website is http://picpics.com

Thank you

Gallery version = 2.2-svn core 1.1.25
PHP version = 5.2.17 cgi-fcgi
Webserver = Apache mod_fcgid/2.3.5
Database = mysqlt 5.1.71-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux web6.u2-web.com 2.6.18-471.3.1.el5.lve0.8.72 #1 SMP Wed Mar 12 18:22:20 EDT 2014 x86_64
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2014-07-01 10:45

I can see how having the Alamy link in search results would work well for you but hacking into the search result outputs is not a trivial matter from recollection.

In terms of opening Alamy in a different window, I am afraid it cannot be done with the stock module as it uses a http refresh redirect to go to Alamy. This always opens in the same window.
However, You could try, as a long shot, editing your "SendToAlamy.tpl" file to read:
<meta HTTP-EQUIV="REFRESH" content="0; URL=javascript:window.open('url=http://www.alamy.com/image-details.asp?ARef={$SendToAlamy.alamyref}','_blank');">"

The module author had posted that he developed a hack version (required changing one core file) that used a direct link instead of the http refresh redirect but he asked to be contacted for the details and did not post the details and so, such things get lost!

So you need to track him down and implement his hacked version. Unfortunately, his website/domain is offline.

--
dakanji.com

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-07-01 14:46
Quote:
<meta HTTP-EQUIV="REFRESH" content="0; URL=javascript:window.open('url=http://www.alamy.com/image-details.asp?ARef={$SendToAlamy.alamyref}','_blank');">"

meta refresh no longer works in all browsers.
you could just use plain javascript:
<script>window.open('url=http://www.alamy.com/image-details.asp?ARef={$SendToAlamy.alamyref}');</script>

-s
________________________________
All New jQuery Minislideshow for G2/G3