Integration with MyBB
Before you begin
- You are supposed to have BlaB! AX Pro installed and running in standalone mode. How to install
- Make sure that BlaB! AX Pro and MyBB are installed in the same database.
- The best place to put BlaB! AX Pro is under MyBB so that BlaB! AX Pro is able to read MyBB session or login cookies:
- BAD:
website.com/forum/»website.com/chat/(might work in some cases) - BAD:
forum.website.com»chat.website.com(will NOT work in most cases) - GOOD: website.com/forum/ » website.com/forum/chat/
- GOOD: forum.website.com » forum.website.com/chat/
- BAD:
- A common www issue: if you login to MyBB from www.website.com BlaB! AX Pro will not be able to read MyBB session cookie if loaded without www and vice-versa. If possible set relative links only. A solution with a .htaccess file for Apache - Google Search.
- The MySQL table prefix of MyBB can be seen from phpMyAdmin. Alternatively, use Adminer which is an excellent one-file MySQL manager.
- The easiest way to determine the name of the required login/session cookie of MyBB:
- Login to MyBB with Chrome/Chromium
- Press CTRL+SHIFT+I to open Developer tools » Network » press F5 to reload » Select the 1st URL » Cookies
- You'll have a hint what to look for in the instructions below.
- How to find a cookie name (This one is for WordPress, the process is identical): YouTube Video
- In case you login to both: MyBB and BlaB! AX Pro your BlaB! AX Pro login is preferred! Since you are most probably logged in as SuperAdmin when you adjust settings in BlaB! AX Pro AdminCP use another browser to test the integration.
Integration
- Have you read carefully
Before you begin
above? All clear? - Go to BlaB! AX Pro AdminCP » Integration and set:
- Bulletin Board or CMS you want to integrate with: MyBB
- Session or other cookie set by your BB or CMS: mybbuser
- MyBB MySQL table prefix, probably: mybb_
- Review the other variables and SAVE
- Go to BlaB! AX Pro AdminCP » Groups and click on Delete and link groups.
- If the integration variables are set properly, and you are logged onto MyBB, you should be able to enter the chat directly with your MyBB username.
- How to embed BlaB! AX Pro in MyBB:
- Use one of the MyBB plugins: Page Manager, Premium Pages or MyBB-Page Manager to create a custom HTML page with the following content:
<iframe src="PATH_OR_URL_TO_BLAB/index.php" border="0" frameborder="0" style="width:100%;height:400px;border-width:0px"></iframe>
- Add a link to your custom page from MyBB Admin CP » Template Sets » Default Templates » Edit Template: header
<li><a href="mybb/misc.php?page=THE_NAME_OF_THE_PAGE" class="memberlist">Chat</a></li>
- SAVE
- Use one of the MyBB plugins: Page Manager, Premium Pages or MyBB-Page Manager to create a custom HTML page with the following content:
Page updated: 2022-10-05