I have fancybox working fine on my localhost setup, when using a href tag like this:
<a href="http://localhost/wordpress/wp-content/uploads/2014/10/example.jpg" rel="gallery"></a>
however, when I use code such as this:
<a href="./download/file.php?id=529" rel="gallery"></a>
fancybox doesn't pop up it just loads the image over the existing page.
I'm using phpbb, and I want to be able to click an attached image on the forum and for it to open with fancybox. All phpbb file attachments are saved into the 'files' folder of phpbb with a randomized name and without an extension (for security purposes.)
If anybody could point me in the right direction i'd be very grateful! :)