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

mrtrc266

@ Chatterbox

Sorry this isn't going to be very helpful LOL

1. No I haven't figured it out yet
2. Not sure, would have to play with it...wouldn't even know where to start though LOL
3. You should be able to manipulate the placement of your banner in /yourforum/chat/lib/template/loggedIn.html

Chit-Chat ChatterBox Boss

Quote from: mrtrc266 on June 02, 2009, 09:37:13 PM
@ Chatterbox

Sorry this isn't going to be very helpful LOL

1. No I haven't figured it out yet
2. Not sure, would have to play with it...wouldn't even know where to start though LOL
3. You should be able to manipulate the placement of your banner in /yourforum/chat/lib/template/loggedIn.html

1. Doh
2. I know how to do it for a url. But I didn't even remember what file the channels are in to play with it.
3. I tried and I can move it up and down except I need to find where those lines "'Logout', 'Channel', 'Style', and 'Language' line" and "copyright" are coded in. I think for the "'Logout', 'Channel', 'Style', and 'Language' line" I have to add top margin. Where are these lines coded in? (file)
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

mrtrc266

For your banner try this

Upload your banner (chitchatbanner1.jpg) to /yourforum/chat/img/

Open and find /yourforum/chat/lib/template/loggedIn.html
</style>
[STYLE_SHEETS/]

Replace with and of course change the URL to the pic
</style>
<img src="http://yourforum/chat/img/chitchatbanner1.jpg"></p>
[STYLE_SHEETS/]


This should put your banner on the absolute top of your chatroom

Chit-Chat ChatterBox Boss

#2243
Nope the code gives template error with the </P> so i tried making it
<img src="http://www.chitchatchatterbox.com/chat/img/chitchatbanner1.jpg"/> an no pic shows
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

mrtrc266

I just tried it on my test site and it worked fine. Post yourforum/chat/lib/template/loggedIn.html

Chit-Chat ChatterBox Boss

Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

mrtrc266

Don't know what the prob is but it works in IE but not FF. Im sure it's an easy fix but will have to play around a bit.

Chit-Chat ChatterBox Boss

Sounds great to me. Tomorrow we can play around with it and see what we can get!
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

Redeye

Hi,
Installed the mod without any problems.

When I try to open the chatroom from the menu it kicks me back to the index page of the main site. This happens with pop-up and non-pop-up settings.

Path to chat is MySite.com/forum/chat/index/php
Takes me to MySite/index.php

SMF 2.0.RC1

Tia

mikungfu

Hi,

I have some more questions. :)

I have been configuring my chat and shoutbox layouts.

A) For the chat I created my own css, editing subblack2.css and most of it went fine... But I'm having a hard time trying to figure out how to change the big bold title "Ajax Chat". I mean, I don't want to remove the copyright or anything like that... I want to keep the copyright lines in small font, but I want to change the Chat title in the upper left corner. How do I do that?

B) Now, with the shoutbox, I've been having some problems with shoutBox.css: The more I try, I don't succeed in creating a border for the table of the shoutbox. Is it something I need to change outside the  shoutBox.css??

In shoutBox.css, I have tried (in the borders section) to input:

#ajaxChatChatList {
   border-color:#5d0600;
   border-width:1px;
}

Or...

#ajaxChatContent {
   border-color:#5d0600;
   border-width:1px;
}

Or even...

#ajaxChatContent #ajaxChatChatList {
   border-color:#5d0600;
   border-width:1px;
}

And nothing seems to work...

Can anyone help me with these 2 issues?

Thanks!

mrtrc266

@ Redeye, just went to your site and it seems that the chat is uninstalled, goes to Page Not Found.

@ mikungfu

To change the AJAX Chat
Open yourforum/chat/lib/template/loggedIn.html AND loggedOut.html
Find and change to whatever you like
<h1>[LANG]title[/LANG]</h1>

About the borders not sure off the top of my head. Will have to look when I get home, my .css files are heavily modified.

mikungfu

#2251
Quote from: mrtrc266 on June 03, 2009, 11:01:04 AM
About the borders not sure off the top of my head. Will have to look when I get home, my .css files are heavily modified.

Thanks for the + help with the first issue. About the second issue, I found the answer... The file where I was doing it was correct: shoutBox.css

What I was missing was the line "border-style:solid". Without defining the Border Style, the browser doesn't understand what I'm saying, so no border was showing up.

btw: Doing it in the table properties at shoutBox.html, also does the trick.

Redeye

