Created the "User Promocode Tab" on the User profile page
created a rules link to generate user affiliate code.
added devel module