Extension:Phpbb Single Sign-On

If you are having problems with GuMax, post here.
Post Reply
User avatar
DuskMan
Rank 0
Rank 0
Posts: 1
Joined: July 12th, 2012, 11:36 am

Extension:Phpbb Single Sign-On

Post by DuskMan »

Hello
I'm trying to use the extension Phpbb Single Sign-On, but I can not find a place where to put this code in Gumaxdd.php:

Code: Select all

$phpbbUser = new phpbbSSO();
$forumURL = 'http://example.org/forum';         
 
if($phpbbUser->isAnonymous()){
        //If a logged in user is not part of the group, he's treated as not logged in. Thus we don't display the Login link if group membership is required.
        if(!phpbbSSO::REQUIRE_GROUP){
                echo '<a href="'.$forumURL.'/ucp.php?mode=login" title="Login" accesskey="l">Login</a>
                 / <a href="'.$forumURL.'/ucp.php?mode=register">Register</a>';
        }
}else{
        echo '
        <a href="'.$prefsUrl.'">wiki preferences</a> | 
        <a href="'.$forumURL.'/ucp.php?i=pm&folder=inbox"><strong>'.$phpbbUser->messages.'</strong> new messages</a> | 
        <a href="'.$forumURL.'/ucp.php?mode=logout&sid='.$phpbbUser->session_id.'" title="Logout [ '.$phpbbUser->userName.' ]" accesskey="l">Logout [ '.$phpbbUser->userName.' ]</a>';
}
Tell me please and sorry for my bad English.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Extension:Phpbb Single Sign-On

Post by Paul »

Follow their instruction and modify mediwiki core files, they are not in skin.
Post Reply