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

rocknroller

Quote from: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.

There is a permission to "View shoutBox" but I see it's not working in RC3, will have to look into that?
[/quote]

I am using RC2. This mod is great, thank you. Where can I find out if you solve this problem?

Another Rob

Thanks! Is there a way to let folks know you're away? On our old chat you could set it as BRB, Away, etc. We've been just changing names from username to username_away but I don't want folks abusing it. It even let me change my nick to one that was already in the chat room.

Scarecrow7170

Hello there.. We finally got this to work on our forum.. However I do have one question.

Is there any way to make the typed text larger? Im sure there is.. but where would I find it?  its so tiny... lol ok that's 2 questions

mrtrc266

Quote from: rocknroller on May 06, 2010, 01:52:26 PM
Quote from: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.

There is a permission to "View shoutBox" but I see it's not working in RC3, will have to look into that?

I am using RC2. This mod is great, thank you. Where can I find out if you solve this problem?
[/quote]

It will be posted here or more than likely added to the next version. Hope you enjoy the chat.

mrtrc266

Quote from: Another Rob on May 06, 2010, 04:12:54 PM
Thanks! Is there a way to let folks know you're away? On our old chat you could set it as BRB, Away, etc. We've been just changing names from username to username_away but I don't want folks abusing it. It even let me change my nick to one that was already in the chat room.

To add the AFK command take a look at this...
http://www.simplemachines.org/community/index.php?topic=257973.msg2605398#msg2605398

To disable the /nick command here you go...
http://www.simplemachines.org/community/index.php?topic=257973.msg2613237#msg2613237

mrtrc266

Quote from: Scarecrow7170 on May 06, 2010, 10:41:16 PM
Hello there.. We finally got this to work on our forum.. However I do have one question.

Is there any way to make the typed text larger? Im sure there is.. but where would I find it?  its so tiny... lol ok that's 2 questions

For the Shout Box
/chat/css/shoutbox.css , look for the code below this and you'll see.
/*
* Fonts
*/


For the Chat Room
chat/css/yourstyle.css (there are many styles so you'll have to edit each one of them or at least the ones you make available in the /chat/lib/congif.php file). You will have to add the size to the sections you want to change the size.

EXAMPLE:
Find
   #content .guest {
      color:gray;

Replace with
   #content .guest {
      color:gray;
      font-size:0.9em;
   }


That should get you started, I hope  ;)

Another Rob

Hi mrtrc266,

thanks for the links! I have no idea where I'm going wrong, I think it may be because i have a /takeover mod already done to the CustomAJAXChat.php and get an error when I try to add the /afk code

here's the end of the file where I'm supposed to add the /afk code (its commented out due to the errors it was producing) Any idea what I need to do to get this to work?

Quotesetcookie(
                        $this->getConfig('sessionName').'_style',
                        $styleName,
                        time()+60*60*24*$this->getConfig('sessionCookieLifeTime'),
                        $this->getConfig('sessionCookiePath'),
                        $this->getConfig('sessionCookieDomain'),
                        $this->getConfig('sessionCookieSecure')
                );
                return;
        }
// Add custom commands
function parseCustomCommands($text, $textParts) {
  switch($textParts[0]) {
    case '/takeover':
    $this->insertChatBotMessage( $this->getChannel(), $text);
    return true;
    default:
    return false;
}
}
//function parseCustomCommands($text, $textParts) {
  //switch($textParts[0]) {

         // Away from keyboard message:
//         case '/afk':
         // Set the userName:
//        $this->setUserName('<AFK>_'.$this->getUserName());
         // Update the online user table:
//         $this->updateOnlineList();
         // Add info message to update the client-side stored userName:
//         $this->addInfoMessage($this->getUserName(), 'userName');
         // Store AFK status as session variable:
//         $this->setSessionVar('AwayFromKeyboard', true);
//         return true;
//         default:
//        return false;
      }
?>

macieks

hello

I have problem in my chat

in one member I and other see numbers in nick instead nick

is:

(20:03:31) (291716): massage

what is problem?

TheListener

The numbers represent the guests in chat NOT the members.


Scarecrow7170

