Gossamer Forum
Home : Products : DBMan : Customization :

first Time users

Quote Reply
first Time users
I made all the changes I thougt should have been made and it does not work. To refresh what I would like to happen. When a new user clicks on the Signup button on my front page. I want them first to go to a page where they enter their name address and phone number. Then go to the next page where they choose a user name. I have the auto password setup and running. But now, when the new user clicks Signup <a href="http://sherwingaddis.hypermart.net/cgi-bin/dbman/db.cgi?member_form">Sign Up</a> They go directly to the Log on screen and does not display the Information screen I would like them to go to first. The code is located at: http://www.jse.net/testsite/members_html_pl.txt http://www.jse.net/testsite/members_db_cgi.txt http://www.jse.net/testsite/members_default_cfg.txt

------------------
Sherwin Sales@jse.net


------------------
Sherwin Sales@jse.net
Quote Reply
Re: first Time users In reply to
You're trying to do it backwards. Here;s what can be done easily, and the mods already exist for it. Once a new user gets their password sent to them, they log in for the first time and can be taken directly to their record in your database. You can make their name, address and phone number fields required (and any other fields you want to make mandatory)

The code you want is at this post, among others:
http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000855.html

I have this feature working in my database and it works great once all the kinks are worked out.
Quote Reply
Re: first Time users In reply to
ER,
Thanks for the reply. I checked the like and it does not seem as though the whole codes is there for the mod. Could you post the entire mod? It would be greatly appreciated!

------------------
Sherwin Sales@jse.net
Quote Reply
Re: first Time users In reply to
Okay, look here then: http://www.gossamer-threads.com/scripts/forum/resources/Forum12/HTML/000617.html
Quote Reply
Re: first Time users In reply to
Thanks for the link but I need to know what to put where it says [enter the formatting for the top of your pages here] and [enter the formatting for the bottom of your pages here] .

sub html_verify_accounts { open (PASSWD, "<$auth_pw_file") or &cgierr("unable to open password file. Reason: $!\n"); @passwds = <PASSWD>; close PASSWD; foreach $pass (@passwords) { @data = split ":",$pass; undef %rec; %rec = &get_record($data[0]); if (!%rec) { push (@list,$data[0]); } } [enter the formatting for the top of your pages here] if (!@list) { print "All users have records in the database"; } else { print "The following users do not have records in the database:<BR>"; foreach $user (@list) { print "$user<BR>"; } } [enter the formatting for the bottom of your pages here]

------------------
Sherwin Sales@jse.net
Quote Reply
Re: first Time users In reply to
ER,
I got most of the mod working. But I the problem that I am having now is that the add screen keeps coming up. I am puting the names in one database file ie member.db and the information that the clients need to access is in the default.db. They can not access it after entering the information for the member.db. How do I get them back to the default.db after filling out the Member Info form?

http://www.jse.net/testsite/members_db_cgi.txt http://www.jse.net/testsite/members_html_pl.txt http://www.jse.net/testsite/member_default_cfg.txt

------------------
Sherwin Sales@jse.net
Quote Reply
Re: first Time users In reply to
Sherwin,

Hello. De ja vu! I just provided some codes and advice to Marcus.

Here is what you have to do:

Add the following codes in your db.cgi file:

Code:
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'members');

BELOW the following codes:

Code:
$in{'db'} ? ($db_setup = $in{'db'}) : ($db_setup = 'default');

Then in your html.pl file, change the following codes in your html_add_form:

Code:
<input type=hidden name="db" value="$db_setup">

to the following:

Code:
<input type=hidden name="db" value="default">

Then in your sub html_member_form routine, change the following codes:

Code:
<input type=hidden name="db" value="$db_setup">

to the following:

Code:
<input type=hidden name="db" value="members">

ALSO, you will have to change "members" to whatever the name of your members database is. Also, your cfg file will have to be the same name as your database name.

Example:

members.db
members.cfg

Does this make sense?

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 17, 1999).]