Support » Plugin: WP w3all phpBB » external link on the phpBB pages

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author axew3

    (@axewww)

    This will be included once PM will be added. The PM system of phpBB into Wp will be cool!
    In the while to add this thing, it is necessary to add the follow on page-board.php created or copied/pasted into wp template folder.
    Open your page-board(or forum etc).php, search for:
    lines from 56 to 61:

    }  elseif (stristr($w3mode, "logout")) {
        $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php?mode=logout&sid=". $w3phpbbsid ."";
    } 
     else {
    	$w3all_url_to_cms = $w3all_url_to_cms;
    }

    change with this:

    } elseif (stristr($w3mode, "logout")) {
        $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php?mode=logout&sid=". $w3phpbbsid ."";
    } elseif (stristr($w3mode, "ucp")){
        $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php";
    } 
     else {
    	$w3all_url_to_cms = $w3all_url_to_cms;
    }

    so you can call for ucp inside iframe with URL like this:
    http://myhost/wp46/board/?mode=ucp

    • This reply was modified 3 years, 11 months ago by axew3.
    • This reply was modified 3 years, 11 months ago by axew3.

    No. I always have error 404

    I wrote earlier about a similar problem with 404 error at the login\logout in this topic: https://wordpress.org/support/topic/error-404-when-loginlogout-into-phpbb/
    I could not solve in any way other than by commenting out the following lines in page-board.php:

    
      var   w3all_ck2 = 'ucp.php?mode=login';
      var w3all_pass_login  = (w3all_passed_url.indexOf(w3all_ck2) > -1);
    //
    // if (w3all_pass_login == true) {
    //
    //   var w3_login_modallink = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?#w3allopenModal';
    //    window.location.replace(w3_login_modallink);
    //  } 
    //  
    //   var   w3all_ck3 = 'ucp.php?mode=logout';
    //   var w3all_pass_login_out  = (w3all_passed_url.indexOf(w3all_ck3) > -1);
    // 
    // if (w3all_pass_login_out == true) {
    //    window.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/'); 
    //   }
    

    Now I inserted the code:

    
    elseif (stristr($w3mode, "ucp")){
        $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php";
    }
    

    to the right place of file and enter to the browser:
    http://clubkavkaz.ru/board/?mode=ucp
    or
    http://clubkavkaz.ru/index.php/board/?mode=ucp
    I have error 404.

    I uncomment the lines (set to default):

    
      var   w3all_ck2 = 'ucp.php?mode=login';
      var w3all_pass_login  = (w3all_passed_url.indexOf(w3all_ck2) > -1);
    
     if (w3all_pass_login == true) {
    
       var w3_login_modallink = '".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/?#w3allopenModal';
        window.location.replace(w3_login_modallink);
      } 
      
       var   w3all_ck3 = 'ucp.php?mode=logout';
       var w3all_pass_login_out  = (w3all_passed_url.indexOf(w3all_ck3) > -1);
     
     if (w3all_pass_login_out == true) {
        window.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/'); 
       }
    

    Now i have error 404 if i press logon, logout into phpBB and if i enter to browser http://clubkavkaz.ru/board/?mode=ucp or http://clubkavkaz.ru/index.php/board/?mode=ucp

    I really like your plugin and I like using it on your website. Please help me with configuration.

    Plugin Author axew3

    (@axewww)

    have you setup the .htaccess of WP as default, as above suggested?
    And so let page-forum.php as it is by default?

    My WP stand up into root of mysite.com.
    My default .htaccess in this folder is

    
    # BEGIN WordPress
    
    # END WordPress
    

    In the previous discussion you recomended replace its content on:

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /your_path_to_wordpress/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /your_path_to_wordpress/index.php [L]
    </IfModule>
    
    # END WordPress
    

    I paste:

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    

    Whether I pointed the path in the fourth and eighth line?

    After this I recompile page-board.php (set is default).

    Now аll the links except for login/logout still work correctly.
    When I click on login/logout, for a split second, the correct image appears in the frame (fields of a login and password) then the site goes to home page (out of iframe to the main page WP). In the address bar of the browser when it is written http://mysite.com/board/#w3allopenModal
    But 404 error is now no more!
    What do I do next?

    Plugin Author axew3

    (@axewww)

    i’ve not well understand, you’ll like to have now the correct redirect to page board after the modal login, that instead redirect to wp home (and login work ok)?

    The login should work in a modal window? I have after clicking on the login in phpBB such window does not appear, there is just a redirect to the main window of WP. (but in the address bar written http://mysite.com/board/#w3allopenModal).
    If you don’t mind, you can look at this process on the website http://sovetnikkerch.ru . Tab “Forum” (the last tab of the main menu) runs phpBB in a frame.

    Even now I inserted the code

    
    elseif (stristr($w3mode, "ucp")){
        $w3all_url_to_cms = $w3all_url_to_cms . "/ucp.php";
    }
    

    in new recompilled page-board.php.
    When I enter in the address bar
    http://sovetnikkerch.ru.ru/board/?mode=ucp
    or
    http://sovetnikkerch.ru/index.php/board/?mode=ucp

    go to my phpBB profile, not happening. Also displayed is the main window of WP.

    Plugin Author axew3

    (@axewww)

    if in iframe mode, the login should be done in modal login mode, or edit to redirect logins to point to WP login, for example, instead than to phpBB login. The plugin can be used in very many possible ways. By default it try to be compatible on both systems for example onlogin, but as it is a WP plugin, try to execute all tasks within WP side.
    In case of login in iframe mode, the modal login can be one solution, the forced redirect to WP login in case the user click on phpBB login, can be another … and there are more. Only for this aspect.
    About page-forum: if you rebuild in admin wp_w3all the page forum, it will be overwrite by the default one, contained into addons folder.
    So if you have edit the page forum into the tmeplate folder, you’ll lost modifications.

    p.s if you have edit the page-forum of addons folder instead, modfications are copied also into the one created into the WP template folder.

    In other words you could copy page-forum.php of addons folder and paste manually the file into your WP template folder. That lead to same result that if you click on rebuild/create page.

    • This reply was modified 3 years, 11 months ago by axew3.
    • This reply was modified 3 years, 11 months ago by axew3.
    • This reply was modified 3 years, 11 months ago by axew3.

    I didn’t plan to use any additional plugins for login. I want to use the standard features W3all.
    Just when I was off earlier I referred to the lines in the file page-board.php, by clicking on phpBB login, I opened inside the frame standard phpBB login page, put the name and password, and all work correctly. It suits me fine. When the user logs into phpBB, simultaneously automatically and login to WP.
    As in the default configuration, login in phpBB is not working, and only works with the disconnected lines in phpBB, I did not know that the entrance is scheduled in a modal window.
    I was quite satisfied with the standard login in phpBB in a frame. I also want to put on the page WP button to the user profile, but as a profile to use page of profile phpBB.
    How do I make it so that when I press the phpBB login, in a frame opened standard login page of phpBB?
    And what is the link I must write to the button in WP to opened phpBB profile page in a frame?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘external link on the phpBB pages’ is closed to new replies.