mChat

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
dave763
Registered User
Posts: 38
Joined: Mon Aug 24, 2009 1:56 am

Re: mChat

Post by dave763 »

I need to pay closer attention :lol: I got it working. needed to have a mchat folder in the root with the files in there.
I had the files uploaded to the root folder, :oops: my bad

men0tyou
Registered User
Posts: 8
Joined: Thu Aug 20, 2009 12:11 am

Re: mChat

Post by men0tyou »

anybody got any idea on how to revers this code, right now its hid untill you click on the show chat.

Code: Select all

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>Show or Hide Chat:</b> <input type="button" value="Show Chat" style="width:60px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Show Chat'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show Chat'; }" /></div><div class="quotecontent"><div style="display: none;">{<!-- INCLUDE mchat_body.html -->}</div></div></div>

User avatar
Jaifaime
Registered User
Posts: 170
Joined: Wed Jun 10, 2009 12:16 am

Re: Jaifaimes Custom mChat Mods

Post by Jaifaime »

roBBx wrote:
Jaifaime wrote:
Who Is Online "Viewing Chat"

This will display "Viewing Chat" next to a persons name on the Who Is Online page when that person is on the standalone mchat.php page.
Hi Jaifaime, I tried it but it displays "Viewing Chat" also when staying on index, after the first chat autorefresh. Anyone can confirm it to me please? Thanks a lot!
Hi RoBBx,
All of the edits and modifications for AllCitys mchat I did with the chat being on it's own page (root/mchat.php), I did not have mchat loading on the index page. That being said though, I'm not entirely sure why you are getting that error, in theory you shouldn't, since the case is checking if the url is root/mchat.php (assuming I'm reading what it's doing correctly), but you are getting it and I'm not too good with coding so I can't really say why. I can get by hacking things together, but can't code from scratch XD. I also had removed mchat and moved to another chat solution about a month or so ago. Unfortunately I'm not really able to give much in the way of help on this.

dave763 I'm glad you were able to fix your problem ^^

It is important to note, too, that the creator of mchat, Allcity, has been banned for some time and therefore support for mchat is pretty much dead. I myself stopped reading this thread once I removed mchat, and checked it on a whim to find 17 pages since I posted on page 10 filled with mostly questions and no answers. I'm sorry to say that there isn't going to be much in the way of answers since mchats creator is no longer around. I don't mean to dissuade anyone from posting a question really, it's always possible another mchat user will have an answer, but don't be surprised if you don't get one.

I ended up moving away from mchat because it was conflicting with a couple different mods I was trying to use, and since Allcity is long gone and my limited knowledge couldn't fix it, I tried another chat solution. Using DemonChat now.
This account is inactive. Have a nice day.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Jaifaimes Custom mChat Mods

Post by RMcGirr83 »

Jaifaime wrote:It is important to note, too, that the creator of mchat, Allcity, has been banned for some time and therefore support for mchat is pretty much dead.
FWIW, I am working with two other individuals in taking over this mod. So far we have UMIL, a config table storing what can be allowed in the chat, permissions and other stuffs. There will be a new DEV topic once all of us are comfortable in what we have produced and extensive testing is on-going. There will also be instructions in the contrib folder for things such as getting just new topics posted into the chat and having them follow the permissions for the forum (eg, if you aren't able to read/view the forum the topic is in, you won't see the link that there is a new topic in that forum).

Updating will be fairly easy and painless.

Unfortunately, due to the number of modifications I already have that have been released, my ability to support this mod will be limited...that's why there are now three developers instead of one. ;)

Just thought those that had it installed would like to know. If you are interested in what we have accomplished so far, please visit the SVN.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Jaifaime
Registered User
Posts: 170
Joined: Wed Jun 10, 2009 12:16 am

Re: Jaifaimes Custom mChat Mods

Post by Jaifaime »

