Quote Originally Posted by Lee View Post
Is there a way to create a simple .php script that i can create a form from to allow a member to hit a page first (or have an actual 'login' form on my paysites) that will read the .htpassword file created by CCBill and allow the member access to my members area if they enter a valid user/pass and if not, have them redirected to back to the tour page?

I actually want to design a couple of sites that have boxes on the tour pages for a username/password and actually have the user redirected to the members area, hopefully still via StrongBox.

How difficult would this be to do?

Regards,

Lee
I don't think you need to create any PHP script or anything. If I'm understanding you
right, you just need to copy and paste some HTML. It sounds like you want to
a) replace the default Strongbox "failed login" page with a tour type page and
b) copy and paste the log in form into some tour pages.

For a), showing the user a sales / tour page when they enter their password wrong:

Either method 1:
In the config.pl, adjust at line #76:
# URL to send them to if they enter a bad password
$errpage = "http://$host/sblogin/badlogin.shtml";

or method 2:
Rename the default sblogin/badlogin.shtml to sblogin/badlogin.default.
Upload your own tour page, perhaps with some elements copied from the default,
like the "try again" and "customer service" links, included.

For b), putting a log in form on a page:
Copy and paste the form from the default log in page. You'll probably want to
remove the "goodpage" field, or set it to your members' URL. If your tour pages
are PHP, copy from login.php.