Ajax chat 1.41 (Solved)

Mods etc.

Moderator: Integra Moderator

Ajax chat 1.41 (Solved)

PostAuthor: krillmeed » Thu May 28, 2009 7: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 10:06 am, edited 1 time in total.

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

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Fri May 29, 2009 5: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
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Fri May 29, 2009 1: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Fri May 29, 2009 4: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
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Fri May 29, 2009 5: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
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sun May 31, 2009 6: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sun May 31, 2009 10: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: Helter » Sun May 31, 2009 1: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';
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sun May 31, 2009 1: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Mon Jun 01, 2009 2: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Tue Jun 02, 2009 11: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

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

this is the same thing with the phpBB3 integration. Dl both of them and compare the db tables for differences
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Ajax chat 1.41

PostAuthor: .QUACK.Major.Pain » Tue Jun 02, 2009 4: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
Images: 0
Joined: Sat Jan 27, 2007 11:15 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Tue Jun 02, 2009 10: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Wed Jun 03, 2009 7: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
Images: 0
Joined: Sat May 27, 2006 1:34 am
Cash on hand: 0.00

Re: Ajax chat 1.41

PostAuthor: krillmeed » Fri Jun 05, 2009 4:47 am

Asked about this on the Ajax chat forum. Seems they have never even heard of Integramod, and do not do support with integration <img>

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

Re: Ajax chat 1.41

PostAuthor: krillmeed » Fri Jun 05, 2009 8:38 am

Who modded it all installed it on this board? Maybe they did something i am overlooking. :(

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

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sat Jun 06, 2009 2:40 am

I think i know now what is causing it. In Cracker Tracker Logfile Manager under Worm & Exploit Protection I have over 50 entries with this:

Appeal: /forum/chat/index.php?ajax=true

Referer: http://www.krillmeed.com/forum/chat/index.php

UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

IP Address: (my IP address)

would seem in IM3 you have ironed out the problems with CT, so anyone any ideas how i can allow CT to ignore Ajax chat? <img>

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

Re: Ajax chat 1.41

PostAuthor: Helter » Sat Jun 06, 2009 9:43 am

ive installed it with only the modifications posted here and it will allow 1040 characters per post.

http://www.duiplayground.com/IntegraMOD141/
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sat Jun 06, 2009 9:48 am

Are you showing exploit attempts in the Cracker Tracker? .=QUACK=.Major.Pain was also having this problem so its not just me <img>

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

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sat Jun 06, 2009 9:54 am


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

Re: Ajax chat 1.41

PostAuthor: krillmeed » Sat Jun 06, 2009 10:05 am

Found the answer, it was on a forum about flash chat with CT, but the principle is the same:

open Index php in chat folder

After

Code: Select all
// Show all errors]

Add

[code]define('CT_SECLEVEL', 'LOW');


now i can post all 1047 letters :wink:

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

Re: Ajax chat 1.41 (Solved)

PostAuthor: viragotech » Sat Jun 06, 2009 1:55 pm

That CT low command seems to be the fix for everything under the sun.

[ Too bad 'CT_SECLEVEL', 'OFF' doesn't work though <img> ]


When you think you got it all worked out KM let us/me know before I try it.
User avatar
viragotech
Sr Integra Member
Sr Integra Member
 
Posts: 292
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Wed Jul 04, 2007 11:30 am
Cash on hand: 0.00

Re: Ajax chat 1.41 (Solved)

PostAuthor: Helter » Sat Jun 06, 2009 8:25 pm

there is a post here that explains how to completely disable it by commenting out a few lines, though I strongly discourage this. I have I have a very quiet site that has not had much traffic in the last year but my ct log shows I still get 20-30 attack attempts a month and sometimes a more than a dozen a day.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

Re: Ajax chat 1.41 (Solved)

PostAuthor: krillmeed » Sun Jun 07, 2009 1:44 am

No way would i turn it off, just asking for trouble, but lowering the security throughout the forum on some things is the only way admins can seem to do anything these days. I find CT far too agressive sometimes but better too much than not enough, its a small inconvenience. Setting this on low seems to work, but not the ideal solution, but better than CT not allowing it at all <img>

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

Re: Ajax chat 1.41 (Solved)

PostAuthor: krillmeed » Sun Jun 07, 2009 1:58 am

Have tried it on the MEDIUM setting this morning, but it stops it every time. My members spent the night (My time) Chatting like crazy and loving it, so i guess we have a winner 8)

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


Return to IntegraMOD Modifications

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]