2010-02-10, 03:36 PM
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
2010-02-10, 07:24 PM
Chat script.
2010-02-10, 08:33 PM
Damn.
2010-02-12, 11:30 PM
Hi im having problems installing this:
i keep getting an error when im putting in www.mywebsite.com/forum/chat/install.php
can some one help?
i keep getting an error when im putting in www.mywebsite.com/forum/chat/install.php
can some one help?
2010-02-12, 11:32 PM
What type of error? Did you insert your database info into the config file?
2010-02-13, 12:02 AM
(2009-11-20, 03:58 PM)ows Wrote: [ -> ](2009-07-10, 09:31 PM)ecanikajo Wrote: [ -> ]I would like to insert the Ajax chat on the index page as Shoutbox.
(2009-07-29, 11:41 PM)gimmezell Wrote: [ -> ]I'm interested in using this as a shoutbox too.
First of all ... install and activate this plugin to enable php-code in templates.
Open your themes "global.css" in advanced mode and add this code on top:
@import url("./chat/css/shoutbox.css");
Create a new file with this code:
<?php 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(); } return null; } ?>
and save it as "shoutbox.php" in your forums root directory.
Edit your MyBB-Forums "index.php", search for (~line 27)
// Load global language phrases $lang->load("index");
AFTER add:
// START Shoutbox-Code ob_start(); include("shoutbox.php"); $shoutbox = ob_get_contents(); ob_end_clean(); // END Shoutbox-Code
Edit your themes template "Index Page Templates --> index". Search for
{$header}
AFTER add:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" class="tborder"> <thead> <tr> <td class="thead"> <div class="expcolimage"> <img src="{$theme['imgdir']}/collapse{$collapsedimg['shoutbox']}.gif" id="shoutbox_img" class="expander" alt="[-]" title="[-]" /> </div> <div><strong>Shoutbox</strong></div> </td> </tr> </thead> <tbody style="{$collapsed['shoutbox_e']}" id="shoutbox_e"> <tr> <td class="trow1"><div style="width:100%;"><?php echo getShoutBoxContent(); ?></div></td> </tr> </tbody> </table> <br />
Youre done
Demo-Link (sorry, german only)
Nothing happens?
1. Check the path to your chat-directory in "global.css" and "shoutbox.php" (lines 5 and 10)!
2. Activate Output template start/end comments? in Admin-CP --> Configuration --> Settings --> Server and Optimization Options
I followed these instructions and the shoutbox works fine but is there a way to make the smilies and bbcode boxes to display on the shoutbox also?
2010-02-17, 04:52 AM
I'm getting XML parsing errors in Opera 10.50 and Chrome 3.0. The wiki (wrongly) says that I modified the files, but I did not. What can I do? I cannot access the chat using Opera, my main browser. It renders it, but with functionality errors.
2010-03-14, 02:11 PM
Hello, My Forum is Hosting in 000.webhost. My problem is Instalation for Ajax Chat
Copy chat into Forum
Ejecuting Install
1º fe7en.vacau.com/Foro/chat/install.php
Problem, no generate sql Database auto...
Query: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: Error-Code:
Build the database I going to phpmyadmin
2º Deleted install.php, from view index.php
Problem, no check or non view Database
Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM ajax_chat_online ORDER BY userName; Error-Report: Error-Code:
Internet search and found no solution problem, Plucko Post problem similar in
http://community.mybboard.net/archive/in...37-10.html
Copy chat into Forum
Ejecuting Install
1º fe7en.vacau.com/Foro/chat/install.php
Problem, no generate sql Database auto...
Query: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: Error-Code:
Build the database I going to phpmyadmin
2º Deleted install.php, from view index.php
Problem, no check or non view Database
Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM ajax_chat_online ORDER BY userName; Error-Report: Error-Code:
Internet search and found no solution problem, Plucko Post problem similar in
http://community.mybboard.net/archive/in...37-10.html
2010-04-18, 12:55 AM
(2009-01-15, 08:09 AM)Netbuddy Wrote: [ -> ]Found out what was causing this btw:
DirectoryIndex portal.php
If you have your portal.php as your main page like I have, needs to be changed to:
DirectoryIndex portal.php index.php index.html index.htm
That should fix the connection errors.
Can someone tell me which file I edit as he instructed above? I am getting the same problem as well
2010-04-19, 08:30 AM
File .htaccess