Quote from: mrtrc266 on June 03, 2009, 11:01:04 AM
@ Redeye, just went to your site and it seems that the chat is uninstalled, goes to Page Not Found.


Not sure how it can be uninstalled? It's showing as installed in the packages page.
Uploaded the mod and everything went smoothly with no errors.
What could be missing?

mrtrc266

Quote from: Redeye on June 03, 2009, 11:28:37 AM
Quote from: mrtrc266 on June 03, 2009, 11:01:04 AM
@ Redeye, just went to your site and it seems that the chat is uninstalled, goes to Page Not Found.


Not sure how it can be uninstalled? It's showing as installed in the packages page.
Uploaded the mod and everything went smoothly with no errors.
What could be missing?

Oh, maybe I was going to the wrong place http://www.rotherhamadvancedmotorcyclists.com/forum/ and clicked on the chat button.

Im off to work, but will take a look when I get home. You can PM the URL if it's not the one above

victoryrock

How do I delete all the chat history in one shot?

Haveing to "X" each line is quite time consuming.

v

Chit-Chat ChatterBox Boss

#2255
GO Here:
http://www.simplemachines.org/community/index.php?topic=257973.msg2090333#msg2090333

With that you can edit how many messages display. But to actually delete messages that have already been displayed you manually do it. You can set a limit to how many messages can display.

~Edit 1
I was looking into this for you and I found this. If you want to make it so if someone enters the chat and you don't want any messages showing that were sent prior to them entering change this:

chat/lib/config.php

Find
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;

Replace With
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = false;


~Edit 2
I just tried the above change and it seems even for the members logged in ... it doesn't show the messages for them either. Maybe mrtrc266 can look into this.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

[unplugged]

For clearing the entire ajax_chat_messages table in the database, you could do something like:

    // Clear chat
global $smcFunc;

    // Let's empty the message table
$request = $smcFunc['db_query']('', '
DELETE FROM {db_prefix}ajax_chat_messages',
array(
)
);

    return $request;
   
      $smcFunc['db_free_result']($request);


Maybe put this in its own file then place a link to that file somewhere. Just a thought. ;)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Hardcase

Just a quickie i hope.

Just moved hosts and previously had no problems at all with my chatbox, but now when i enter anything with a hyphen it gives me this:

example: there's
output: there/'s

i have no idea why so any enlightenment would be appreciated.

mikungfu

Quote from: Hardcase on June 03, 2009, 07:48:49 PM
Just moved hosts and previously had no problems at all with my chatbox, but now when i enter anything with a hyphen it gives me this:

example: there's
output: there/'s


I know this is not the most important issue, but I believe you mean apostrophes ('), not hyphens (-), right?... Maybe it's not important, but just to avoid misconclusions or misunderstandings. ;)

Chit-Chat ChatterBox Boss

#2259
mrtrc266 I have this code here:


<?php

// Chat bot messages 

if(stristr($text'ChatBot Help Me'))
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHow may I help you? Say any of the following lines.
1) ChatBot Commands\n"
);
// KEYWORD TRIGGER END
}

if(
stristr($text'ChatBot Commands'))
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /kick [name]
Result: This will kick the member out of the chat room.
Command: /kick [name] [number]
Result: This will kick the member out of the chat room for the amount of time(in minutes) that you put for the number.
Command: /whois [name]
Result: This will display the member's IP Address.
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"

);
// KEYWORD TRIGGER END
}

?>



And I want to display only for the user roles (theres 4. 4 = bot, 3  = admin, 2 = mod, 1 = normal user). So this is what I tried to do but it doesn't seem to work.


<?php

// Chat bot messages 
if(stristr($text'ChatBot Help Me'))
{
if($this->getUserRole() == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() != AJAX_CHAT_ADMIN)
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHow may I help you? Say any of the following lines.
1) ChatBot Commands\n"
);
// KEYWORD TRIGGER END
}
else
{
return false;
}
}

if(
stristr($text'ChatBot Commands'))
{
if($this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() != AJAX_CHAT_ADMIN)
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /kick [name]
Result: This will kick the member out of the chat room.
Command: /kick [name] [number]
Result: This will kick the member out of the chat room for the amount of time(in minutes) that you put for the number.
Command: /whois [name]
Result: This will display the member's IP Address.
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"
);
// KEYWORD TRIGGER END
}
else
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"
);
// KEYWORD TRIGGER END
}
}

?>



How can I set this to work correctly? (You can see what part is for mods and admins and then the other is for normal users). When I do this change nothing displays.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

Advertisement: