Page 2 of 38

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 12:53 am
by megaw
djs596 wrote:There is a Who's chatting? on mchat.php :)
Is there one? How come I dont see it?

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 2:48 am
by Hippie459MN
Awsome guys! Glad to see this taken over. Time to update to the new version here. :D

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 4:09 am
by autinhyeu
Thanks for new version ;)

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 4:11 am
by RMcGirr83
megaw wrote:
djs596 wrote:There is a Who's chatting? on mchat.php :)
Is there one? How come I dont see it?
The mchat.php page that djs is referring to is the "custom page" that is displayed when clicking on the link in overall header (up by the "FAQ" link). As far as the "who is chatting" on the side I, for one, never liked that especially as hidden users didn't remain hidden. I also think it unnecessary but that's just my opinion on it.

Admins have a lot more control over the chat now.

Someone using it inappropriately? Simple, enter the ACP, go to the users permission for the mchat (it has it's own tab in the permissions section) and set "can view and can use the mchat" to "never" then they won't be able to use it nor see it. If you wanted to torment them, set it to "never" on "can use", that way they can still see it but can't post in it. It will drive them absolutely nuts, guaranteed. ;)

PS there may still be a few "features" (aka my version of "bugs") but they will get sorted out in due time...just need people to test it out as we can't possibly test every scenario that may occur.

Also, I think this important, once the settings are made in the config entries for the chat they are cached and as they can only be set in the ACP, they are cached for one year's time...bascially a "set it and forget it" thing. That way there are no additional queries/sql load on the server. If the settings are changed in the ACP, then the cache is destroyed and is rebuilt when someone visits the index.php page, the custom chat page or the archive page of the mod. Just an FYI. :)

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 4:21 am
by megaw
Nice.. thank you.

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 5:19 am
by stokerpiller
Bug found
Open mchat/mchat_ajax_mini.js
Find

Code: Select all

 @copyright (c) djs596 ( http://djs596.com/ ), (c) RMcGirr83 ( http://www.rmcgirr83.org/ ), (c) Stokerpiller ( http://www.phpbb3bbcodes.com/ )
Replace with:

Code: Select all

* @copyright (c) djs596 ( http://djs596.com/ ), (c) RMcGirr83 ( http://www.rmcgirr83.org/ ), (c) Stokerpiller ( http://www.phpbb3bbcodes.com/ )
Download is updated with this fix.

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 7:51 am
by megaw
This version is so much better. Thanks. :)

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 9:37 am
by NiceM
Thanks for taking ower, i don't know why someone would like a whos chatting, it's a shoutbox not a chat. ;)

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 10:21 am
by Ahri89
Author: RMcGirr83, Djs596 & Stokerpiller
:O This is great :P

Thanks!!!

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 11:50 am
by joebart72
First thank for this mod :D Would it be possible to add in CPA an auto purge for mchat, with number of messages to keep in archive ? Others would be deleted ?

Re: [RC] Mchat New version

Posted: Sat Aug 29, 2009 5:31 pm
by RMcGirr83
Ashley.S. wrote:Don't know if your planning on adding this feature or not, but are you intending to include a pruning feature of some kind? be it a click of a button in the ACP or a automatic prune setting after x days to keep your database nice and clean.
joebart72 wrote:Would it be possible to add in CPA an auto purge for mchat, with number of messages to keep in archive ? Others would be deleted ?
I have been considering adding this...but by which. Number of days or message count? I can see problems with both types (no messages showing after so many days or a number).
Also, I see that it's fully permission controlled, but to save settings what about a quick banning feature being added? so you can ban certain users who abuse the chat without fiddling with their permissions?
Could add a link to take the user, if correctly authed, directly to the users permissions tab in the ACP I suppose...other than that I really can't think of another way to do it without adding an additional table in the database, which then means an additional query on the forum which then means more stuff in the ACP which then means more coding.

I am leaning towards just retaining the permissions way. ;)

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 6:22 pm
by stokerpiller
Bugfix for BBCodes not working with IE8

Open: styles/xxx/template/editor.js
Find:

Code: Select all

		for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)
Before add:

Code: Select all

