Gallery2 ImageBlock Patch
Gallery2 is a cool gallery I use for my public photoarchive. I do use a function called ImageBlock to get a random picture on my start-page. Unfortunately this function misses some options, and as I couldn't convince the programmers to add the option of 'no link to anywhere for that picture' into their code, I decided to do it on my own. Well, here's the result, you can download it and apply the patch on your own.
Patch the gallery (in Debian) after a clean install with the following commands:
root@galleryserver:/# cd /usr/share/gallery2/modules/imageblock/
root@galleryserver:imageblock/# patch -p1 < /etc/gallery2/linkpatch2.1
Where linkpatch2.1 is my patchfile.
After the patch you can let your code use the g2_link target like this for no link at all:
&g2_blocks=dailyImage&g2_show=title&g2_itemId=1234&g2_link=none'); ?>
You can also replace 'none' by any link you want.
In case you find this cool, urge the developers in the forum to merge this code into the main gallery code!
Get the linkpatch here: Download
Deutsch 