RMcGirr83 wrote:FWIW, I am working with two other individuals in taking over this mod. So far we have UMIL, a config table storing what can be allowed in the chat, permissions and other stuffs. There will be a new DEV topic once all of us are comfortable in what we have produced and extensive testing is on-going. There will also be instructions in the contrib folder for things such as getting just new topics posted into the chat and having them follow the permissions for the forum (eg, if you aren't able to read/view the forum the topic is in, you won't see the link that there is a new topic in that forum).

Updating will be fairly easy and painless.

Unfortunately, due to the number of modifications I already have that have been released, my ability to support this mod will be limited...that's why there are now three developers instead of one. ;)

Just thought those that had it installed would like to know. If you are interested in what we have accomplished so far, please visit the SVN.
This is great news ^^
This account is inactive. Have a nice day.

roBBx
Registered User
Posts: 287
Joined: Fri Feb 15, 2008 3:00 am
Contact:

Re: Jaifaimes Custom mChat Mods

Post by roBBx »

Jaifaime wrote: That being said though, I'm not entirely sure why you are getting that error, in theory you shouldn't, since the case is checking if the url is root/mchat.php
Even if we stay on index, at every chat autorefresh there is a post-form submitted to the mychat.php script. I think that's the cause of being viewed always in the chat. Anyway it doesn't matter, I'd just like to thank you for the time spent on it. ;)
RMcGirr83 wrote:FWIW, I am working with two other individuals in taking over this mod.
This sound very interesting, thanks to you, too and to all the persons working on this project! :)
Last edited by roBBx on Tue Aug 25, 2009 10:23 pm, edited 2 times in total.

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: mChat

Post by muggins »

muggins wrote:
oli42k9 wrote: is there a possibility to put the text input and bbcodes, smiles ect on top of the chat .. ?
thanks
It shouldn't be too hard. I will work on that today. If successful, I'll post the change.
Here is the edited mchat_body.html:

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
<!-- IF MCHAT_ARCHIVE_MODE or MCHAT_CUSTOM_PAGE -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
<!-- IF not MCHAT_READ_MODE -->
    <div class="forabg">
             <div class="inner"><span class="corners-top"><span></span></span>
             <ul class="topiclist">
                <li class="header">
                   <dl class="icon">
                   <dt>{L_MCHAT_TITLE}</dt>
                   </dl>
                </li>
             </ul>         
             <div class="postbody mChatBodyFix">
             <ul class="topiclist forums">
<!-- ENDIF -->
<!-- IF MCHAT_ENABLE -->
<!-- IF not MCHAT_READ_MODE -->
<script type="text/javascript">
// <![CDATA[
// Define mChat setting
var mChatFile = '{MCHAT_FILE_NAME}';
var mChatForumRoot = '{ROOT_PATH}';
<!-- IF not MCHAT_ARCHIVE_MODE -->
var mChatRefresh = '{MCHAT_REFRESH_JS}';
<!-- ELSE -->
var mChatRefresh = '1000';
<!-- ENDIF -->
var mChatNoMessageInput = '{L_MCHAT_NOMESSAGEINPUT}';
var mChatNoMessage = '{L_MCHAT_NOMESSAGE}';
var mChatEditInfo = '{L_MCHAT_EDITINFO}';
var mChatNoAccess = '{L_MCHAT_NOACCESS}';
var mChatFlood = '{L_MCHAT_FLOOD}';
var mChatDelConfirm = '{L_MCHAT_DELCONFIRM}';
<!-- IF MCHAT_ARCHIVE_MODE -->
var mChatArchiveMode = true;
<!-- ELSE -->
var mChatArchiveMode = false;
// Define the bbCode tags
var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[Newline]','[/Newline]','[size=]','[/size]');
var form_name = 'mChatForm';
var text_name = 'message';
var mChatFocusFix = true;
<!-- ENDIF -->
// ]]>
</script>
<!-- IF not MCHAT_ARCHIVE_MODE -->
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
<form method="post" action="javascript://" onsubmit="mChat.add();" id="mChatForm">
<div class="mChatPanel">
<noscript><div style="color: #FF0000;">{L_MCHAT_NOJAVASCRIPT}</div></noscript>
<input type="hidden" name="mode" value="add" />
<!-- IF MCHAT_ALLOW_BBCODES -->
<div id="mChatBBCodes" style="padding: 5px; display: none;">
<input type="button" class="button2" accesskey="b" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0);" />
<input type="button" class="button2" accesskey="i" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2);" />
<input type="button" class="button2" accesskey="u" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4);" />
<input type="button" class="button2" accesskey="q" value="Quote" style="width: 50px" onclick="bbstyle(6);" />
<input type="button" class="button2" accesskey="c" value="Code" style="width: 40px" onclick="bbstyle(8);" />
<input type="button" class="button2" accesskey="l" value="List" style="width: 40px" onclick="bbstyle(10);" />
<input type="button" class="button2" accesskey="o" value="List=" style="width: 40px" onclick="bbstyle(12);" />
<input type="button" class="button2" accesskey="t" value="[*]" style="width: 40px" onclick="bbstyle(-1);" />                
<input type="button" class="button2" accesskey="p" value="Img" style="width: 40px" onclick="bbstyle(14);" />
<input type="button" class="button2" accesskey="w" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16);" />
<input type="button" class="button2" accesskey="n" value="New Line" style="text-decoration: underline; width: 40px" onclick="bbstyle(18);" />

