Page 1 of 2

Ajax chat 1.41 (Solved)

PostPosted: Thu May 28, 2009 6:49 am
Author: krillmeed
I have replaced the normal chat that came with Integramod, with the Ajax chat, (Sorry its just that i prefer the layout better. It does work, with all permissions taken off the forum and so on, at least we have found so far. But i would like the forum to show who is in the chatroom. Either in a block (Which would be cool, or in the footer. Here is how they explain it can be done in phpbb2 but it does not seem to work for integramod: http://ajax-chat.wiki.sourceforge.net/p ... chat+users

Could one of you clever people take a look and see if its possible, Integramod is still the best around, i have had mine for a few years already and still it surprises me from time to time of what i can do <img>

Re: Ajax chat 1.41

PostPosted: Fri May 29, 2009 4:06 am
Author: .QUACK.Major.Pain
I have an ajax chat one time and it should who's online in chat above the who's online box at the bottom.

Will see this weekend if I can locate it.

Re: Ajax chat 1.41

PostPosted: Fri May 29, 2009 12:33 pm
Author: krillmeed
If you can do that you have a friend for life xox

Re: Ajax chat 1.41

PostPosted: Fri May 29, 2009 3:01 pm
Author: .QUACK.Major.Pain
Seems my chat doesn't work anymore. LOL

Missing the chat.php file.

If I only could remember where I got the mod. Crap.

Re: Ajax chat 1.41

PostPosted: Fri May 29, 2009 4:58 pm
Author: .QUACK.Major.Pain
I haven't found the code to add who's online, but I created a tutorial to replace the shoutbox with ajax.

http://www.integramod.com/forum/viewtop ... =23&t=5448

I think if you do the part 2 edits, you can get the same effect with yours.

Re: Ajax chat 1.41

PostPosted: Sun May 31, 2009 5:45 am
Author: krillmeed
Sorry Major, thanks for the work you obviously put into it :( (You still have a friend for life though) xox

http://www.mkportal.it/support/showthread.php?t=28364
Thank you in advance, Integramod is still the best around, including phpbb2, obviously the differences are causing the problems :P

Re: Ajax chat 1.41

PostPosted: Sun May 31, 2009 9:16 am
Author: krillmeed
Played around with it here as well, did not work :D

Re: Ajax chat 1.41

PostPosted: Sun May 31, 2009 12:45 pm
Author: Helter
open includes/page_header.php

find

Code: Select all
if (defined('SHOW_ONLINE'))


before, add

Code: Select all
// Chat online users]);     array_push($chat_online_user_names, $row['userName']);     }$db->sql_freeresult($result);


find

Code: Select all
// The following assigns all _common_ variables that may be used at any point// in a template.//$template->assign_vars(array(


after, add

Code: Select all
    'CHAT_LINK'     => './chat/index.'. $phpEx,     'CHAT_LABEL'    => 'In Chat] '.htmlentities(implode(', ', $chat_online_user_names), ENT_QUOTES, 'ISO-8859-1'),     'CHAT_TITLE'    => 'Online: '.htmlentities(implode(', ', $chat_online_user_names), ENT_QUOTES, 'ISO-8859-1'),


open templates/Integra2/overall_header.tpl

find

Code: Select all
</head>


before, add

Code: Select all
<script><function></script>

** for non-qbar link**
Code: Select all
<a>{L_CHAT}</a>


**for qbar link**
open/includes/def_qbar.php
find
Code: Select all
                    ),     ),         'Board Navigation' => array(  


before, add
Code: Select all
                        'Chat' => array(                                 'shortcut'       => 'Chat',                                 'explain'       => 'Chat',                                 'use_value'     => true,                                 'url'           => 'chat/index.php" onclick="openChatWindow(this.href); this.blur(); return false;',                                 'auth_logged'   => 1,                             ),


open templates/Integra2/index_body/tpl
find
Code: Select all
<td>


replace with
Code: Select all
<td>


find
Code: Select all
<td><span>{L_ONLINE_EXPLAIN}</span></td></tr>


after, add
Code: Select all
<tr><td><span>{CHAT_LABEL}</span></td></tr>

open language/lang_english/lang_main.php
find
Code: Select all
$lang['Forum'] = 'Forum';


after, add
Code: Select all
$lang['Chat'] = 'Chat';

Re: Ajax chat 1.41

PostPosted: Sun May 31, 2009 12:54 pm
Author: krillmeed
Bit late for me now tonight, but will try it in the morning. The best forum around should have the best chatroom mod, which i think both Integramod and Ajax chat fit well together as it seems your contributors have found out xox

Re: Ajax chat 1.41

PostPosted: Mon Jun 01, 2009 1:50 am
Author: krillmeed
I always hope one day that i will be able to catch you guys out with a problem you cannot figure out, but thats not today :grin: Worked like a dream on all templates, even my LCARS one which is slightly different then the rest. :x But i do know you guys are busy with IM3 So i presume this is on your list as well, so if you ever get it working perfectly here, can you let me know as well xox

Re: Ajax chat 1.41

PostPosted: Tue Jun 02, 2009 10:12 am
Author: krillmeed
The Ajax chat on my forum still does not like long sentences at all. When you press submit or the enter button nothing happens. Now see the one on this site works perfectly 8)

Re: Ajax chat 1.41

PostPosted: Tue Jun 02, 2009 2:56 pm
Author: Helter
this is the same thing with the phpBB3 integration. Dl both of them and compare the db tables for differences

Re: Ajax chat 1.41

PostPosted: Tue Jun 02, 2009 3:18 pm
Author: .QUACK.Major.Pain
I noticed the same thing, and I edited the config file to allow more characters, but same thing.

Re: Ajax chat 1.41

PostPosted: Tue Jun 02, 2009 9:04 pm
Author: krillmeed
"HelterSkelter" wrote:this is the same thing with the phpBB3 integration. Dl both of them and compare the db tables for differences


Just done that, the database tables seem to be identical <img>

Re: Ajax chat 1.41

PostPosted: Wed Jun 03, 2009 6:14 am
Author: krillmeed
The only difference througout the program is between the custom.php files. Here are the 2 versions

phpbb2

Code: Select all
<php>



phpbb3

Code: Select all
<php>session_begin();$auth->acl($user->data);?>


Any ideas anyone? Could cttracker be causing it?