Integration with Flarum

(BlaB! AX Pro v21.07+)


Before you begin


Integration

  1. Have you read carefully Before you begin above? All clear?
  2. Go to BlaB! AX Pro AdminCP » Integration and set:
    • Bulletin Board or CMS you want to integrate with: Flarum
    • Session or other cookie set by your BB or CMS: flarum_session
    • Flarum MySQL table prefix, probably: flarum_ or fla_ or nothing
    • Review the other variables and SAVE
  3. With a text editor in config.php (at the bottom) set:
    • $fla_session_dir - relative or absolute path to Flarum session folder
    • $fla_avatars_dir - relative path from chat to Flarum avatar folder
  4. Go to BlaB! AX Pro AdminCP » Groups and click on Delete and link groups.
  5. If the integration variables are set properly, and you are logged onto Flarum, you should be able to enter the chat directly with your Flarum username.

How to embed BlaB! AX Pro in Flarum

  1. Download SPA Companion Pack and unzip its content in the Flarum web folder.
  2. Open blabloader.js and set at the beginning of the file the URL of //URL-TO-FLARUM/chat/index.php
  3. Install the following Flarum extension HTML Head Items: composer require ianm/html-head and enable it.
  4. Flarum Administration » HTML Head Items » Create:
    • Description: blabloader.js
    • Custom Head Item: <script src="//URL-TO-FLARUM/blabloader.js"></script>
  5. Flarum Administration » HTML Head Items » Create:
    • Description: blabloader.css
    • Custom Head Item: <link rel="stylesheet" href="//URL-TO-FLARUM/blabloader.css">

Page updated: 2022-10-05
 
Powered by BlaB! Pages