AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

.HuNTeR.

@LT07
you should do the edits in other themes manually
crashing in other themes (that doesn't have this mod) will fixed in next version

@segvon2003
this bug is in chat script but if you install this mod will be fixed and you can use the chat

to all of those waiting next release of this mod
i found a bug in chat access permission and after fixing that mod ready to release

and mrtrc266 thank you for your help
your help let me to spend more time in coding

mrtrc266

Quote from: .HuNTeR. on February 12, 2009, 12:48:47 PM
and mrtrc266 thank you for your help
your help let me to spend more time in coding

NP at all, I have no idea what I'm doing but this is fun, I got 2 sites up and running last night  :D

I'm working on something really cool that you might wanna check out for future features. I got a PopUp smiley box going in the Chat Room and ShoutBox :D

You can check it out here if ya like

http://monsters-mansion.com

Username: test
Password: testuser

Jazman

Well, I figured out my previous issues with the language text, but I just noticed I'm getting this error repeatedly in my Forum Error Log.

8: Undefined index: chatPopUp


Any thoughts?

mrtrc266

Quote from: Jazman on February 12, 2009, 01:34:41 PM
Well, I figured out my previous issues with the language text, but I just noticed I'm getting this error repeatedly in my Forum Error Log.

8: Undefined index: chatPopUp


Any thoughts?

Goto Admin/Configuration/Features and Options/Basic Features and check "chat in popup page?" See if that helps.

MarineSniper

#424
That still did not work at all. and i did a fresh install of 1.1.7 and installed the chat script created my boards and then applied the mod here is my chat room


MarineSniper

Anyone have any ideas i know it works other people have it but why can i not get it to work is there special server req. that i need.

mrtrc266

Quote from: MarineSniper on February 12, 2009, 08:49:45 PM
Anyone have any ideas i know it works other people have it but why can i not get it to work is there special server req. that i need.

I've been trying to get to your site....Looks like you're reinstalling, if that's the case as soon as your done immediately install this version of  AJAX Chat  ajax_chat-0.8.1.2_SMF.tar.gz

Then install this versions of the AJAX Chat Intergration MOD AjaxChat_Integration_2.3.zip

Do both of these steps before you install any other MODs or Themes, post back here when you're done.

MarineSniper

okay i will do that i am reinstalling the 1.1.8 smf software right now. do you have a messenger service ??? like yahoo or msn

mrtrc266

Quote from: MarineSniper on February 12, 2009, 09:51:05 PM
okay i will do that i am reinstalling the 1.1.8 smf software right now. do you have a messenger service ??? like yahoo or msn

PM sent

MarineSniper

Man i appreciate all the work you did for me tonight my site now rocks and my members can have the chat that they deserve.

Thank You

mrtrc266

Quote from: MarineSniper on February 12, 2009, 10:59:05 PM
Man i appreciate all the work you did for me tonight my site now rocks and my members can have the chat that they deserve.

Thank You

No problem at all, glad I could help you get it going  :)

mrtrc266

#431
Hey Hunter when you have a second can you check out my Chat Room and Shoutbox?

http://monsters-mansion.com

Username: test
Password: testuser

I have added a PopUp window for the emoticons.

In the ChatRoom it's working perfectly with a scrollable container.

In the Shoutbox I can get it to popup but I can't get them into a container, they just go straight across my forum.  I think it's a css setting but I can't figure out where.

Do you have any ideas?

Thanks in advance.

.HuNTeR.

without code I can't do much :D

munty

mrtrc266 - the array thing worked!  cheers... (i had missed out the , in the brackets)

now another challenge....

http://yourwebsiteaddress/forum/chat/?view=logs

is how you view the logs, any chance of getting this integrated so that it can be seen from the admin panel?

keep up the outstanding work!

.HuNTeR.

2.5
February 13 2009:
compatibility with smf 2 RC1.
a bug in chat access permission fixed.
some changes to fix crashing in other themes.

heinandar

Quote from: mrtrc266 on February 12, 2009, 12:57:01 PM
Quote from: .HuNTeR. on February 12, 2009, 12:48:47 PM
and mrtrc266 thank you for your help
your help let me to spend more time in coding

NP at all, I have no idea what I'm doing but this is fun, I got 2 sites up and running last night  :D

I'm working on something really cool that you might wanna check out for future features. I got a PopUp smiley box going in the Chat Room and ShoutBox :D

You can check it out here if ya like

http://monsters-mansion.com

Username: test
Password: testuser

hello mrtrc

I very like your Chat smile pop up. I also want to do . Can you share your mod.

Hope the luck
Thank you

slyone

I just wanted to note how much I like this mod! Great job to all involved in making this mod, keep up the super great work!!

