"Not registered yet? Signup here" link on login/index page

Discussion in 'aMember Pro v.4' started by davidm1, Nov 5, 2012.

  1. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Cant seem to locate this, universal way to change the URL used in the signup here link of login/index page. Should be something added in site.inc.php.


    David
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Got it.


    Am_Di::getInstance()->hook->add(Am_Event::AFTER_RENDER, 'addTextAbove');

    function addTextAbove(Am_Event_AfterRender $event)
    {
    if (preg_match('#^/access/login/index.*#i', $_SERVER['REQUEST_URI'])) //do it only for specific url
    {
    $event->replace('#(/access/signup/index/c/)#i', 'http://www.newurl.com');
    }
    }
  3. adolphousc

    adolphousc New Member

    Joined:
    Nov 21, 2006
    Messages:
    2
    David, in what path & file do you add this code??

Share This Page