Images linked to external website

Everything to do with Popus for Admiror Gallery.
Post Reply
Message
Author
User avatar
Bretchkin
Posts: 1
Joined: Sun Apr 10, 2011 11:15 pm
Location: Netherlands

Images linked to external website

#1 Post by Bretchkin »

Hi first of all thanks for the nice gallery.
Its simple, straight forward and easy to use.

Although I wondered if it was possible to link the thumb images to an external website.
Like for instance when you want to make a partner list with logo's of your partners which are linked to their site.

Hope to hear from you soon

and sorry for my English ;)

Admiror Gallery 5 - Fundraising Campaign

User avatar
kekeljevic
Developer
Developer
Posts: 445
Joined: Tue Aug 17, 2010 2:38 pm
Location: Novi Sad, Serbia
Contact:

Re: Images linked to external website

#2 Post by kekeljevic »

This gallery didn't build for such a task, but it has an API which contains all You need to make this work.

First, use Image Captions for entry for URL. For example, enter for some image:

Code: Select all

http://www.google.com
Open some AG Template index.php, which You can find in /plugins/content/AdmirorGallery/templates/ and replace:

Code: Select all

$html.= $AG->writePopupThumb($imageName);
with:

Code: Select all

$html.= '<a href="'.$AG->writeDescription($imageName).'"  target="_blank">
'.$AG->writeThumb($imageName,"ag_imageThumb").'
</a>';

Post Reply