Redirect to Custom Pages

Discussion in 'Customization & add-ons' started by smdstudios, Apr 9, 2010.

  1. smdstudios

    smdstudios New Member

    Joined:
    Oct 20, 2006
    Messages:
    11
    My client created custom signup and login pages that include the amember files in an Iframe. How can I edit the redirect to each of those amember pages to the custom iframe pages he made?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    If you use paypal to handle payments make sure that user will be redirected to paypal without frames. Paypal does not allow to display onw pages within frames.
    To change links you need to edit /amember/templates/index.html and thsnks.html
  3. smdstudios

    smdstudios New Member

    Joined:
    Oct 20, 2006
    Messages:
    11
    I was referring to events before paypal but this was helpful....

    Say a user clicks on a protected page to view and they are redirected to /member/login.php but instead I want them sent to /dir/sign_in.html

    or

    Say a user clicks on a link to signup and they are redirected to /member/signup.php but instead I want them sent to /dir/register.html
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    The best and simplest way will be use javascript for this. For example in login.html template, check if page displayed within frame and if not redirect to page in frame.
    Other solutions will require aMember php files modifications for example check.inc.php should be modified in order to use different redirect url for login page.
    But this file can be changed in next version so customization will be lost.
  5. smdstudios

    smdstudios New Member

    Joined:
    Oct 20, 2006
    Messages:
    11
    can you provide an sample of this javascript or what code I would edit in the check.inc.php file?
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
  7. smdstudios

    smdstudios New Member

    Joined:
    Oct 20, 2006
    Messages:
    11
    from the looks of it that is for a frameset not iframes.
  8. smdstudios

    smdstudios New Member

    Joined:
    Oct 20, 2006
    Messages:
    11
    I found something that works thanks!

Share This Page