• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

PhpBB3 - show Chat in forumlist?

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby Forumit » Mon Aug 20, 2012 4:04 pm

Hi, I have successfully installed and configured phpchat at my Phpbb3 forum, but I don't want it on a separate page.

I want it to render on the first page, in forumlist or overall body.

Anyone got good instructions? I seem to miss out of something here.

Cheers!
Forumit
New member
 
Posts: 1
Joined: Mon Aug 20, 2012 3:59 pm
Top

Postby usersomu » Mon Sep 17, 2012 9:33 am

hi friend,

You have to follow some steps:
The first step in integrating phpBB3 into your site is to rename your existing file's extension (if necessary) to .php -- for example you would need to rename mypage.html to mypage.php Of course, this will break any existing links so be sure to update your links to point to the new mypage.php file.

You will need to add this code at the top of every page you want to add phpBB's sessions into.

CODE: SELECT ALL
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>

Your existing page goes here


If you want access to a phpBB language file, then change this line:

CODE: SELECT ALL
$user->setup();


to this:

CODE: SELECT ALL
$user->setup('base-name-of-language-file-here');


Replace base-name-of-language-file-here with the name of the language file you want without the .php extension. For example, if you need to load the viewtopic.php language file, then use this code:

CODE: SELECT ALL
$user->setup('viewtopic');


And that's all! Now you have full access to the phpBB sessions information.
and after all

A very simple example to see if the user is logged in -- if he or she is logged in, a thank you message is displayed along with their username, but if they are not logged in, a message is displayed asking them to log in.
usersomu
New member
 
Posts: 1
Joined: Mon Sep 17, 2012 9:20 am
  • Website
Top

Re: PhpBB3 - show Chat in forumlist?

Postby johnson33 » Fri May 24, 2013 8:28 am

Why wouldn't you use the authorized Mod from phpBB which has tons of unique features
johnson33
New member
 
Posts: 2
Joined: Fri May 24, 2013 8:12 am
Top


Post a reply
3 posts • Page 1 of 1

Return to phpBB, Simple Machines Forum (SMF), and Forum Software (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub