Does that post look right to you?
Do you see anyone here slapping codes in their post like they're a piece of wet paper?
Put the code in [php] or [code] tags if you want people to help you rather than get a seizure.
Also, if you have no clue of how to code stuff, you should post in the Plugin Requests section.