Frug / AJAX-Chat

A fully customizable web chat implemented in JavaScript, PHP and MySQL which integrates nicely with common forum systems like phpBB, MyBB, FluxBB, SMF and vBulletin. A Flash and Ruby based socket connection can be used to boost performance.
http://frug.github.io/AJAX-Chat/
548 stars 300 forks source link

Cannot get shoutbox to work #234

Closed ghost closed 8 years ago

ghost commented 8 years ago

I cannot get the shourbot to work. I'm on Windows 8, Apache 2.4, PHP 7.0.4, MySql 5.7.11 community, AJAX-Chat from master branch at 2016/04/25

I put this file inside the chat subfolder. Only a textbox shows and the copyright below it. There is no buttons, no graphics at all, even pressing enter on the text box does nothing

`<?php

define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME'])).'/'); define('AJAX_CHAT_URL', realpath(dirname($_SERVER['SCRIPT_FILENAME'])).'/');

function getShoutBoxContent() {

// URL to the chat directory: if(!defined('AJAX_CHAT_URL')) { define('AJAX_CHAT_URL', './chat/'); }

// Path to the chat directory: if(!defined('AJAX_CHAT_PATH')) { define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/'); }

// Validate the path to the chat: if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {

// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();

}

else echo "classes.php not found";

return null; }

function regularChat() { // Initialize the chat: $ajaxChat = new CustomAJAXChat(); }

echo '

'; echo getShoutBoxContent(); echo'

';

?>`

Frug commented 8 years ago

For support questions use google groups: https://groups.google.com/forum/#!forum/ajax-chat