RPXnow and phpBB

Z mj41.cz


Install phpBB with RPXnow support

Install phpBB

Extract phpBB3-rpx.zip, so you have index.php in your web server root directory.

Open /index.php in browser and follow install instructions (/index.php). Or put your old 'config.php' file to root dir (database must exists and contains phpBB tables). Then remove 'install' dir.

Configure your RPX

Configure your RPX Application on rpxnow.com.

: Setup Guide -> 1 Get the Widget

On 'What is your token URL?' put something like http://forum.mj41.cz/openid_login_rpx.php

Click on 'Generate code' (blue button).

Now you can see code

<iframe src="http:// ... %2Fopenid_login_rpx.php"  scrolling="no"  ...

You will need URL 'http:// ... %2Fopenid_login_rpx.php' so copy it.

Add paremeters to phpBB3 'config.php' file

On the end of 'config.php' file put these two lines:

define( AUTHRPX_APIKEY, 'your_API_Key_here' );
define( AUTHRPX_LOGIN_URL, 'http:// ... %2Fopenid_login_rpx.php' );
define( AUTHRPX_LOGIN_MODAL, true ); // Or false if you would like to use embeded RPX login form.

Then replace 'your_API_Key_here' and 'http:// ... %2Fopenid_login_rpx.php' with correct values.

OpenID - DIY instructions

Based on phpBB_OpenID_1.0.1\install.xml.

These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.

  • Modify the database by going to /openid_login.php?install
  • Purge cache.
  • Purge the theme cache (Styles Tab->Themes Menu->Refresh Prosilver)


You can show orginal and OpenID login forms with /index.php?show_login_forms=1.

Source - downloaded files

Also available here.


Downloaded phpBB
Green box on the left. Then Download phpBB 3.0.7-PL1 (zip).
Released 2010-03-05


Downloaded phpBB OpenID modification.
Version 1.0.1 [RC] - 2010-02-28

phpBB-rpx3 - phpBB3 code (modified) to install

I created it this way:

  • 1) Extract phpBB3-src/phpBB-3.0.7-PL1.zip.
  • 2) Install phpBB3-src/phpBB_OpenID_1.0.1.zip (install instructions from install.xml).
  • 3) Added new file openid_login_rpx.php (based on openid_login.php).
  • 4) Do my modifications for RPXnow:


- <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
+ <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT and S_SHOW_LOGIN_FORMS -->


        'S_USER_LOGGED_IN'      => ($user->data['user_id'] != ANONYMOUS) ? true : false,
+        'S_SHOW_LOGIN_FORMS'    => !empty($_GET['show_login_forms']),
-        $u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login');
-        $l_login_logout = $user->lang['LOGIN'];
+        # $u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login');
+        $u_login_logout = AUTHRPX_LOGIN_URL;
+        $l_login_logout = $user->lang['LOGIN'];

Other changes

This isn't full list of changes. Another ones contains template modifications to modal version of RPX login form.



See also

spřízněné weby