Announcement

Collapse
No announcement yet.

redirecting to a specific page after login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    redirecting to a specific page after login



    When you logout of your account Miva also redirects you to the Store Front
    screen just like when you logged in, so isn't there additional code needed
    for this too?

    Rudy

    ----- Original Message -----
    From: Bill Guindon <[email protected]>
    To: Valeria Vizenberg <[email protected]>
    Cc: Miva Merchant List <[email protected]>
    Sent: Thursday, August 29, 2002 3:28 PM
    Subject: Re: [mru] redirecting to a specific page after login


    > Let's get this back on the right list...
    >
    > Valeria Vizenberg wrote:
    > >
    > > we have a miva-based store. when you log in, it redirects you to a page
    with
    > > its contents specified as a "store front welcome", but the page still
    > > follows the layout template for the whole miva store. we would like to
    be
    > > able to redirect users to a page we specify (that is not a part of a
    whole
    > > miva store) after they log in, and not to the "store front" page
    >
    > In 'UIModule_Dispatch', you need to replace this:
    > <MvIF EXPR = "{ g.Screen EQ 'SFNT' }">
    > <MvASSIGN NAME = "l.ok" VALUE = "{ MMUI_StoreFront() }">
    > </MvIF>
    >
    > With this:
    > <MvIF EXPR = "{ g.Screen EQ 'SFNT' }">
    > <MvIF EXPR="{g.Action EQ 'LOGN'}">
    > <MvDO FILE="{g.module_root_versionless $ 'staticpage.htm'}">
    > <MvASSIGN NAME="l.ok" VALUE="1">
    > <MvELSE>
    > <MvASSIGN NAME = "l.ok" VALUE = "{ MMUI_StoreFront() }">
    > </MvIF>
    > </MvIF>
    >
    > In the example above, 'staticpage.htm' is expected to be in the store's
    > dir (usually 'Merchant2'). If it's somewhere else, you could call it
    > using a relative path:
    > <MvDO FILE="{'../pages/staticpage.htm'}">
    >
    > Shouldn't take much to convert that to OUI.
    >
    >
    > --
    > Bill Guindon [email protected]
    > Simian Sites (877) 715-4815
    > <A HREF ="http://www.simiansites.com (609) 624-3874">http://www.simiansites.com (609) 624-3874</A>
    >

    #2
    redirecting to a specific page after login



    Rudy,
    the way our store is set up - after you log out you go to the login page.
    how can it be redirecting to the store front after logging out when it (the
    store front) is only accessible to the logged in users???

    Valeria


    > From: "Rudy Pohl" <[email protected]>
    > Date: Thu, 29 Aug 2002 13:51:32 -0400
    > To: <[email protected]>, "Valeria Vizenberg" <[email protected]>
    > Cc: "Miva Merchant List" <[email protected]>
    > Subject: Re: [mru] redirecting to a specific page after login
    >
    > When you logout of your account Miva also redirects you to the Store Front
    > screen just like when you logged in, so isn't there additional code needed
    > for this too?
    >
    > Rudy
    >
    > ----- Original Message -----
    > From: Bill Guindon <[email protected]>
    > To: Valeria Vizenberg <[email protected]>
    > Cc: Miva Merchant List <[email protected]>
    > Sent: Thursday, August 29, 2002 3:28 PM
    > Subject: Re: [mru] redirecting to a specific page after login
    >
    >
    >> Let's get this back on the right list...
    >>
    >> Valeria Vizenberg wrote:
    >>>
    >>> we have a miva-based store. when you log in, it redirects you to a page
    > with
    >>> its contents specified as a "store front welcome", but the page still
    >>> follows the layout template for the whole miva store. we would like to
    > be
    >>> able to redirect users to a page we specify (that is not a part of a
    > whole
    >>> miva store) after they log in, and not to the "store front" page
    >>
    >> In 'UIModule_Dispatch', you need to replace this:
    >> <MvIF EXPR = "{ g.Screen EQ 'SFNT' }">
    >> <MvASSIGN NAME = "l.ok" VALUE = "{ MMUI_StoreFront() }">
    >> </MvIF>
    >>
    >> With this:
    >> <MvIF EXPR = "{ g.Screen EQ 'SFNT' }">
    >> <MvIF EXPR="{g.Action EQ 'LOGN'}">
    >> <MvDO FILE="{g.module_root_versionless $ 'staticpage.htm'}">
    >> <MvASSIGN NAME="l.ok" VALUE="1">
    >> <MvELSE>
    >> <MvASSIGN NAME = "l.ok" VALUE = "{ MMUI_StoreFront() }">
    >> </MvIF>
    >> </MvIF>
    >>
    >> In the example above, 'staticpage.htm' is expected to be in the store's
    >> dir (usually 'Merchant2'). If it's somewhere else, you could call it
    >> using a relative path:
    >> <MvDO FILE="{'../pages/staticpage.htm'}">
    >>
    >> Shouldn't take much to convert that to OUI.
    >>
    >>
    >> --
    >> Bill Guindon [email protected]
    >> Simian Sites (877) 715-4815
    >> <A HREF ="http://www.simiansites.com (609) 624-3874">http://www.simiansites.com (609) 624-3874</A>
    >>

    Comment

    Working...
    X