Plugins » Nivo Slider for gp|Easy 1.0.6

Please include my code for links on images
Topic Closed
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 (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:

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.


6 years ago#9450

Topic Closed



elFinder 2.1.50 in Upcoming Release

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1

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

More News

Log In