much appreciated, sorry if newbie questions but, im a newbie
keep up great work, will get ack to you if i get stuck (say 30 mins
)
update:
told u id be back
I had a look at the chat install, in the shoutbox it has an index.php file and is as follows, any suggestions how to tweak or would u rather i head over to the custom code area
cheers
ps i created a custom php and copied, when i then went to home it bust, surprise surprise, i know, i should have known better but i dont know php
<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link
https://blueimp.net/ajax/ */
if (!$_GET['shoutbox']){
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname(dirname($_SERVER['PHP_SELF'])), '/\\');
$extra = 'chat/index.php';
header("Location: http://$host$uri/$extra");
}
// Show all errors:
error_reporting(E_ALL);
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>