Wowroster and PHPBB3

phpBB integration forum

Wowroster and PHPBB3

Postby Drazzilb » Wed Feb 27, 2008 5:04 am

Anybody?
Is there anybody working on this. I'm not to great with php so there is no way i could even attempt to integrate what was old into the new one. All the instructions for the download are for phpbb2. Bummer

Well thanks
Drazzilb
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Sat Aug 12, 2006 10:01 am

Wowroster and PHPBB3

Postby zanix » Wed Feb 27, 2008 5:19 am

Adric has been working on his personal site http://www.midnightcartel.com
Looks like he wrapped the phpbb header and footer around Roster
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Wowroster and PHPBB3

Postby Drazzilb » Wed Feb 27, 2008 7:05 am

awesome. Now maybe i'm just blind but i havnt been able to find a wrapper for phpbb3.
Do you know where one is hiding?
Drazzilb
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Sat Aug 12, 2006 10:01 am

Wowroster and PHPBB3

Postby zanix » Wed Feb 27, 2008 12:21 pm

Notta clue
The only experience with phpbb3 I have with is the link I showed you
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Wowroster and PHPBB3

Postby Drazzilb » Fri Mar 07, 2008 12:15 pm

well i hope somebody here else might have an idea. please :P
Drazzilb
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Sat Aug 12, 2006 10:01 am

Re: Wowroster and PHPBB3

Postby TankGirl » Sat Mar 08, 2008 5:15 am

If you are talking authentication for restricting access to your roster using phpbb3 login. This will work for Roster 1, have yet to test with Roster 2, but see no reason why this shouldn't work.

Use this to start the top of the page:
Code: Select all
<?php
    define('IN_PHPBB', true);

///Set the following to the phpbb3 path
    $phpbb_root_path = '../forum/';

    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    //
    // Start session management
    //
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup();
    //
    // End session management
    //

 // Authenticate User //
if ($user->data['user_id'] == ANONYMOUS) {

//Do something here is user is NOT logged in. Like....
// header( 'Location: http://www.mysitename.com/forum/' ) ;

} else {

// User is Logged In Rest of page follows.


At the ed of the page you just simply need:
Code: Select all
}
?>


Don't forget to set the paths and uncomment the header location script (if you opt to do that)

Here is a login form (must edit for your forum path)
Code: Select all
<form action="./forum/ucp.php?mode=login" method="post">
      <table width="100%"><center>
               <tr>
               <td align="center">Username: <input type="text"  style="background-color:333333;color:dddddd;border-width:0;" name="username" class="textarea" size="18"></td>
               </tr>
               <tr>
               <td align="center">Password: <input type="password"  style="background-color:333333;color:dddddd;border-width:0;" name="password" class="textarea" size="18"></td>
               </tr>
            <tr>
  <td align="center"><span class="gen"><font size="2">Remember me:</font><input type="checkbox" name="autologin" /></span></td>
<td><input type="hidden" name="redirect" value="../index.php" /></td>
   </tr>
               <tr>
               <td align="center"><input type="submit" style="background-color:333333;color:dddddd;border-color:888888;" value="Login" name="login" class="textarea"></form></td>
               </tr>
            <tr>
<td align="center"><span class="gensmall"><a href="forum/ucp.php?mode=sendpassword" class="gensmall">Forgot Password</a></span> | <a href="forum/ucp.php?mode=register" target="_blank">Register</a></span></td></tr></center></table><BR>


And a logout button: (again need to edit to your needs.)
Code: Select all
<?php
echo ("<form action=" . $phpbb_root_path . 'ucp.php?mode=logout&redirect=../index.php' . '&sid=' . $user->data['session_id'] . " method=post><input type=Submit style='background-color:333333;color:dddddd;border-color:888888;' value=Logout></form>");
?>


The login form and the logout botton require the phpbb3 authentication script at the top of the containing page. (short the "authenticate User" bit)
Code: Select all
<?php
    define('IN_PHPBB', true);

