In the MOD notes there is a funny tick (`) after Handymman- when moving the DB (or restoring a backup) this got changed to special characters which (I think) broke the tabbing in ACP creating two PHPBB GALLERY entries with different info instead of the .MOD and AUTOMOD tabs which weren't present. Here's the DB compare where I found the issue:

Second my referer list got a space introduced- " sportsmobileforum.com". I'm not sure if this was me fat fingering it, but my images where broken on the dev and production verson of sportsmobileforum.com and this visually unobvious mistake didn't show up until I got around to tracking down the specific "You are not authorised" error. Instead of taking out the space, here is my fix- there is probably a cleaner way to do this:
in gallery/image.php:
Find:
- Code: Select all
if (!in_array($check_referer, $good_referers))
BEFORE Add:
- Code: Select all
$gr_count = 0;
foreach ($good_referers as $gr) { $good_referers[$gr_count] = trim($good_referers[$gr_count]); $gr_count++; }
Find (Again:)
- Code: Select all
if (!in_array($check_referer, $good_referers))
REPLACE with:
- Code: Select all
if (!in_array(trim($check_referer), $good_referers))
Also since image.php is actually used to render the images on the gallery list and gallery pages, and in lytebox, instead of getting any error I got only red 'x' broken images, and in lytebox a never loading progress circle... this led me after a lot of Red Herrings because the only time the error message that actually meant something like "bad referer" came up is when trying to open the image directly.
At least within the forum I would like to see a bad referer (instead of not authorised) message, and see it more places a small issue like this affects.
Hope this helps- Thank you for all your hard work... my users have been clammoring for their galleries back ever since I move to phpbb3 last month, and I will finally be able to provide them with them again.
Cheers!