News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

TheListener


myownfriend

Quote from: TheListener on August 20, 2009, 01:26:47 PM
I use firefox and have no trouble with the shoutbox.

I have a feeling you intended to quote me, but anyway. I edited the theme to my shoutbox. Looking over the code I see no reason why it stopped working in Firefox but it has.


This is the modified code I'm using. It's structurally pretty much identical it just gets rid of the tables.

<ul class="table" id="shoutbox">
<li class="thead">
<div class="cell">
  <a class="floatright" rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="http://www.rmphantasy.net/Themes/RM Phantasy/images/collapse.gif" alt="*" /></a>ShoutBox
</div>
</li>
<li class="row" id="shout_contents" >
<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>
                                           
<div id="ajaxChatContent">
<script src="http://www.rmphantasy.net/chat/js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/lang/en.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<div id="ajaxChatChatList"></div>
</div>

<div class="bg2" id="ajaxChatfooter">
<div>
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="1040" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
<input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />
</div>
<script type="text/javascript">
// <![CDATA[
ajaxChatConfig.ajaxURL = 'http://www.rmphantasy.net/chat/?ajax=true&shoutbox=true';
ajaxChatConfig.baseURL = 'http://www.rmphantasy.net/chat/';

ajaxChatConfig.sessionName = 'ajax_chat';
ajaxChatConfig.cookieExpiration = parseInt('365');
ajaxChatConfig.cookiePath = '/';
ajaxChatConfig.cookieDomain = '';
ajaxChatConfig.cookieSecure = '';
ajaxChatConfig.chatBotName = decodeURIComponent('ChatBot');
ajaxChatConfig.chatBotID = '2147483647';
ajaxChatConfig.allowUserMessageDelete = parseInt('1');
ajaxChatConfig.inactiveTimeout = parseInt('2');
ajaxChatConfig.privateChannelDiff = parseInt('500000000');
ajaxChatConfig.privateMessageDiff = parseInt('1000000000');
ajaxChatConfig.showChannelMessages = false;
ajaxChatConfig.messageTextMaxLength = parseInt('1040');
ajaxChatConfig.socketServerEnabled = parseInt('0');
ajaxChatConfig.socketServerHost = decodeURIComponent('www.rmphantasy.net');
ajaxChatConfig.socketServerPort = parseInt('1935');
ajaxChatConfig.socketServerChatID = parseInt('0');

ajaxChatConfig.domIDs['chatList'] = 'ajaxChatChatList';
ajaxChatConfig.domIDs['inputField'] = 'ajaxChatInputField';
ajaxChatConfig.domIDs['flashInterfaceContainer'] = 'ajaxChatFlashInterfaceContainer';

ajaxChatConfig.startChatOnLoad = false;

ajaxChatConfig.settings.autoFocus = false;
ajaxChatConfig.settings.wordWrap = true;
ajaxChatConfig.settings.maxWordLength = 11;
ajaxChatConfig.settings.blink = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, false, true);
// ]]>
</script>
</div>
<div>
<div class="floatleft" id="bbCodeContainer">
<input type="button" value="b" title="Bold text: [strong]text[/strong]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="i" title="Italic text: [em]text[/em]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="u" title="Underline text: [u]text[/u]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
</div>
</div>
<div>
<div class="right" id="emoticonsContainer" dir="ltr"></div>
</div>
    <div id="ajaxChatFlashInterfaceContainer"></div>
</div>
</li>
</ul>

rgecy

Is there a way to clear the history, or not show the history when a user logs in?

I also would like to add a logo to the top where it says AJAX Chat, how would I do this?

RGecy

magnitude2007

#3563
Sir i have installed AjaxChat Integration_3.2.1 on my forum without any error and i want to customize the emoticons there are 23 emoticons in dafault ajaxchat minishoutbox and i want to add more emoticons i have also tweaked chat\js\config.js file to add more emoticons but when i exceed the emoticons limit all the emoticons got disappreared....
How to add more smilies into minishoutbox ?

This mod is awsome.
Still waiting for any reply

Itesz

Why is it, that in Firefox, the chat loads to slowly or not at all, while in Chrome or Internet Explorer it loads instantly?

Sorry if it was posted before...

Brutzel

Nice mod, but still one little fault with permission settings in smf 1.1.10 :

when i go to
    permissions -> unregistered users -> edit
then enable "View shoutBox" and logout, no shoutbox appears (to unregistered users).

any fix?

rg. Brutzel

myownfriend

Quote from: Itesz on August 21, 2009, 01:08:47 PM
Why is it, that in Firefox, the chat loads to slowly or not at all, while in Chrome or Internet Explorer it loads instantly?

Sorry if it was posted before...

I'm having a very similar problem.

magnitude2007

Quote from: rgecy on August 20, 2009, 11:49:35 PM
Is there a way to clear the history, or not show the history when a user logs in?

I also would like to add a logo to the top where it says AJAX Chat, how would I do this?

RGecy


I think there no such option to delete the history....my 2 day old history log is about 12 mb its enough. You have to delete the log file manually from phpmyadmin>smf ajax messages

TheListener

Quote from: myownfriend on August 21, 2009, 04:26:02 PM
Quote from: Itesz on August 21, 2009, 01:08:47 PM
Why is it, that in Firefox, the chat loads to slowly or not at all, while in Chrome or Internet Explorer it loads instantly?

Sorry if it was posted before...

I'm having a very similar problem.

Check which version of firefox you use.

Itesz


Dret

Hi to all

I have a little problem with this MOD.

I start to use 3.2 version on SMF 1.1.09 and all work fine.

But since I made the upgrade to SMF 1.1.10, installing the MOD (also in 3.2.1 version) is become impossible.

SMF give me a message errore of "corrupted package or incorrect version"

Can someone help me?

Thanks BYE!

Dzonny

Hello there,

I saw this link for add some smileys http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049
but is there a way to integrate forums smileys with this chat?

Regards.

myownfriend

Quote from: TheListener on August 21, 2009, 05:11:55 PM
Check which version of firefox you use.

I test it out on 3.5.2, 3.6, and the 3.7 trunk builds.

lexa90

Hello, i have one question. Is it possible to change the color of shoutbox on index.php and how. I tried to edit some files but always this white shoutbox windows appears. I want to change to some darker colors because of theme. Thanks in advance

TheListener

Quote from: lexa90 on August 22, 2009, 03:33:23 PM
Hello, i have one question. Is it possible to change the color of shoutbox on index.php and how. I tried to edit some files but always this white shoutbox windows appears. I want to change to some darker colors because of theme. Thanks in advance

You could try the shoutbox css file.

I also have a dark theme but although the chatroom is black I have a white shoutbox.

lexa90

^ Tried that, but no hope, it's still white. Mine chatroom is also black but this, no.

TheListener

What is the link to your forum?

Sorry I am unable to help any further.


TheListener

Quote from: lexa90 on August 22, 2009, 04:10:36 PM
www.balkanwarez.org

IMO I would keep it as it is.

The shoutbox being white does not take away from the forum and saves the hassle of having to change the color of the text so it isn't black.

TheListener

Quote from: Dzonny on August 22, 2009, 07:36:46 AM
Hello there,

I saw this link for add some smileys http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049
but is there a way to integrate forums smileys with this chat?

Regards.

I believe you can add your own smileys to the chat but I'm not 100% certain.

Advertisement: