I tested it several ways:
1. I reinstalled all vbgallery files and templates. Problem is still there.
2. I reinstalled all vbulletin and vbgallery files, then reinstalled all forum and gallery templates. Problem is still there.
3. I installed fresh copies of vbulletin and vbgallery on a local machine (running XAMPP Version 1.6.8). Created categories in vbgallery, uploaded several pictures. Problem is still there.
For some reason it won't show image id and show different category id when you go to the image display page from gallery home page or upper level categories and click on "next" or "previous" links.
e.g. It gives this URL before clicking on "next" or "previous" links:
[mysite]/gallery/showimage.php?
i=328&c=1
when it should be:
[mysite]/gallery/showimage.php?
i=328&c=35
(no error warning yet)
When I click on "next" or "previous" from:
[mysite]/gallery/showimage.php?
i=328&c=1
I get this:
[mysite]/gallery/showimage.php?
i=&c=1 with error warning.
It's gotta be a bug. May be it has to do with UTF-8 encoding? But why would it?
Try testing it locally. When creating database, select utf8_unicode_ci collation. Snapshot is attached.
Upload forum and gallery files. Edit language in admincp (set to UTF-8). Upload several pictures and test it.
I know you know all the steps, I just want you to be able to reproduce the bug.
Update: I just tested it locally with latin1 (latin1_swedish_ci), same results. So, it has nothing to do with encoding. At least now I know for sure UTF-8 is not a suspect.