Sub Menu
Links Menu
Online Users

In total there are 310 users online :: 3 registered, 0 hidden and 307 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

Ajax chat 1.41 (Solved)

Mods etc.

Moderator: Integra Moderator

Ajax chat 1.41 (Solved)

PostAuthor: krillmeed » Thu May 28, 2009 6:49 am

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>
Last edited by krillmeed on Sat Jun 06, 2009 9:06 am, edited 1 time in total.

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Fri May 29, 2009 4:06 am

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.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Fri May 29, 2009 12:33 pm

If you can do that you have a friend for life xox

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Fri May 29, 2009 3:01 pm

Seems my chat doesn't work anymore. LOL

Missing the chat.php file.

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

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Fri May 29, 2009 4:58 pm

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.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sun May 31, 2009 5:45 am

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

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sun May 31, 2009 9:16 am

Played around with it here as well, did not work :D

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: Helter » Sun May 31, 2009 12:45 pm

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';
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sun May 31, 2009 12:54 pm

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

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Mon Jun 01, 2009 1:50 am

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

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Tue Jun 02, 2009 10:12 am

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)

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: Helter » Tue Jun 02, 2009 2:56 pm

this is the same thing with the phpBB3 integration. Dl both of them and compare the db tables for differences
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Tue Jun 02, 2009 3:18 pm

I noticed the same thing, and I edited the config file to allow more characters, but same thing.

.QUACK.Major.Pain
Sr Integra Member
Sr Integra Member
 
Posts: 986
Likes: 0 post
Liked in: 0 post
Joined: Sat Jan 27, 2007 10:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Tue Jun 02, 2009 9:04 pm

"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>

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Wed Jun 03, 2009 6:14 am

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?

krillmeed
Sr Integra Member
Sr Integra Member
 
Posts: 301
Likes: 0 post
Liked in: 0 post
Joined: Sat May 27, 2006 12:34 am
Cash on hand: 0.00

Next

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]

cron