AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

uniektekniek

Quote from: uniektekniek on June 10, 2010, 10:20:12 PM
im having a slight issue with installing this mod due to other mods changing my index.template.php....

find
echo '
<li>', $context['current_time'], '</li>
</ul>';


add before
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<li>' . $txt['chat_no_user'] . '</li>';
elseif ($count == 1 )
  echo '<li>1' . $txt['chat_aUser'] . '</li>';
else
  echo '<li> ' . $count . $txt['chat_users'] . '.</li>';
}



basically the code in "find" isnt existant.. is there something i else i can search for? like an "add after"???


anyone?

mrtrc266

Look for $context['current_time'], ['current_time'], time, etc.

Or just install the Mod and don't worry about it, all that edit does is show you how many users are in chat in your user info section.

uniektekniek


MyJC

As forum administrator would like to be able to turn chat room off and on. Due to my visitors all chats must be monitored. So, I find this $config['chatClosed'] = true; in /chat/lib/config.php

So, can someone help me to figure out how to put a button in SMF that will enable anyone in the administrators group to toggle that variable from "true" to "false" and "false" to "true" as well as show the current state?

All help appreciated!

Thank you.


kartheekb

Problems i have seen in shout box

->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox

Can i have solutions for this
www.jntuhub.com/forum (check out my forums)

KrisiS

Quote from: mrtrc266 on June 14, 2010, 10:32:41 PM
Quote from: KrisiS on June 14, 2010, 06:06:13 PM
Hello, can someone please tell me what to edit in order to change the color of the shoutbox 'body' (the box where the text actually appears once submitted)

I have a black theme and at the moment the box is 'white'
I want it to be a dark grey to contrast better with my theme..\

Many thanks in advance.  ;)

Look at /chat/css/shoutbox.css

I have edited some settings in both /chat/css/shoutbox.css & /shoutbox/css/shoutbox.css but to no avail :(
Have I changed the wrong settings? :





/*
* Positioning
*/
#ajaxChatContent #ajaxChatChatList {
   height:169px;
   overflow:auto;
}
#ajaxChatContent  #ajaxChatChatList div {
   padding-left:5px;
   padding-top:2px;
   padding-right:5px;
   padding-bottom:2px;
}
#ajaxChatContent #ajaxChatChatList img {
   vertical-align:middle;
   margin-bottom:2px;
}
#ajaxChatContent #ajaxChatChatList cite {
   margin-right:5px;
}
#ajaxChatContent #ajaxChatChatList .bbCodeImage {
   vertical-align:top;
   overflow:auto;
   margin:5px;
}
#ajaxChatContent #ajaxChatChatList .delete {
   float:right;
   width:10px;
   height:10px;
   margin-top:5px;
   margin-left:5px;
}
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
   width:60%;
}
#ajaxChatContent #ajaxChatCopyright {
   margin-top:5px;
}


/*
* Borders
*/

#ajaxChatContent img {
   border:none;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
   border-width:1px;
   border-style:dotted;
}
#ajaxChatContent {
      background-color:#E5E5E8;
      color:#000;
}


/*
* Fonts
*/

#ajaxChatContent {
   font-size:0.9em;
}
#ajaxChatContent a {
   text-decoration:none;
}
#ajaxChatContent a:hover {
   text-decoration:underline;
}
#ajaxChatContent #ajaxChatCopyright {
   font-size:0.8em;
}
#ajaxChatContent #ajaxChatChatList span.dateTime {
   font-size:0.7em;
}
#ajaxChatContent #ajaxChatChatList span.guest {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.user {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.moderator {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.admin {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.chatBot {
   font-size:0.9em;
   font-weight:bold;
   font-style:italic;
}
#ajaxChatContent #ajaxChatList .chatBotMessage {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList .privmsg {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList .action {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList q {
   font-variant:small-caps;
}
#ajaxChatContent #ajaxChatChatList code {
    font-size:1.2em;
}


/*
* Colors
*/

#ajaxChatContent #ajaxChatChatList {
   color:#373737;
}
#ajaxChatContent #ajaxChatChatList {
   background-color:#373737;
}
#ajaxChatContent .rowEven {
   background-color:#373737;
}
#ajaxChatContent .rowOdd {
   background-color:#373737;
}
#ajaxChatContent .guest {
   color:gray;
}
#ajaxChatContent .user {
   color:#000;
}
#ajaxChatContent .moderator {
   color:#00AA00;
}
#ajaxChatContent .admin {
   color:red;
}
#ajaxChatContent .chatBot {
   color:#FF6600;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
   color:red;
}
#ajaxChatContent #ajaxChatChatList a {
   color:#1E90FF;
}
#ajaxChatContent #ajaxChatChatList .delete {
   background:url('../img/delete.png') no-repeat right;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
   border-color:red;
}

uninvited13th

How to integrate forum smileys? Not shoutbox smileys

kartheekb

Reply to my Questions


->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox. i had changes smilies in form posts but not changed in shoutbox

