The TOS is against website where the sole purpose is to host images - think photobucket, flick.r, etc. If you provide the gallery to members of your forum as an added feature for your forum (understand: the forum is the main purpose, not the gallery) then it's perfectly within the TOS.