Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Login Return Page...



******    message to minivend-users from jojo@buchonline.net     ******

On  5 Jun, Shawn Butler - Blue Planet Corp wrote:
> ******    message to minivend-users from Shawn Butler - Blue Planet Corp <postmaster@thetechpage.com>     ******
> 
> This example still hard codes the return page. I want to go
> back to the original page you logged in at. (product page,
> checkout, anypage)
> 
>> [set Login]
>> mv_arg0=function
>> mv_subroutine=userdb
>> [/set]
>>     <FORM ACTION="[process-target]" METHOD=POST>
>>     <INPUT TYPE=hidden NAME=mv_click VALUE=Login>
>>     <INPUT TYPE=hidden NAME=mv_doit  VALUE=return>
>>     <INPUT TYPE=hidden NAME=function  VALUE=new_account>
>>     <INPUT TYPE=hidden NAME=mv_nextpage VALUE=new_account>
>>         Username[/L]<INPUT NAME=mv_username VALUE="[value mv_username]" IZE=10>
>>         Password[/L]<INPUT TYPE=password NAME=mv_password VALUE="" SIZE=10>
>>         Verify[/L]<INPUT TYPE=password
>>             onChange="document.forms[0].submit()"
>>             NAME=mv_verify VALUE="" SIZE=10>
>>     <INPUT TYPE=image SRC="icon/login.gif" BORDER=0 NAME="Login"></TD></TR>
>>         </FORM>
>> 
> 
> 
> This would probably work, but I have too many possible return
> pages to have "if" statements.
> 
>> [set NewAccount]
>> [if type=explicit compare="[userdb new_account]"]
>> mv_nextpage=account
>> [else]
>> mv_nextpage=new_account
>> [/else]
>> [/if]
>> [/set]
> 
> 
> Has anyone else been able to set the return page from a login
> or logout to the previous page? I am using MV4

You can insert a line like

[set name="lastpage" interpolate]<name of the page>[/set]

and you can return to this page with

mv_nextpage=[scratch lastpage]

Joachim


-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671449
45886 Gelsenkirchen         FAX: 0209 1671449

-
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


Search for: Match: Format: Sort by: