• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

intégrer PFC à oscommerce, restreindre l\'accès du chat aux

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

Post a reply
3 posts • Page 1 of 1

Postby alain3333 » Mon Aug 13, 2007 3:03 pm

Bonjour
Bravo pour PFC ; super simple à installer et très ergonomique.
Je cherche à implanter 'phpfreechat-1.0-beta11' sur un site oScommerce. Comment rendre le chat uniquement accessible aux visiteurs identifiés ? (Mon niveau en php et sql est proche de 0 wacko.gif ...). Mais bon ! je suis très obstiné ; ça compense parfois.

voici l'index du chat :
<?php

require_once "/home.2/monid/www/monsite/chat/src/phpfreechat.class.php"; // pensez a ajuster le chemin
$params["serverid"] = md5(__FILE__); // permet d'identifier ce chat
$params["refresh_delay"] = 1000; // 3000ms = 3s
$params["language"] = "fr_FR";
$params["theme"] = "green";
$params['admins'] = array('monidadmin' => 'mdp');
$params["timeout"] = 180000; // 30 min
$params["quit_on_closedwindow"] = true;
$params['channels'] = array("room");
$chat = new phpFreeChat($params);

require('/home.2/monid/www/monsite/catalog/includes/application_top.php');
require('/home.2/monid/www/monsite/catalog/includes/classes/http_client.php');
if (!tep_session_is_registered('customer_id')) {
tep_redirect(tep_href_link('/home.2/monid/www/monsite/catalog/login.php'));
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Slave'Chat</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>

Voici le message d'erreur que j'obtiens :
Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29

Merci de votre aide !

Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/local/lib/php') in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29
alain3333
New member
 
Posts: 2
Joined: Mon Aug 13, 2007 12:09 am
Top

Postby alain3333 » Mon Aug 13, 2007 3:05 pm

alain3333 wrote:Bonjour
Bravo pour PFC ; super simple à installer et très ergonomique.
Je cherche à implanter 'phpfreechat-1.0-beta11' sur un site oScommerce. Comment rendre le chat uniquement accessible aux visiteurs identifiés ? (Mon niveau en php et sql est proche de 0 wacko.gif ...). Mais bon ! je suis très obstiné ; ça compense parfois.

voici l'index du chat :
<?php

require_once "/home.2/monid/www/monsite/chat/src/phpfreechat.class.php"; // pensez a ajuster le chemin
$params["serverid"] = md5(__FILE__); // permet d'identifier ce chat
$params["refresh_delay"] = 1000; // 3000ms = 3s
$params["language"] = "fr_FR";
$params["theme"] = "green";
$params['admins'] = array('monidadmin' => 'mdp');
$params["timeout"] = 180000; // 30 min
$params["quit_on_closedwindow"] = true;
$params['channels'] = array("room");
$chat = new phpFreeChat($params);

require('/home.2/monid/www/monsite/catalog/includes/application_top.php');
require('/home.2/monid/www/monsite/catalog/includes/classes/http_client.php');
if (!tep_session_is_registered('customer_id')) {
tep_redirect(tep_href_link('/home.2/monid/www/monsite/catalog/login.php'));
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Slave'Chat</title>
<?php $chat->printJavascript(); ?>
<?php $chat->printStyle(); ?>
</head>
<body>
<?php $chat->printChat(); ?>
</body>
</html>

Voici le message d'erreur que j'obtiens :
Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29

Merci de votre aide !

Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/local/lib/php') in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29
alain3333
New member
 
Posts: 2
Joined: Mon Aug 13, 2007 12:09 am
Top

Postby PRism@_iP » Wed Aug 29, 2007 6:39 pm

alain3333 wrote:
alain3333 wrote:Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/local/lib/php') in /home.2/monid/www/monsite/catalog/includes/application_top.php on line 29


Bonjour,

Le '.: /' c'est normal ?
En général soit on a ./ soit ../

Pour le reste je n'ai pas encore installé osCommerce...

Pascal.
Last edited by PRism@_iP on Wed Aug 29, 2007 6:39 pm, edited 1 time in total.
PRism@_iP
Member
 
Posts: 19
Joined: Mon Jul 30, 2007 6:06 pm
Location: France
  • Website
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 24 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