I use an open-source php script that allows me to create a photo gallery simply by dragging and dropping photos into a directory. The script is a single php file. It can read directories and create albums on the fly. Currently, when a photo is clicked from a directory it will open a window in the middle of the page and display the photo. I would like someone to make it so it will open photos in a new tab and also uses my linkbucks link.
I have attached the script so you can take a look. Should not be a problem for someone who is experienced in php.