<select class="gensmall" onchange="bbfontstyle('[size=' + this.options[this.selectedIndex].value + ']', '[/size]'); this.selectedIndex = 2;">
<option value="50">{L_MCHAT_FONTTINY}</option>
<option value="85">{L_MCHAT_FONTSMALL}</option>
<option value="100" selected="selected">{L_MCHAT_FONTNORMAL}</option>
<option value="150">{L_MCHAT_FONTLARGE}</option>
<option value="200">{L_MCHAT_FONTHUGE}</option>
</select>
</div>
<!-- ENDIF -->
<!-- IF MCHAT_ALLOW_SMILES -->
<div id="mChatSmiles" style="padding: 5px; display: none;">
<!-- IF MCHAT_NO_SMILE -->
{L_MCHAT_NOSMILE}
<!-- ENDIF -->
<!-- BEGIN mchatsmilerow -->
<a href="javascript://" onclick="insert_text('{mchatsmilerow.MCHAT_SMILE_CODE}', true);"><img src="{mchatsmilerow.MCHAT_SMILE_IMG}" width="{mchatsmilerow.MCHAT_SMILE_WIDTH}" height="{mchatsmilerow.MCHAT_SMILE_HEIGHT}" alt="{mchatsmilerow.MCHAT_SMILE_CODE}" title="{mchatsmilerow.MCHAT_SMILE_EMOTION}" /></a>
<!-- END mchatsmilerow -->
</div>
<!-- ENDIF -->
<input type="text" tabindex="1" name="message" class="mChatText" id="mChatMessage" />
<input type="button" class="mChatButton" onclick="mChat.add();" value="{L_MCHAT_ADD}" />
<!-- IF MCHAT_ALLOW_SMILES -->
<input type="button" class="mChatButton" onclick="mChat.toggle('Smiles');" value="{L_MCHAT_SMILES}" />
<!-- ENDIF -->
<!-- IF MCHAT_ALLOW_BBCODES -->
<input type="button" class="mChatButton" onclick="mChat.toggle('BBCodes');" value="{L_MCHAT_BBCODES}" />
<!-- ENDIF -->
<!-- IF MCHAT_READ_ARCHIVE_BUTTON -->
<input type="button" class="mChatButton" onclick="window.location.href = '{MCHAT_ARCHIVE_URL}';" value="{L_MCHAT_ARCHIVE}" />
<!-- ENDIF -->
<!-- IF MCHAT_FOUNDER -->
<input type="button" class="mChatButton" onclick="window.location.href = '{MCHAT_CLEAN_URL}';" value="{L_MCHAT_CLEAN}" />
<!-- ENDIF -->
<input type="button" class="mChatButton" onclick="alert('{L_MCHAT_HELP_INFO}');" value="{L_MCHAT_HELP}" />
<div style="padding: 3px;">
<img src="{ROOT_PATH}mchat/load.gif" alt="{L_MCHAT_LOAD}" title="{L_MCHAT_LOAD}" id="mChatLoadIMG" style="vertical-align: middle; cursor: help; display: none;" />
<img src="{ROOT_PATH}mchat/ok.gif" alt="{L_MCHAT_OK}" title="{L_MCHAT_OK}" id="mChatOkIMG" style="vertical-align: middle; cursor: help;" />
<img src="{ROOT_PATH}mchat/error.gif" alt="{L_MCHAT_ERROR}" title="{L_MCHAT_ERROR}" id="mChatErrorIMG" style="vertical-align: middle; cursor: help; display: none;" />
{MCHAT_REFRESH_HTML}
</div>
<label for="mChatUseSound">{L_MCHAT_USESOUND} <input type="checkbox" id="mChatUseSound" checked="checked" /></label>
</div>
</form>
<hr></hr>
<div class="mChatRowLimit">
<!-- ENDIF -->
<div id="mChatData">
<!-- ENDIF -->
<!-- BEGIN mchatrow -->
    <div id="mess{mchatrow.MCHAT_MESSAGE_ID}" class="mChatBG{mchatrow.MCHAT_CLASS} mChatHover"><!-- IF MCHAT_ALLOW_DEL --> <a href="javascript://" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');"><img src="{ROOT_PATH}mchat/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" style="vertical-align: middle;" /></a><!-- ENDIF --><!-- IF MCHAT_ALLOW_EDIT --> <a href="javascript://" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');"><img src="{ROOT_PATH}mchat/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" style="vertical-align: middle;" /></a><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- ENDIF -->&nbsp;<!-- IF MCHAT_ALLOW_IP --><f title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}"><!-- ENDIF -->{mchatrow.MCHAT_TIME} - {mchatrow.MCHAT_USERNAME_FULL}:</f><div style="padding: 10px;"> {mchatrow.MCHAT_MESSAGE}</div></div>
