[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] User info not saving to UserDB
****** message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net> ******
Hi Brian,
you want to get all "accounted" users into the userdb.asc?
If yes, did you get any error (see the error.log)?
What do you mean with setting anything in catalog.cfg? I canīt
remembered anything about my talking about setting some"thinks" in
catalog.cfg.
Regarding to *db* file...MV use this files always, but if you look into
the files to get any informations, you are wondering and you are asking
something like
- why is my products.asc not up to date? I have ...this and that
- why is this user or that user not in my userdb.asc
and so on...
Ok! I stop it at this moment and i give you a hints....
First of all:
- use an extra page to get anything, what you want
- do not insert any extra codes in your standard pages, to get any
"stuff" to do anything (statistic or so..) what you want
- make an extra page into the extra direcory to get anything what you
want
Regarding userdb....:
- Go to your shop. Make a new account. Remember your name and password
or use the superuser-accont ("miniven" and "nevairbe")
- make a page like "wall.html" with the codes like
------snipp wall.html -----------
[tag op=header interpolate=1]
Status: 302 moved
Content-type: text/html
Location: [area href="wallin" secure=1]
[/tag][set mv_no_cache]1[/set]
------snipp wall.html -----------
If you have no SSL, call wallin.html (see down) and remove this file
ASAP, if you donīt need this at any moments.
- make a page "wallin.html" (it is in the pages directory) like
------snipp wallin.html -----------
<HTML>
<HEAD>
<TITLE>[L]Check out[/L] -- __COMPANY__</TITLE>
</HEAD>
<BODY LINK="#006666" ALINK="#FF0000" VLINK="#669999" TEXT="#000000"
BGCOLOR="#FFFFFF">
[if session logged_in]
<BR>
<FORM ACTION="[process-target secure=1]" METHOD=POST>
<input type="hidden" name="mv_nextpage" value="wallin">
<B>[L]Hi[/L] [value name]!</B><BR><BR>
[L]You are logged in as user[/L] <B>[value mv_username]</B><BR><BR>
<INPUT TYPE=submit NAME="mv_click" VALUE="Log out">
</FORM>
<BR>
[if session username eq '<BRIAN-IT-IS-YOUR-LOGIN-NAME>']
[page reconfig/expuser] Reconfig __COMPANY__ [/page]
[/if]
<BR>
[set Log out]
mv_todo=return
[userdb function=logout clear=1]
mv_username=[value mv_username]
[/set]
[else]
[set Login]
mv_todo=return
[userdb login]
[/set]
[if session failure]
Fehler: [data session failure]
[/if]
<FORM ACTION="[process-target secure=1]" METHOD=POST>
<INPUT TYPE="hidden" NAME="mv_click" VALUE="Login">
<INPUT TYPE="hidden" NAME="mv_doit" VALUE="return">
<INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="wallin">
[L]Username[/L] <INPUT NAME="mv_username" VALUE="[value
mv_username]" SIZE=10>
[L]Password[/L] <INPUT onChange="this.form.submit()"
TYPE="password" NAME="mv_password" VALUE="" SIZE=10>
<INPUT TYPE=submit Value="Log in">
</FORM>
<!----- ### -->
[/else]
[/if]
</BODY>
</html>
------snipp wallin.html -----------
and remove this ASAP.
- make a page like "expuser.html" and place this into ../pages/reconfig
directory with this codes
--------snipp expuser.html----------
<HTML><HEAD><TITLE> __COMPANY__</TITLE></HEAD>
<BODY LINK="#006666" ALINK="#FF0000" VLINK="#669999" TEXT="#000000"
BGCOLOR="#FFFFFF">
[if session logged_in]
<BR>
[tag touch userdb][/tag]
[tag flag write]userdb[/tag]
[userdb function=save]
[tag flag write]expuserdb[/tag]
[tag export userdb expuserdb]Proceed[/tag]
I hope, the users are exported into the file
..../yourshopname/products/expuserdb!
[/if]
</BODY>
</html>
--------snipp expuser.html----------
Edit the file .../pages/reconfig/.access_gate and edit this. It look
like
.
.
.
userexp: [if session username eq
'for-example-the-brians-login-names']Yes[else]No[/else][/if]
*: 0
Remove this files ASAP!
Make sure, you use the makecat srcipt.
Make sure, you restart minvend server.
If you have changed the userdb.asc with new field, make sure you have
removed the *db* files. I am not sure, which files have i to remove.
I have no another clue, why you have the problem.
Sorry! I apologize for this big email. I am very weak to us the english
language well.
Regards,
Joachim
Brian Wright wrote:
>
> ****** message to minivend-users from Brian Wright <bdw@Aturna.com> ******
>
> Yes, I did send you a personal note. :) I'm not having it write to the
> userdb.asc file, and am a bit in a muddle on setting things up in the
> catalog.cfg file. Do I have to enable a write flag, and does it get written to
> the gdbm file instead of the asc file?
>
> --Brian
>
> On 26-Jan-2000 jojo@buchonline.net wrote:
> > ****** message to minivend-users from jojo@buchonline.net ******
> >
> >
> > I am in a muddle. You have ask me this directly and i have answered. Am
> > i in a mistake?
> > Are you able to get a new account in your shop?
> > Are you able to log in in your shop?
> > Or are you missing the user informations in the userdb.asc file?
> > In most common case, people are missing some informations in any asc
> > file, because they have not realized, that MV store all informations
> > into any db or gdbm files. Once more...MV check some asc files, if
> > there are any change (products.asc) and reread this file and rebuild
> > some db/gdbm files, otherwise there are a NOIMPORT setting in
> > catalog.cfg. At the server start/resstart, MV check more. In some case
> > (using the makecat script, removing the db files) you are losing the
> > user informations/accounts. In this case, you have to export all user
> > into the asc file. If you wish to see or to store the informations in
> > any asc file, use the [tag export...].
> >
> > Regards,
> > Joachim
--
-------------Hans-Joachim Leidinger---------------------
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list