On a side note I also wanted to mention that I had a perfectly flawless installation of the whole thing using ajax_chat-0.8.1.2_SMF.tar and AjaxChat_Integration_2.5

I followed the instructions from the first post and now I have  perfectly running chat in the new 2.0RC1 version.


Thank-you

mrtrc266

#437
MAKING SMILEYS POPUP in your Chat Room and ShoutBox :D

This has been tested on AJAX Chat Intergration MOD 2.3 and 2.5

THIS WILL NOT WORK ON VERSION 3

This tweak also adds all the BBC Code Buttons and the Font Color Pallets to your ShoutBox.

These edits are AFTER the Installation on the AJAX Chat Intergration MOD.

Also, the last edit is if you want to add 60 Smileys to your chat room.

You can test it here http://www.monsters-mansion.com/test118/index.php

Username: test
Password: testuser

If you like it, here are the edits.

chat/lib/template/loggedIn.html

Find
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>

Replace with
<div id="bbCodeContainer">
<input type="button" onclick="document.getElementById('emoticonsContainer').style.display = (document.getElementById('emoticonsContainer').style.display != 'block' ? 'block' : 'none')" value="Insert Smiley"/>
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>


chat/css/positions.css

Find
#content #emoticonsContainer {
position:absolute;
left:20px;
bottom:57px;
padding:3px;
}

Replace with
#content #emoticonsContainer {
position:absolute;
left:20px;
bottom:57px;
padding:3px;
width:200px;
height:200px;
overflow:auto;
display:none;
}

Find
#content #emoticonsContainer img {
vertical-align:middle;
margin-bottom:2px;
}

Replace with
#content #emoticonsContainer img {
padding:3px;
vertical-align:middle;
margin-bottom:2px;
}


chat/lib/template/shoutbox.html

Find
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
</div>
<div id="ShoutBox">

Replace with
<div class="tborder" style="margin: 10px 0 10px 0;">
<table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<tr>
<td width="50%">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
</div>
</td>
<td width="50%" align="right">
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
</td>
</tr>
</table>
<div id="ShoutBox">

Find
<table>
<tr>
<td width="49%">
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
</div>
<!—

Replace with
<table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<tr>
<td width="100%">
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="20"/>
<input type="button" id="submitButton" value="[LANG]messageSubmit[/LANG]" onclick="ajaxChat.sendMessage();"/>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td width="60%">
<div id="bbCodeContainer">
<input type="button" onclick="document.getElementById('emoticonsContainer').style.display = (document.getElementById('emoticonsContainer').style.display != 'block' ? 'block' : 'none')" value="Insert Smiley"/>
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
<input type="button" value="[LANG]bbCodeLabelQuote[/LANG]" title="[LANG]bbCodeTitleQuote[/LANG]" onclick="ajaxChat.insertBBCode('quote');"/>
<input type="button" value="[LANG]bbCodeLabelCode[/LANG]" title="[LANG]bbCodeTitleCode[/LANG]" onclick="ajaxChat.insertBBCode('code');"/>
<input type="button" value="[LANG]bbCodeLabelURL[/LANG]" title="[LANG]bbCodeTitleURL[/LANG]" onclick="ajaxChat.insertBBCode('url');"/>
<input type="button" value="[LANG]bbCodeLabelImg[/LANG]" title="[LANG]bbCodeTitleImg[/LANG]" onclick="ajaxChat.insertBBCode('img');"/>
<input type="button" value="[LANG]bbCodeLabelColor[/LANG]" title="[LANG]bbCodeTitleColor[/LANG]" onclick="ajaxChat.showHide('colorCodesContainer', null);"/>
</div>
<div id="colorCodesContainer" style="display:none;" onclick="this.style.display='none'" ></div>
<!—

Find
//-->
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a> | <a href="http://4tmu.ir/forum/index.php">Integrated with SMF</a></div>
<script type="text/javascript">
// <![CDATA[

Replace with
//-->
<script type="text/javascript">
// <![CDATA[

Find
</script>
</td>
<td>
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
</div>
</td>
<td>
<div id="emoticonsContainer" dir="ltr"></div>

Replace with
</script>
</td>
<td width="40%">
<div id="emoticonsContainer" style="display:none;" onclick="this.style.display='none'" ></div>


chat/css/shoutbox.css

Find
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
width:60%;
}
#ajaxChatContent #ajaxChatCopyright {
margin-top:5px;
}

Replace with
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
width:45%;
}
#ajaxChatContent #ajaxChatCopyright {
margin-top:5px;
}
#bbCodeContainer {
padding:3px;
}
#colorCodesContainer {
padding:3px;
}
#colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
border:outset;
}
#emoticonsContainer {
padding:3px;
padding:3px;
width:95%px;
height:55px;
overflow:auto;
display:none;
}
#emoticonsContainer a {
margin-left:1px;
margin-right:1px;
}
#emoticonsContainer img {
padding:3px;
vertical-align:middle;
margin-bottom:2px;
}


