You're right, that's possible... you can do it with PHP using a querystring on your URL. You'll need to add something like this somewhere on your gallery:
PHP Code:
<?php
// this checks if the "pop" querystring is available on the URL code. If if it, use it to determine if it should redirect or not; if it's not available, use no pop as default.
//If you want to use pop as default just change $pop = 0 to $pop =1
if (isset($_GET['pop'])) { $pop = $_GET['pop']; } else { $pop = 0; }
// edit the urls here...
if ($pop == 0) $gotourl = "http://www.yourdomain.com/nopop.html";
if ($pop == 1) $gotourl = "http://www.yourdomain.com/pop.html";
?>
Then on your link you will have something like this:
Code:
<a href="<?=$gotourl?>">Text</a>
All webmasters will need to do is adding a ?pop=0 suffix on the url if they don't want popups or 1 otherwise. Let's say your gallery is named gallery.php, so the two alternatives would be:
http://www.yourdomain.com/gallery.php?pop=0 (no popups)
http://www.yourdomain.com/gallery.php?pop=1 (with popups)
I'm pretty sure that will work even though I haven't tested the code above
Best Regards,
Thiago Dickman