added code for wp-postratings plugin