The attatched zip file is over 60 Smileys. Unzip the file and upload them to chat/img/emoticons. Some will overwrite what is already there but these are better anyway :-)
You can add Smileys to the script but it's important make sure the the input code is in the same order as the image file. Also make sure that the last array DOES NOT have a comma.
Then do the following edits in the file...

chat/js/config.js

Find
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
),

Replace with
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
':cc',
';)',
':winktongue:',
':P',
':D',
':wave:',
':sleeping:',
':whistle:',
':idea:',
':|',
':resigned:',
':O',
':err',
':grr',
'8o',
'B)',
':headphones:',
':onthephone:',
':applause:',
':money:',
':thumbsup:',
':thumbsdown:',
':undecided:',
':nervous:',
':worried:',
':scaredblue:',
':stop:',
':despair:',
':angel:',
'devilish',
':vampire:',
':blushing:',
':lustful:',
':inlove:',
':kiss:',
':flower:',
':radioactive:',
':ill:',
':tongue:',
':mean:',
':lipsrsealed:',
':bequiet:',
':pirate:',
':clown:',
':mouse:',
':bull:',
':cow:',
':pig:',
':bandaged:',
':dead:',
':biohazard:',
':creeper:',
':grab:',
':banghead:',
':lmaoslap:',
':spitcoffe:',
':lols:',
':rofl:'
),

Find
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Replace with
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.gif',
'sad.gif',
'cry.gif',
'wink.gif',
'winktongue.gif',
'grin.gif',
'cheesy.gif',
'wave.gif',
'sleeping.gif',
'whistle.gif',
'idea.gif',
'unhappy.gif',
'resigned.gif',
'surprised.gif',
'angry.gif',
'angry2.gif',
'eek.gif',
'cool.gif',
'headphones.gif',
'onthephone.gif',
'applause.gif',
'money.gif',
'thumbsup.gif',
'thumbsdown.gif',
'undecided.gif',
'nervous.gif',
'worried.gif',
'scaredblue.gif',
'stop.gif',
'despair.gif',
'angel.gif',
'devilish.gif',
'vampire.gif',
'blushing.gif',
'lustful.gif',
'inlove.gif',
'kiss.gif',
'flower.gif',
'radioactive.gif',
'ill.gif',
'tongue.gif',
'mean.gif',
'lipsrsealed.gif',
'bequiet.gif',
'pirate.gif',
'clown.gif',
'mouse.gif',
'bull.gif',
'cow.gif',
'pig.gif',
'bandaged.gif',
'dead.gif',
'biohazard.gif',
'creeper.gif',
'grab.gif',
'banghead.gif',
'lmaoslap.gif',
'spitcoffe.gif',
'lols.gif',
'rofl.gif'
),



vlindertje

I install first the ajax chat for smf.
After that i install this mod.

I use smf 2.0 rc1  (default theme)

=====
Problem 1
Now i've a strange situation:

If i write something in the shout, you can see it in the chat.
And if i write it in the chat, you see the text in the shoutbox.

This is not the intention i guess?!

====
Problem 2
Then i get some errors only in the errorlog:

8: Undefined index: anyPageShoutBox
forum/Themes/default/index.template.php
Regel: 364
======

Problem 3

8: Constant AJAX_CHAT_USER already defined
8: Constant AJAX_CHAT_ADMIN already defined
8: Constant AJAX_CHAT_CHATBOT already defined
8: Constant AJAX_CHAT_MODERATOR already defined
8: Constant AJAX_CHAT_GUEST already defined

forum/chat/lib/config.php
(line 11, 12, 13, 14, 15)

=====
Problem 4

I want only 1 channel!
But i get a list of all the channel in the chat.  All subjects on my community are one for one a channel :-\

=====


I hope some one can help me. I'm NOT an expert with php files. I understand them a little.

mrtrc266

#439
@  vlindertje

Problem 3, I have no clue.

Problem 1
Yes it is designed to allow you to see that chat no matter whether you are in the shoutboxor chatroom, hence "Intergration"

Problem 2
Then i get some errors only in the errorlog:

Don't worry about the error it's only cuz you don't have this checked "check for ShoutBox on any page or uncheck for only in index page: If you want the shoutbox on ALL pages then go to Admin/Modifications/Chat and check that box. The error goes away if your do this.

I'm sure there will be a fix for that soon.

Problem 4
I want only 1 channel!

This should help.

http://www.simplemachines.org/community/index.php?topic=257973.msg1928449#msg1928449

Advertisement: