• 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

Intergrate phpbb3 with php free chat need help

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

Post a reply
3 posts • Page 1 of 1

Postby igwtblogadmin » Mon Sep 05, 2011 9:32 pm

My version of phpbb3 is the current version .. and from what I can tell so is the chat

I have looked through the forum and all the faq stuff and have not seen the info to help me .. I see posts about intergration but just confuses me even more ..

I am getting this after putting in the intergrate info .:::


Warning: require(../common.php) [function.require]: failed to open stream: No such file or directory in /home/igwt4474/public_html/chatroom/index.php on line 5

Warning: require(../common.php) [function.require]: failed to open stream: No such file or directory in /home/igwt4474/public_html/chatroom/index.php on line 5

Fatal error: require() [function.require]: Failed opening required '../common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/igwt4474/public_html/chatroom/index.php on line 5

My board is located at: http://igwtblog.com/board
my chat is located at: http://igwtblog.com/chatroom

I need some help with both the php and setting the paths for both

the other question do I need to put in a database for nicks or no as it's calling from a db of the board

oh and want to set so I can sign in with ids from phpbb


any help would be great thank you
igwtblogadmin
New member
 
Posts: 2
Joined: Mon Sep 05, 2011 9:02 pm
Top

Postby re*s.t.a.r.s.*2 » Mon Sep 05, 2011 11:01 pm

hi,

Best thing to do is place your index.php code here. between the code tags...
so we can see your require path and help you with it..

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby igwtblogadmin » Tue Sep 06, 2011 7:41 am

<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"] = md5(__FILE__);
$params["title"] = "phpFreeChat connected to the PunBB forum";
$params["channels"] = array("General","PunBB support");
$params["language"] = "en_US";
$params["nick"] = $_SESSION['punbb_to_pfc_nickname'];
$chat = new phpFreeChat($params);
$params["title"] = "Quick chat";
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params['firstisadmin'] = true;
//$params["isadmin"] = false; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );

$params["theme"] = "igwt";
$params['nickmeta']['id'] = rand(1,1000);
$params['nickmeta']['profil'] = '<a href="demo65_metadata_and_html.php?profil='.$params['nickmeta']['id'].'" onclick="window.opener.location.href=this.href;return false;">open profil</a>';
$params['nickmeta']['avatar'] = '<a href="demo65_metadata_and_html.php?profil='.$params['nickmeta']['id'].'" onclick="window.opener.location.href=this.href;return false;">
<img src="http://img217.imageshack.us/img217/5223/244bg4.png" alt=""/></a>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
<body>

<div class="header">
<img alt="phpFreeChat" src="style/logo.gif" class="logo2" />
</div>

<div class="menu">
<ul>
<li class="sub title">General</li>
<li>
<ul class="sub">
<li class="item">
<a href="demo/">Demos</a>
</li>
<?php if (file_exists(dirname(__FILE__)."/checkmd5.php")) { ?>
<li>
<a href="checkmd5.php">Check md5</a>
</li>
<?php } ?>
<!--
<li class="item">
<a href="admin/">Administration</a>
</li>
-->
</ul>
</li>
<li class="sub title">Documentation</li>
<li>
<ul>
<li class="item">
<a href="http://www.phpfreechat.net/overview">Overview</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/quickstart">Quickstart</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/parameters">Parameters list</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/faq">FAQ</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/advanced-configuration">Advanced configuration</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/customize">Customize</a>
</li>
</ul>
</li>
</ul>
<p class="partner">
<a href="http://www.phpfreechat.net"><img alt="phpfreechat.net" src="style/logo_88x31.gif" /></a><br/>
</p>
</div>

<div class="content">
<?php $chat->printChat(); ?>
<?php if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
<p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin. Please modify this script before using it on production servers !</p>
<?php } ?>
</div>

<div class="footer">
<span class="partners">phpFreeChat partners:</span>
<a href="http://www.jeu-gratuit.net">jeux gratuits</a> |
<a href="http://jeux-flash.jeu-gratuit.net">jeux flash</a> |
<a href="http://www.pronofun.com">pronofun</a> |
<a href="http://areno.jeu-gratuit.net">areno</a> |
<a href="http://www.micropolia.com">micropolia</a> |
<a href="http://www.zeitoun.net">zeitoun</a> |
<a href="http://federation.jeu-gratuit.net">federation</a>
</div>

</body></html>


thank you for the reply .. again any help would be great ..:)
igwtblogadmin
New member
 
Posts: 2
Joined: Mon Sep 05, 2011 9:02 pm
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 5 guests

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