There are currently 8 different types of ranks.
Donator ranks (RS Items w/ Coins in the center) are given out based on how much you donate to Sythe. $5, $25, $50, $100, $200, $300, and then custom ranks (an item/image of your choice) for more than $300.
Partyhat ranks, in yellow, are given only given to Administrators. Their is also the head middleman rank (red phat in-between dragon squares) which belongs to Nick, and the Prince Yobabo rank (a fun rank, given out by the Ex-Admin Finn). The Highly Respected rank (3 Green Phats) as far as I know, is given when a user is honest, hardworking, trustworthy, and respectable.
The Highly Trusted rank comes from being, well, Highly Trusted. Only users who show an extreme number of vouches, or have been known to provide excellent, trustworthy services to the community for a substantial amount of time receive this rank.
Moderator ranks (Santa Hats, with an item in the center, based on the section) are ranks given to users who supervise certain sections. For example, the Market Mod rank (2 santa hats with an obsidian shield in the center) is given to those who moderate in the Market sections.
Global moderator (3 Santa Hats) is given to those who supervise over ALL sections, but are not Administrator.
The Official Middleman (OMM) rank is given to those who pass the official middleman application, after proving that they are trustworthy enough.
Lastly, Fun Ranks (Cracker Head, Mudkip, Zombie Head, Prince Yobabo) are ranks that have no meaning, and are simply distributed by moderators as a fun reward for certain achievements.