This article explains how to create an affiliate banner.
To add the affiliate ID of the user, you need to add the jaffid=[your id] from the html code generated. You can find your affliate ID from the My Programs menu that can be created by following above guide.