Can i have solutions for this
www.jntuhub.com/forum (check out my forums)

mrtrc266

@ KrisiS

This is the part where the shouts lands, you can have it alternate colors for each post.
#ajaxChatContent .rowEven {
   background-color:#373737;
}
#ajaxChatContent .rowOdd {
   background-color:#373737;
}

mrtrc266

Quote from: uninvited13th on June 15, 2010, 05:57:10 AM
How to integrate forum smileys? Not shoutbox smileys

I would love to know how to do that!

KrisiS

Thank you very much m8, works absolutely perfect !!  ;)
I had to edit those entries within the chat/css/shoutbox.css

Could I ask one more thing, Is it possible to remove the sound when someone submits a msg into the shoutbox?

mrtrc266

#6591
Quote from: kartheekb on June 15, 2010, 06:49:32 AM
Reply to my Questions


->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox. i had changes smilies in form posts but not changed in shoutbox

Can i have solutions for this

No need to refresh, chats/shouts are retrieved and 2000th of a second.

Does it really take 3 times or does it just lag initially?

See below

For the smilies look at /chat/js/config.js You'll see the smileys array

Then look in /chat/img/emoticon/ and put in whatever smileys you want, of course make them match up with your config.js

mrtrc266

Quote from: KrisiS on June 15, 2010, 12:17:45 PM
Thank you very much m8, works absolutely perfect !!  ;)
I had to edit those entries within the chat/css/shoutbox.css

Could I ask one more thing, Is it possible to remove the sound when someone submits a msg into the shoutbox?

Find /chat/lib/template/shoutbox.html

ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace With

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

KrisiS

I had just found your previous post regarding the sound and it works perfect..  ;)
I literally just popped back here to say I had it done and I seen your new post.

I am very grateful for your help, thank you so much..

PS: I wish I knew my way around the codes like you guys!   :o

Thanks again!

mrtrc266

Quote from: KrisiS on June 15, 2010, 12:28:16 PM
I had just found your previous post regarding the sound and it works perfect..  ;)
I literally just popped back here to say I had it done and I seen your new post.

I am very grateful for your help, thank you so much..

PS: I wish I knew my way around the codes like you guys!   :o

Thanks again!

Glad you got it sorted, you'll get there :D Enjoy!

talk2troy

Quote from: mrtrc266 on June 14, 2010, 06:43:34 PM
Quote from: talk2troy on June 13, 2010, 12:23:05 PM
Quote from: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy - Yes please attach your index.template.php file

Thank you very much for the reply...
Should I just paste it in here among all this noise, or send it via PM or a download link?
Sincerely,
talk2troy

No attach the actual file, look right below where you type to reply and hit "Additional Option"

Thank you for the reply - for reference - my original post was:
« Reply #6542 on: Junie 12, 2010, 01:32:16 NM »

Attached file - index.template.php


Feriscool

Quote from: mrtrc266 on June 14, 2010, 06:42:22 PM
Quote from: Feriscool on June 14, 2010, 05:05:42 PM
I just installed it on the default theme, everything went fine up until this:

http://i47.tinypic.com/5zgk7k.png

What's wrong?

Proceed with the install but don't check the options to install on your custom themes(It will install ok on the default theme). Then you can manually edit the files on your custom using the Parser.

With the default theme, the options didn't even show in the place they're supposed to. Also, I don't even know how to edit the files. I'm not great at HTML and all this.

kartheekb

#6597
Quote from: mrtrc266 on June 15, 2010, 12:19:43 PM
Quote from: kartheekb on June 15, 2010, 06:49:32 AM
Reply to my Questions


->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox. i had changes smilies in form posts but not changed in shoutbox

Can i have solutions for this

No need to refresh, chats/shouts are retrieved and 2000th of a second.

Does it really take 3 times or does it just lag initially?

See below

For the smilies look at /chat/js/config.js You'll see the smileys array

Then look in /chat/img/emoticon/ and put in whatever smileys you want, of course make them match up with your config.js


For the first time time it is taking 3 times to display text & even in the middle of conversation some times its not appearing need to post again


What About the Sound option????
www.jntuhub.com/forum (check out my forums)

mrtrc266

@ kartheekb

Look right after my last post to you, just a few posts up ^^^^

mrtrc266

Quote from: Feriscool on June 15, 2010, 07:58:00 PM
Quote from: mrtrc266 on June 14, 2010, 06:42:22 PM
Quote from: Feriscool on June 14, 2010, 05:05:42 PM
I just installed it on the default theme, everything went fine up until this:

http://i47.tinypic.com/5zgk7k.png

What's wrong?

Proceed with the install but don't check the options to install on your custom themes(It will install ok on the default theme). Then you can manually edit the files on your custom using the Parser.

With the default theme, the options didn't even show in the place they're supposed to. Also, I don't even know how to edit the files. I'm not great at HTML and all this.

Manual Installation of Mods

Just go to the page where you downloaded this from, then hit "Parse" it will show you what to look for. Simply do the edits for your custom theme.

Advertisement: