You get medals by contributing items. Such as photos, articles, links ect. Depending on how many favorites you have on them, how many likes and such you may get a medal. Also getting Best answers helps. But basically if you submit alot of content that is good then you will get medals.