Plugins » Nivo Slider for gp|Easy 1.0.6

Please include my code for links on images
Topic Closed
andrew
14 Posts

In my post last year, I shared some code that looks for files with a .lnk extension with the same name before the extension as the image file. 

e.g.:   image.png, my code looks for another file image.lnk

for each image that has a corresponding .lnk file, the .lnk file is read and the URL in the file is used to turn the whole image into a hyperlink, using functionality already present in Nivo Slider.

It only checks for LNK files if the config setting to get image captions from text files is set.  There is no way to enter the links in through the UI, as this file based system works well enough for my needs.

I just updated my Gadget.php with the 1.0.6 changes.

A working example can be seen at http://www.cbreurope.sk (square images in middle of homepage, change every 5 seconds, right now I think there are just two, but it should give you the idea).

My Gadget.php can be downloaded: http://www.freedomlives.net/files/nivo_links_1.0.6.zip

I'm not a professional programmer.  I imagine it wouldn't be a good idea to allow an untrusted individual access to upload these .lnk files in case there is some way to cause a buffer overflow, but I guess that risk is already there with allowing the .txt file captions.

 

3 years ago#9450

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register