///Set the following to the phpbb3 path
    $phpbb_root_path = '../forum/';

    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    //
    // Start session management
    //
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup();
    //
    // End session management
    //



I hope this helps!
Last edited by TankGirl on Sat Mar 08, 2008 5:19 am, edited 1 time in total.
User avatar
TankGirl
WR.net Apprentice
WR.net Apprentice
 
Posts: 51
Joined: Mon Apr 30, 2007 2:14 pm
Location: The bad place in my mind.

Re: Wowroster and PHPBB3

Postby TankGirl » Wed Mar 19, 2008 3:40 am

You can put phpbb3 authentication in the index.php and that will cover the whole roster2 with authentication, but you need to have the "update" clean, so you can still use uniuploader.
This is what I did:
Code: Select all
<?php
    define('IN_PHPBB', true);
    $phpbb_root_path = '../forum/';
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    //
    // Start session management
    //
    $user->session_begin();
    $auth->acl($user->data);
    $user->setup();
    //
    // End session management
    //
///SET "ROSTER2" to the correct roster folder
$updatepage = "/ROSTER2/index.php?p=update&a=g:1";
$currentpage = $_SERVER['REQUEST_URI'];
if($updatepage==$currentpage) {
}else{
// Authenticate User //
if ($user->data['user_id'] == ANONYMOUS) {


///SET to the correct URL
header( 'Location: http://www.yoursite/ROSTER2/r2login.php' ) ;
}
}


Then I made a simple login page which you are welcome to use and edit.
note: You may need to edit all the "../roster2" and "../forum" links to suit your needs. Place r2login.php (convert from txt) in the root folder of roster2
Attachments
r2login.txt
(2.15 KiB) Downloaded 559 times
Last edited by TankGirl on Wed Mar 19, 2008 3:41 am, edited 1 time in total.
User avatar
TankGirl
WR.net Apprentice
WR.net Apprentice
 
Posts: 51
Joined: Mon Apr 30, 2007 2:14 pm
Location: The bad place in my mind.

Re: Wowroster and PHPBB3

Postby TankGirl » Wed Mar 19, 2008 3:45 am

no clue as to why that double post, I'd delete that first on but I can't...
User avatar
TankGirl
WR.net Apprentice
WR.net Apprentice
 
Posts: 51
Joined: Mon Apr 30, 2007 2:14 pm
Location: The bad place in my mind.

Wowroster and PHPBB3

Postby PleegWat » Wed Mar 19, 2008 4:18 am

Deleted the first for you. Keeps the place clean.

We've got the roster pretty well covered with our own login class now. If you want you can convert that to use phpbb. Let me know if you run into any issues with it.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Wowroster and PHPBB3

Postby TankGirl » Sat Apr 12, 2008 11:29 pm

KNOWN ISSUE:
admin to memberlist "addon" becomes inaccessible.
Fatal error: Call to a member function buildConfigPage() on a non-object in /var/www/html/r2/addons/memberslist/admin/index.php on line 128


It's a function conflict, and have absolutely NO clue how to fix.
For now I just cut the script, make my changes (if needed), then paste it back in.
Everything else seems to have full functionality.
This is no big deal to me, because I rarely make changes. I'd have never noticed this error, if not for the fact our whole guild moved and I was attempting to update changes.
Open to suggestions to for a fix as always.
I don't feel the "need" to fix, as once setting are complete, I never touch it again. lol
But only posting as a heads up to anyone that uses this.
They might want a fix someday.
User avatar
TankGirl
WR.net Apprentice
WR.net Apprentice
 
Posts: 51
Joined: Mon Apr 30, 2007 2:14 pm
Location: The bad place in my mind.

Re: Wowroster and PHPBB3

Postby unfortunately » Sat Apr 19, 2008 3:00 am

will that work with something like seditio?
User avatar
unfortunately
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Sat Jul 08, 2006 11:35 am


Return to phpBB

Who is online

Users browsing this forum: No registered users and 0 guests