Jump to content

Archived

This topic is now archived and is closed to further replies.

dreamscape

return to the page you were on prior to loggin in

Recommended Posts

Hi Hatimad Did those codes worked for you and are you using those one MS1. If it is working on MS1 can you post the codes here or PM me. Thanks

 

no i am not using it at the moment for MS1, my site was almost ready and it was too complicated for me to go for it at that point.

Share this post


Link to post
Share on other sites

ok can someone just post something telling us exactly what to do to install this, please, cause its very very hard to follow what u guys were doing


Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Share this post


Link to post
Share on other sites

I agree with Kristofor:

 

can someone post the whole thing now that is seems to be completed? Or provide a link to the contribution. I tried a search but to no avail ...

 

Thanx y'all for all your work and effort!

 

- DM

Share this post


Link to post
Share on other sites

I found a very easy way for the problem:

 

Make your login link like this:

<a href="' . tep_href_link(FILENAME_LOGIN, 'make=snapshot', 'SSL') . '">LogIn</a>

 

and put this code to the top of login.php

(I would recommend a position after the tep_redirect() statement, line 19 e.g.)

 

// HACK TO REMEMBER THE LAST POSITION

if ($HTTP_GET_VARS['make'] == "snapshot") {

 $back = sizeof($navigation->path)-2;
 if (isset($navigation->path[$back])) {

 $navigation->set_snapshot($navigation->path[$back]);
 
 }
   
}
// END HACK

 

Works fine for me. :)

 

Any comments?

 

Johannes

Share this post


Link to post
Share on other sites
Where do I find the contribution on this if it exists ?

This little hack is too small to be a contribution. Just place your login-link somewhere in your shop and copy the code into the file 'login.php'. That's it.

Share this post


Link to post
Share on other sites

It works fine, but as I have a "log in" link in my header navigation, if a customer uses this link on create_account.php which is brought up for them during checkout it returns to the create account page, which isn't really desireable.

 

I wish I could be creative enough to give a fix right now, but I just thought I'd point this out for others!

 

Ian

 

I found a very easy way for the problem:

 

Make your login link like this:

<a href="' . tep_href_link(FILENAME_LOGIN, 'make=snapshot', 'SSL') . '">LogIn</a>

 

and put this code to the top of login.php

(I would recommend a position after the tep_redirect() statement, line 19 e.g.)

 

// HACK TO REMEMBER THE LAST POSITION

if ($HTTP_GET_VARS['make'] == "snapshot") {

?$back = sizeof($navigation->path)-2;
?if (isset($navigation->path[$back])) {

?$navigation->set_snapshot($navigation->path[$back]);
?
?}
? ?
}
// END HACK

 

Works fine for me. :)

 

Any comments?

 

Johannes

Share this post


Link to post
Share on other sites

Actually, I surprised myself! :D

 

my header login is now:

<?php
    if (!strstr($PHP_SELF,'account')) {
    ?>
    <a href="<?php echo tep_href_link FILENAME_LOGIN, 'make=snapshot', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a> | 
       <?php
       } else {
       ?>
       <a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a> | 
       <?php
       }
?>

 

Needs more testing though...

 

Ian

 

It works fine, but as I have a "log in" link in my header navigation, if a customer uses this link on create_account.php which is brought up for them during checkout it returns to the create account page, which isn't really desireable.

 

I wish I could be creative enough to give a fix right now, but I just thought I'd point this out for others!

 

Ian

Share this post


Link to post
Share on other sites

×