They're miniranks if you comment on sections you'll get then between 1-25 posts in that section. They have a limited time that they last for unless you purchase a custom mini - rank. Hope I helped!
If you regularly post in a specific section you are eligible for a mini rank, the blue partyhat minirank is for being active in the Runescape 2007 section