Gossamer Forum
Home : Products : DBMan : Installation :

New signups won't work

Quote Reply
New signups won't work
I guess I've tried setting the authorizations in DBman every which I can, but I can't get the "allow
new users to sign up" to work. The database seems to work, but I don't get any links for someone
to sign up and get a userID and password.

try it at:
http://htmlsitedesign/cgi/db/database.cgi?db=original

here is the cfg file, hope someone can help:


ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 255, 1, '', ''],
URL => [2, 'alpha', 40, 255, 1, 'http://', '^http://'],
Type => [3, 'alpha', 0, 60, 1, '', ''],
Date => [4, 'date', 12, 15, 1, &get_date, ''],
Category => [5, 'alpha', 0, 255, 1, '', ''],
Description => [6, 'alpha', '40x3', 500, 0, '', ''],
Validated => [7, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],
Popular => [8, 'alpha', 0, 3, 0, '', ''],
Userid => [9, 'alpha', -2, 15, 0, '', '']
);


# Authorization Options
# --------------------------------------------------------
$auth_no_authentication = 0; # was 0, orig
$auth_time = 21600; # 6 hours (in seconds)

$auth_logging = 1;
$auth_allow_default = 0; # was 0, orig
@auth_default_permissions = (1,0,0,0,0);
$auth_signup = 1;
@auth_signup_permissions = (1,1,1,1,0);
$auth_modify_own = 0; # this was 0, orig - maybe get signup now
$auth_view_own = 0;
$auth_user_field = 9;



Last edited by:

LoisC: Dec 11, 2001, 10:38 AM
Quote Reply
Re: [htmlsitedesign] New signups won't work In reply to
In your html.pl file in both
sub html_login_form and sub html_login_failure

After:

<TR align=center><TD colspan=2><INPUT TYPE="SUBMIT" name="login" VALUE="$submit_button"> &nbsp; &nbsp; <INPUT TYPE="SUBMIT" NAME="logoff" VALUE="$reset_button"></TD></TR></TABLE></CENTER></FORM><P>

Add:

|;
if ($auth_signup) { print qq|<CENTER><$font><B>You can sign up for an account by <a href="$db_script_url?db=$db_setup&signup_form=1">Clicking HERE</a></B>.</font></CENTER><P>|;
}

You can also add a link your your html footer to the signup form.

Hope this helps


Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] New signups won't work In reply to
Lois, thanks for the pointer in the right direction. The code you supplied didn't quite work either, but after going over and over it, I just quit for a while and had a Pepsi. Then it hit me, what you turn off ( |; ) you have to turn back on to finish printing out the page. So simply added a print qq| after your last " } " to finish out the html page and it worked perfectly.

Thanks zillions !!!!Wink