Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter caffine72

    (@caffine72)

    Just for posterity and anyone else looking for info on how to make this change:

    In header.php located in your template folder
    edit the $login_link URL to point to your /phpBB3/ucp.php?mode=login
    edit the $register_link URL to point to your /phpBB3/ucp.php?mode=register
    then if you want to use the phpBB3 user control panel for any changes; further down the code
    edit the $user_link URL to point to your /phpBB3/ucp.php

    Note that if you decide to change your template then the same changes will need to be made to the new header.php (unless you are using child themes)

    Thread Starter caffine72

    (@caffine72)

    Yup this was what I was looking for. Hopefully I am not causing deeper problems by hacking this code so ungracefully but backups have been made just in case…

    Thread Starter caffine72

    (@caffine72)

    Ok, after digging around I think I have found these code links within my header.php

    if($version[0] >= 2.7){ // use wp_login_url as it provides redirect helper
    $login_link = '<a href="'.wp_login_url().'redirect_to='.$redirect_to.'">'.__('login').'</a>';
    $register_link = '<a href="'.site_url('wp-login.php?action=register', 'login').'">'.__('register').'</a>';

    Now before I go and start changing the links to my phpBB3 login/register pages could someone with a bit of coding experience let me know if I am on the right track before I mess up my install?

Viewing 3 replies - 1 through 3 (of 3 total)