Okay, here's the gist of it.
Let's say you post on the Gallery and your post is called, let's say, Last Stand. To post it on the Forums, you would press the [gallery] button and type last-stand. It would look like this, without the spaces:
[gallery] last-stand [/gallery]
I hope that makes sense.