Jump to content

Help with phpfreechat integration


MarkHoward

Recommended Posts

I'm not a programmer, just want to get something working.

This is to do with displaying the number of people using a chat room on another page in a website.

Relevant site structure is:

public_html/NZMotorhomeChat/chat.php

public_html/directory/directory.php

 

In chat.php I have

    define('IN_PHPBB', true);
    $phpbb_root_path = '../NZMotorhomeForum/';
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);

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

and

$params["serverid"] = md5(ForumChat); // calculate a unique id for this chat

 

In directory.php I have (first part of code only)

	<?php
            require_once dirname."home/nzmotorh/public_html/NZMotorhomeChat/src/pfcinfo.class.php";
            $info  = new pfcInfo( md5(ForumChat) );
            // NULL is used to get all the connected users, but you can specify
            // a channel name to get only the connected user on a specific channel
            $users = $info->getOnlineNick(NULL);

 

I get the following error messages


Warning: require_once(dirname/public_html/NZMotorhomeChat/src/pfcinfo.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/nzmotorh/public_html/directory/directory.php on line 36

Fatal error: require_once() [function.require]: Failed opening required 'dirname/public_html/NZMotorhomeChat/src/pfcinfo.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nzmotorh/public_html/directory/directory.php on line 36

 

I have failed ti get help fron the phpFreeChat forum and am getting deperate.

 

I hope someone is able to give me some pointers.  If it's not apparent - I'm an absolute Newbie :-[

Link to comment
https://forums.phpfreaks.com/topic/181947-help-with-phpfreechat-integration/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.