<!-- END mchatrow -->
<!-- IF not MCHAT_READ_MODE -->
<div id="mChatNoMessage"<!-- IF not MCHAT_NOMESSAGE_MODE --> style="display: none;"<!-- ENDIF -->>{L_MCHAT_NOMESSAGE}</div>
<!-- IF MCHAT_ARCHIVE_MODE and not MCHAT_NOMESSAGE_MODE -->
<div id="mChatArchiveNoMessage" style="display: none;">{L_MCHAT_ARCHIVENOMESSAGE}</div>
<!-- ENDIF -->
</div>
<!-- IF not MCHAT_ARCHIVE_MODE -->
</div>

<!-- ENDIF -->
<div id="mChatSound" style="position: absolute; left: -1000px; top: -1000px;"></div>
<script type="text/javascript" src="{ROOT_PATH}mchat/mchat_ajax_mini.js"></script>
<!-- ENDIF -->
<!-- ELSE -->
<div style="color: #FF0000; padding: 10px;">{L_MCHAT_ENABLE}</div>
<!-- ENDIF -->
<!-- IF not MCHAT_READ_MODE -->
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
<!-- IF MCHAT_ARCHIVE_MODE or MCHAT_CUSTOM_PAGE -->
<!-- IF MCHAT_ENABLE and not MCHAT_CUSTOM_PAGE -->
<ul class="linklist">
<li class="rightside pagination">{MCHAT_TOTAL_MESSAGES} &bull; <!-- IF MCHAT_PAGINATION --><a href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{MCHAT_PAGE_NUMBER}</a> &bull; <span>{MCHAT_PAGINATION}</span><!-- ELSE -->{MCHAT_PAGE_NUMBER}<!-- ENDIF --></li>
</ul>
<!-- ENDIF -->
<!-- IF S_DISPLAY_ONLINE_LIST and MCHAT_CUSTOM_PAGE and MCHAT_CUSTOM_PAGE_WHOIS -->
<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
<script language="javascript" type="text/javascript">
    <!--
    window.setTimeout('window.location="index.php"; ',300000);
    // -->
</script>
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
<!-- ENDIF -->[/code]

Do not simply paste this over your existing file! I haven't time to do the proper edits from my archived copy. Mine has a couple of other changes, such as the inclusion of the 'Newline' bbCode. The big thing was moving the <form> element to the proper place.

Sorry I'm in a big hurry! :oops:
Muggins

Mr. Man123
Registered User
Posts: 65
Joined: Mon Aug 10, 2009 11:24 pm

Re: mChat

Post by Mr. Man123 »

Please do make it so you can turn off the sound chat by default :D!

User avatar
jpcatherine
Registered User
Posts: 37
Joined: Sun Feb 22, 2009 11:44 am

Re: mChat

Post by jpcatherine »

how can i ban a user from the mini chat only?

megaw
Registered User
Posts: 145
Joined: Wed Mar 31, 2004 3:07 am

Re: mChat

Post by megaw »

Mr. Man123 wrote:
RMcGirr83 wrote:
muggins wrote:That didn't work for me. The checkbox appears unchecked, but sound is still on..
The mod uses cookies. Click the link "Delete all board cookies".
That did not work for me and I followed everything to the last detail.
This does not work for me too. Any idea?

User avatar
zkaraca
Registered User
Posts: 139
Joined: Wed Jan 30, 2008 7:52 pm

Re: Jaifaimes Custom mChat Mods

Post by zkaraca »

RMcGirr83 wrote: FWIW, I am working with two other individuals in taking over this mod. .
Real great news man thanks a lot.

Just one quick question. I get a script error with IE8 but not with Firefox. Is there any fix for this allready?
Asira.nl * Zeki.nl Just having some fun!

User avatar
zkaraca
Registered User
Posts: 139
Joined: Wed Jan 30, 2008 7:52 pm

Re: mChat

Post by zkaraca »

This code in mchat.body.html gives an error in IE8

Code: Select all

<a href="javascript://" onclick="insert_text('{mchatsmilerow.MCHAT_SMILE_CODE}', true);"><img src="{mchatsmilerow.MCHAT_SMILE_IMG}" width="{mchatsmilerow.MCHAT_SMILE_WIDTH}" height="{mchatsmilerow.MCHAT_SMILE_HEIGHT}" alt="{mchatsmilerow.MCHAT_SMILE_CODE}" title="{mchatsmilerow.MCHAT_SMILE_EMOTION}" /></a>
Asira.nl * Zeki.nl Just having some fun!

lemo147
Registered User
Posts: 20
Joined: Tue Feb 17, 2009 12:51 pm

Re: mChat

Post by lemo147 »

plz, how can i add new smiles for the chat ?? :roll:

stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: Jaifaimes Custom mChat Mods

Post by stokerpiller »

RMcGirr83 wrote:FWIW, I am working with two other individuals in taking over this mod.....
Wondering who these "individuals" are?
Okay, I am one of them :mrgreen:
lemo147 wrote:plz, how can i add new smiles for the chat ?? :roll:
The chat uses the same smilies as phpbb uses for the posting page. So just add some smilies in ACP and make sure to display them on posting. Then they are on the chat too.

zkaraca wrote:This code in mchat.body.html gives an error in IE8

Code: Select all

<a href="javascript://" onclick="insert_text('{mchatsmilerow.MCHAT_SMILE_CODE}', true);"><img src="{mchatsmilerow.MCHAT_SMILE_IMG}" width="{mchatsmilerow.MCHAT_SMILE_WIDTH}" height="{mchatsmilerow.MCHAT_SMILE_HEIGHT}" alt="{mchatsmilerow.MCHAT_SMILE_CODE}" title="{mchatsmilerow.MCHAT_SMILE_EMOTION}" /></a>
I see no error in IE 8, Can you provide a link?



I dont have sound problems either, If others do - please post a link to your board.
And if a testlogin is needed, please post it too.
I am done with phpBB

lemo147
Registered User
Posts: 20
Joined: Tue Feb 17, 2009 12:51 pm

Re: mChat

Post by lemo147 »

stokerpiller,,, thanks very much :mrgreen:

Locked

Return to “[3.0.x] MOD Database Releases”