[Fixed] Kick command not working
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox
View previous topic :: View next topic  
Author Message
dix
Starter
Starter


Joined: 25 Sep 2003
Posts: 2

PostPosted: Sat Sep 27, 2003 8:43 pm    Post subject: Re: kick command Reply with quote

I just installed the mx_chatbox 1.1.1 , but the kick command didn't work. I applied this fix:

open mx_chatbox/messenger_view.php

find
Code:
if( ($chat['nick'] == _CHATBOX_SYSTEM_MSG) and (strtolower($chat['msg']) == strtolower('<i>' . $userdata['username'] . ' was kicked</i>')) )


replace with
Code:
if( ($chat['nick'] == _CHATBOX_SYSTEM_MSG) and (strtolower($chat['msg']) == strtolower('<span style=\'color: #006666\'><i>' . $userdata['username'] . ' was kicked</i></span>')) )


The entries in de db include the </span> part. Script was checking for the wrong string. Don't know if this is a common known problem, just wanted to report it. I didn't make any changes before installing, all files are the original mx_chatbox files (exept the lang files), so I suppose more users will have this error.
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Sep 28, 2003 6:48 am    Post subject: Re: kick command Reply with quote

dix wrote:
The entries in de db include the </span> part. Script was checking for the wrong string. Don't know if this is a common known problem, just wanted to report it. I didn't make any changes before installing, all files are the original mx_chatbox files (exept the lang files), so I suppose more users will have this error.

Thank you very much, dix. Smile

I have applied your fix to the module and released v.1.2.0 with a couple of new features (clear/kick command buttons and a color picker).


PS: Splitted your post for better reference.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
dix
Starter
Starter


Joined: 25 Sep 2003
Posts: 2

PostPosted: Mon Sep 29, 2003 8:57 pm    Post subject: Re: [Fixed] Kick command not working Reply with quote

You're welcome Wink . Thanks for porting the chatbox to mx, it's a great mod.
 
 
_________________
Windows isn't unstable, it is just spontaneous.
 
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum