URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushp_general_purpose
Thread Number: 304
[ Go back to previous page ]

Original Message
"Affiliate User header & footer"

Posted by Patrick [kriptap@candw.ky] on at 09:22 PM
Is their a way to add a header and footer to the log in screens for a user checking their affiliate status? Also how can I change the default table color from light grey to red?

Thanks


Table of contents

Messages in this discussion
"RE: Affiliate User header & footer"
Posted by Bill Weiner on at 09:53 PM
To customize that "Affiliate Login" screen, you would have to modify the "create_affiliate_login" subroutine in the ushop-lib.pl script. Here are some tips on how:

STEP 1: Make a backup of your current "ushop-lib.pl" script... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a seach on the following line:

sub create_affiliate_login

This will get you to the start of the subroutine that displays the affiliate login form. You should be able to recognize the HTML in that subroutine... so you can modify it as desired.

STEP 4: After making the modifications, save the script... as TEXT if your editor asks... and try it out!

Good luck!


"Quick Way"
Posted by Patrick [kriptap@candw.ky] on at 03:24 PM
Is their a one line quick way of inserting a header and footer that you know of.

Thanks


"RE: Quick Way"
Posted by Bill Weiner on at 07:34 PM
I don't know what type of "header" and "footer" you want to put on that form, but as an example, if you want to add an image, then you might add this line:

print " < IMG SRC=\"http://www.mydomain.com/myimage.gif\" > ";

Directly after the BODY line:

print " < BODY BGCOLOR=\"#FFFFFF\" > ";


And as for changing the color of the login box from gray to red... then in that subroutine, you would just change the color:

#D0D0D0

to something like

#FF0000