I do contract work for a living, which could include writing a program such as this. However, I don’t do people’s homework for them. That just robs them of an education.
You have my full permission to implement this project in any way you please and to keep all the profits from your endeavor.
The database tracks which products are handled by which vendors. That way I can look up by product or by vendor or products or any other plausible SQL query.
It also tracks the HTML for the links currently inserted. You can change the HTML in the database and have it propagated to wherever it was used in the website. Spots for HTML to be inserted are marked with:
The affiliate manager also tracks the date you last refreshed the link code from the service bureau. It can then warn you to test or refresh old link HTML.
This way, if the vendor changes the HTML required, you only have to change the template in the database, not every product instance. The templates might be written as Java classes the way Poster works or as sample HTML text marked with XXXXX where the product-id fits in.
You need tools to take sample HTML and convert it to templates which consist of a skeleton, and a set of plug in numbers such as the product number, the banner image name, and the width and height of the banner. You then need store only the numbers, and the template id in the product database, and regenerate the HTML link as needed. The template could be a data structure or Java source code that is compiled. You might look at the logic in Quoter for some ideas.
The idea is, if the service bureau changes your associate id, you don’t have to manually change each link. You just change the template, and all products using that template are automatically fixed. Ditto for a change in the format of the bubblegum for creating a link
Banners served by the service bureau can greatly slow down your page loads. I find it best to lie to the service bureau that I am doing text-only links and supply my own local banner. You want to be able to pull off this stunt at the press of a button in the affiliate manager.
The affiliate manager should generate test pages of HTML that contain links to various products labeled with affiliate and product. You can then quickly review how they look and perform without having to chase all over your entire website. Sometimes vendors drastically change the look of a banner. I found for example ads for a gay dating service changed to ones for a straight dating service without my permission! You need to monitor these errors visually. Broken link detection won’t suffice.
The affiliate manager should also generate individual test pages for a product to validate with HTMLValidator. You can then import the cleaned up HTML back into your database, in html or template form.
Then in the database you can rename the products to something meaningful, (which will then rename the embedded website markers). In the database you can detect patterns, and replace them with templates, and generally tidy up the HTML. You can export it into test pages and eventually get it all correct. Some links will have to be deleted altogether since they point to non-existent products or service bureaus. You typically want to manually touch up the HTML on your website since surrounding text will likely have to change as well. Ideally you replace the link with a better link, perhaps from a different service bureau, or perhaps a direct royalty-free link to the vendor when no service bureau exists.
The idea is your links to products use your invariant names in embedded markers. The database decides on the service bureau, if any, and the sort of HTML needed to represent that link.
Your program can come preconfigured with the URLs of many serivce bureaus and companies that handle their own programs. It could be preconfigured with template extraction code. At the very least you want to verify that the affiliate id in the HTML is up to date.
Instead of the database manager modifying the website HTML, you could generate the HTML link code on the fly using JSP or other Servlet approach.
If you get this working, I’d love to be your first customer or beta tester.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.58] | |||
| You are visitor number 4,653. | |||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | ||
| http://mindprod.com/project/affiliatemanager.html | J:\mindprod\project\affiliatemanager.html | ||