try
		{
Find:

Code: Select all

		caretPos.end = txtarea.sel_start;
After add:

Code: Select all

}
		catch(e)
		{
		}
SVN updated. Fix will be included in next version.
Which means you will have to do it your self for now.

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 6:49 pm
by fasko
THANKS Nice :D :D

Add font color palete

Image

Image

open mchat_body.html
find

Code: Select all

<!-- IF MCHAT_ALLOW_SMILES -->
add bofer

Code: Select all

       <div id="colour_palette" style="display: none;">
              <div align="center">{L_FONT_COLOR}:</div>
      <DIV ALIGN=CENTER>

              <table style="align:center" width="50%" cellspacing="0" cellpadding="0" border="0">
              <tr style="align:center">

              <td width="80" style="align:center" valign="top">
              <script type="text/javascript">
              // <![CDATA[

                 function change_palette()
                 {
                    dE('colour_palette');
                    e = document.getElementById('colour_palette');
                   
                    if (e.style.display == 'block')
                    {
                       document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}';
                    }
                    else
                    {
                       document.getElementById('bbpalette').value = '{LA_FONT_COLOR}';
                    }
                 }

                 colorPalette('h', 15, 10);
              // ]]>
              </script>
              </td>
              </tr>
              </table>
            </DIV>

        </div>
find

Code: Select all

<!-- IF MCHAT_READ_ARCHIVE_BUTTON -->
add bofer

Code: Select all

<input type="button" class="mChatButton" name="bbpalette" id="bbpalette" value="{L_FONT_COLOR}" onclick="change_palette();" title="{L_BBCODE_S_HELP}" />
open language/en/mods/mchat_lang
find

Code: Select all

'MCHAT_BBCODES' => 'BBCode',
add after

Code: Select all

'FONT_COLOR' => 'Font Color',
  'FONT_COLOR_HIDE' => 'Hide Font Color',
find

Code: Select all

));
?>
add bofer

Code: Select all

 'BBCODE_A_HELP'            => 'Inline uploaded attachment: [attachment=]filename.ext[/attachment]',
  'BBCODE_B_HELP'            => 'Bold text: [b]text[/b]',
  'BBCODE_C_HELP'            => 'Code display: [code]code
',
'BBCODE_E_HELP' => 'List: Add list element',
'BBCODE_F_HELP' => 'Font size: small text',
'BBCODE_IS_OFF' => '%sBBCode%s is <em>OFF</em>',
'BBCODE_IS_ON' => '%sBBCode%s is <em>ON</em>',
'BBCODE_I_HELP' => 'Italic text: text',
'BBCODE_L_HELP' => 'List:
  • text
',
'BBCODE_LISTITEM_HELP' => 'List item: [*]text[/*]',
'BBCODE_O_HELP' => 'Ordered list:
  • text
',
'BBCODE_P_HELP' => 'Insert image: [img]http://image_url[/img]',
'BBCODE_Q_HELP' => 'Quote text: [quote]text[/quote]',
'BBCODE_S_HELP' => 'Farba písma: text Tip: môžete použiť aj farbu=#FF0000',
'BBCODE_U_HELP' => 'Underline text: text',
'BBCODE_W_HELP' => 'Insert URL: http://url or URL text',
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]'[/code]

Re: [RC] mChat New version

Posted: Sat Aug 29, 2009 11:23 pm
by lovelysummer
I have installed this new version mchat. It works very nice. Wonderful ! Authors of this version are all very helpful and nice. :D

Re: [RC] mChat New version

Posted: Sun Aug 30, 2009 9:26 am
by ameisez
Looks nice...

Is the delete button (deleting message in the chatbox) really working in the sense that the message is being removed on every users' windows?

Because the common problem in the phpbb chat i've used was when the admin deletes a message, it is only deleted on his screen but not to others. For me, actually, it is more sensible if it will be the other way around, when delete button is pressed, it will be deleted on others windows but now on the db so that admin still have copies of deleted messages. However, Im not a programmer and Im not sure if it is possible :)

and if I may suggest, it would great if the user can have an option to receive alerts when a message is post in the chat box. an option could be a choice of...

sound alert | blinking taskbar | small temporary pop up | move window on top of all windows | none

I hope I am making sense here :oops: