chrometweaks.org

What is iPage.com? Is there a way to get to the website from iPage.com?

Click Here To View All Answers...


First question I have is What is iPage.com? Is there a way to get to the website from iPage.com? Many thanks for any answer or 2. Second question of mine... I've added the Must Agree To Privacy Statement distribution. It adds a link to a policy page for the visitor to view before signing in. If you click on that link and then click on the continue button on the conditions page, it takes you back to the default page (index.php) instead of to the create account page. I thought to change the link so it would go back using java script:history.back() but if javascript isn't enabled then the button won't work at all.



Jack..

Comments (98)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some research and get back to you if I find an decent answer. You should email the people at iPage as they probably could give you help..

Comment #1

Ahh, I thought as much. Thnaks for the reply..

Jack..

Comment #2

'course, that's a hard link,not a true browser "back"..

-jared..

Comment #3

Thanks for the link. What I need is code to determine whether or not I came from the create account page. Then I could test against that and choose where to return to. I'm sure this is probably doable but it is beyond my php knowledge..

Jack..

Comment #4

That'd be in the referrer HTTP header - - there was some discussion about this in another thread, someone said he'd found a way to grab that. Not sure how he did it..

I'll see if I can find the thread for you so that you can ask him..

-jared..

Comment #5

Look at.

Http://forums.oscommerce.com/index.php?act=ST&f;=11&t;=81731.

- - jnmunsey may be able to help you figure out how to do this..

-jared..

Comment #6

Thanks for the idea Jared. I didn't find anything in that thread but I wasn't aware of HTTP_REFERER so I will look up how to use it and hopefully find something there..

Jack..

Comment #7

Here is the code I have added to privacy.php and should give you an good idea how to do it.

 if (isset($navigation->path[sizeof($navigation->path)-2]) && ($navigation->path[sizeof($navigation->path)-2]['page'] == FILENAME_CREATE_ACCOUNT)) {.

HTH..

Comment #8

[QUOTE=sparky,Mar 13 2004, 04:50 PM.

Here is the code I have added to privacy.php and should give you an good idea how to do it.

If (isset($navigation->path[sizeof($navigation->path)-2]) && ($navigation->path[sizeof($navigation->path)-2]['page'] == FILENAME_CREATE_ACCOUNT)) {.

HTH[/QUOTE].

Thanks for the code. I'm not real familar with php so I may be doing this completely wrong but here is what I tried, which doesn't work BTW..

Before the body tag in the policy file I put.

<?php.

$pagename = FILENAME_DEFAULT;.

 if (isset($navigation->path[sizeof($navigation->path)-2]) && ($navigation->path[sizeof($navigation->path)-2]['page'] == FILENAME_CREATE_ACCOUNT)) {.

   $pagename = FILENAME_CREATE_ACCOUNT;.

 }.

?>.

And then I changed the code for the continue button to.

<td align="right"><?php echo '<a href="'tep_href_link($pagename)'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

But no matter from which page I enter, I am always returned to FILENAME_DEFAULT. Any ideas (anyone) where I am going wrong?.

Jack..

Comment #9

I've added the Must Agree To Privacy Statement distribution. It adds a link to a policy page for the visitor to view before signing in. If you click on that link and then click on the continue button on the conditions page, it takes you back to the default page (index.php) instead of to the create account page. I thought to change the link so it would go back using java script:history.back() but if javascript isn't enabled then the button won't work at all. Is javascript required to use OSC or is there a way to code around this problem?.

Jack..

Comment #10

I dont know about the contribution but the version in CVS doesnt require on javascript at all..

OsCommerce itself can run with or without javascript and with or without cookies enabled..

HTH..

Comment #11


This question was taken from a support group/message board and re-posted here so others can learn from it.