Gossamer Forum
Home : Products : DBMan : Installation :

Wont Register New members?

Quote Reply
Wont Register New members?
I wanted to set up my database so it will register new people so they can add their own items to the database. Well I go to:

$auth_signup in the default file, make sure it is set to 1, it is. Then I went and tried it again, just to make sure by going to

http://server.com/...base/db.cgi?signup=1

It still wont work, that url might be wrong but I have my actual link saved in my book marks. No need to plug myself truthfully.

It keeps taking the sign up page to the Log On page, I don't know why though. I guess I'll give the links so everyone can see:

http://epona.tainted-butterfly.com/database/db.cgi Thats the Database
http://epona.tainted-butterfly.com/...base/db.cgi?signup=1 Thats the registering for new login and password link, see it takes them to the Log On page.

Did I not change something I should have? I used JPDeni's configurator to change the permissions and what not for default users but I have no problems with it what so ever. It does not give me errors with the database or anything, so I'm sure it's something I did and not any bugs with the configuator. That thing is a savior by the way! lol
Quote Reply
Re: [VMinder] Wont Register New members? In reply to
The link you want is

..../db.cgi?signup_form=1

Glad you like the Configurator. :-)


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Wont Register New members? In reply to
It still takes me to a Log In Screen and wont let me register the new members :-/
Quote Reply
Re: [VMinder] Wont Register New members? In reply to
Alright, so I was able to fix that...I accidently forgot to activate registered user creation. Though now, my permissions aren't working right. I have it set up like this:

Code:

# Authorization Options
# --------------------------------------------------------
# No Authentication? (1 = "there is no authentication", 0 = "there is authentication")
# If you choose no authentication, then set the permissions of what
# people can do with: @auth_default_permissions below.
$auth_no_authentication = 0;
# The amount of time in seconds that user files are kept in the
# auth directory before the program removes them. 2-6 hours is
# probably a good value.
$auth_time = 21600; # 6 hours (in seconds)
# Enable (1) or disable (0) logging.
$auth_logging = 1;
# Allow a default user? This means you can specify a user via the URL
# and skip the logon process. Use this to allow people to search without
# logging on, but require log in if they want to add/modify/remove etc.
# (1 = "yes", 0 = "no")
$auth_allow_default = 1;
# Default permissions used if there is no authentication, or for a default
# user. (View, Add, Delete, Modify, Admin), 1 = enable, 0 = disable.
@auth_default_permissions = (1,0,0,0,0);
# Allow people to sign up for their own userid/passwords? They will
# recieve default permissions.
$auth_signup = 1;
# Permissions a new signup should get.
@auth_signup_permissions = (1,1,0,1,0);
# Registered users: can modify/delete _only_ own records. For this to make
# sense you should set default off or to 1,0,0,0.
$auth_modify_own = 1;
# Registered users: can view _only_ own records. For this to make sense
# you should turn off default permissions.
$auth_view_own = 0;
# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = 0;
# URL to send user if they chose log off. Leave blank and the script will return to
# the logon prompt (although this only makes sense if you are using authentication).
$auth_logoff = "http://www.tainted-butterfly.com/epona/database/";

I set it up so registered users my Add and Modify their own records as well as View all records in the database. But it's not working.
Quote Reply
Re: [VMinder] Wont Register New members? In reply to
How is it not working?


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Wont Register New members? In reply to
Well now it is working but the ID isn't working, I have the form set up like this:

ID
Name

Well it takes the name part and adds some wierd letter to the end of it now.
Quote Reply
Re: [VMinder] Wont Register New members? In reply to
Can you tell me what the weird letter is?

Can I sign up for an account so I can see what's going on?


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Wont Register New members? In reply to
Yeah you can sign up,

It's wierd, it's for a horse game I set the database up for. Every time a member signs up, they'll put in like Owner name, wont touch the ID. And it kinda goes like this, if you view the database, you can see it was working right and now it wont.

Heres an example:

ID: Elaing
Owner Elaine

It changes the last letter with each registraton depending on the Owner name.
Quote Reply
Re: [JPDeni] Wont Register New members? In reply to
Do you have the following defined as your userid field within your .cfg file?

# Auth user field. This is the field position in the database used for storing
# the userid who owns the record. Set to -1 if not used.
$auth_user_field = 0;

I noticed in your links your not including the name of the db file. Such as:

http://epona.tainted-butterfly.com/database/db.cgi?signup=1

should be:

http://epona.tainted-butterfly.com/database/db.cgi?db=default&signup=1

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [VMinder] Wont Register New members? In reply to
Okay. Now I see what's going on.

I'll bet you changed the following line:

$auth_user_field = 0;

after you added 6 records.

By setting the $auth_user_field to 0, you have told the script to put the user name into the ID field. Then, since you obviously also have set $db_key_track = 1;, when the script encounters a second record that has the same user name, it increments the last letter. So you have "Elaine", "Elainf", "Elaing" and so on.

The first thing you need to is to change the $auth_user_field. If you want the Owner field to automatically have the userid in it, then set

$auth_user_field = 1;

If you want the users to enter their own names in the Owner field, then add a new field -- something like "userid" -- and set

$auth_user_field = 14;

assuming that your userid field is field number 14. I may have counted wrong. :-)

If you add another field, you will need to delete your current .db file and start over from scratch. Otherwise your records will be all messed up.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Wont Register New members? In reply to
Thanks JPDeni, you have been a doll with helping me with this. I was able to fix it by what you gave me could be the errors. I have the Owner/Userid field as the 2nd field so I changed:
$auth_user_field = 1;

to

$auth_user_field = 2;

and it worked from there. Now if I added more fields, but did not change where the Owner/UserID field belongs will it still work or will have still have to start from scratch??


By the way sorry for so many questions but I figured this was better than asking tons of questions and creating new threads for each. That would flood the board and I don't want to do that.

Last edited by:

VMinder: Dec 6, 2005, 3:08 PM
Quote Reply
Re: [VMinder] Wont Register New members? In reply to
Quote:
I have the Owner/Userid field as the 2nd field

Remember that the first field is field 0, the second field is field 1, the third field is field 3... You must go by the field number. I suppose if it works, things must be going okay.

If you add more fields, the easiest way to deal with it is to start from scratch. You can add enough delimiters to account for the new fields, but it's complicated and if you make a mistake, it'll mess things up. It's better to just start with a blank .db file.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.