#6109
Quote from: mrtrc266 on May 05, 2009, 12:00:12 PM
Please try setting your file permissions explained here, event though your not getting the 500 error make sure your chat/index.php and shoutbox.index.php are set to 755.

~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~


12029 - A connection with the server could not be established
12031 - The connection with the server was reset

We too have gotten the connection error 12031

Not all of us but one of us gets it every time.. whats causing this & how might we fix it?

Thank you for your time & patience

PS - Thank you for the font size information

JakeArgent

Hello guys, I have question about this:

I want to move the shoutbox to the lower parts of the page, but I've been unable to find the necessary code parts to do so. My preffered place is just above the info center. How can I do that?

pointalk

#6111
solved

mrtrc266

Quote from: pointalk on May 07, 2010, 10:29:02 PM
ChatBot: Error: Connection status: 500

SMF 1.1.11
How to fix it?

How to fix it is to PLLLLEEEEEAAAAASSSE!!!!!!!!!!!!!! Read the FAQ's on the Mod's Home Page.....HUGE PURPLE LETTERS THAT SAY FAQ'S, YOU CAN'T MISS IT!!!

Scarecrow7170

Regarding my last message - Found out it was a computer problem.. reformatted & now working great.

Thank you again

mrtrc266

Quote from: Scarecrow7170 on May 07, 2010, 11:29:38 PM
Regarding my last message - Found out it was a computer problem.. reformatted & now working great.

Thank you again

Glad you got it sorted, enjoy the Mod :)

pointalk

Let ShoutBox position before Info Center.
What should i do?

TheListener

Quote from: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?

Again this has also been covered before.

mrtrc266

@ Rob

You have this code in there twice, I know that's what the tuts say but once this function is in there that's all you need. Then just add the commands.
// Add custom commands
function parseCustomCommands($text, $textParts) {
  switch($textParts[0]) {


The end of your /chat/lib/class/CustomAJAXChat.php file should look like this which has both the Takeover and AFK commands.
function parseCustomCommands($text, $textParts) {
      switch($textParts[0]) {
         // Away from keyboard message:
         case '/afk':
            // Set the userName:
            $this->setUserName('<AFK>_'.$this->getUserName());
            // Update the online user table:
            $this->updateOnlineList();
            // Add info message to update the client-side stored userName:
            $this->addInfoMessage($this->getUserName(), 'userName');
            // Store AFK status as session variable:
            $this->setSessionVar('AwayFromKeyboard', true);
            return true;
         default:
            return false;
   case '/away':
      $this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Away');
      $this->setUserName($this->getLoginUserName().'[Away]');
      $this->updateOnlineList();
      $this->addInfoMessage($this->getUserName(), 'userName');
      return true;
   case '/online':
      $this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Online');
      $this->setUserName($this->getLoginUserName());
      $this->updateOnlineList();
      $this->addInfoMessage($this->getUserName(), 'userName');
      return true;
  case '/takeover':
   $this->insertChatBotMessage( $this->getChannel(), $text );
         return true;
      default:
         false;
      }
   }

   function onNewMessage($text) {
      // Reset AFK status on first inserted message:
      if($this->getSessionVar('AwayFromKeyboard')) {
         $this->setUserName($this->subString($this->getUserName(), 6));
         $this->updateOnlineList();
         $this->addInfoMessage($this->getUserName(), 'userName');
         $this->setSessionVar('AwayFromKeyboard', false);
      }
      return true;
   }
}
?>

JakeArgent

Quote from: Brack1 on May 08, 2010, 11:01:17 AM
Quote from: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?
Again this has also been covered before.

I searched by using the search function, but only message relevant to word "shoutbox" was your message. For the word "shout" there was again only one message and it's about changing the font size.

harry66

Hello,

i have a Problem. When i want to install the mod for other Themes, it says me the following Error:


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>'; }



But in the index.template.php of my Costum Theme i only find this part:

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</div>
<div id="time">
', $context['current_time'],'
</div>
<div id="userarea">';
if($context['user']['is_logged'])
{
echo '<div class="loggedin">',$txt['hello_member'] , ' <strong>' , $context['user']['name'] , '</strong>';


so i cannot enter the necessary code? :o

By the way it is 2.0 RC3


regards

Advertisement: