Hide mChat for guests

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Post Reply
Nully
Member
Member
Posts: 122
Joined: 11 May 2012, 10:30
Contact:

Hide mChat for guests

Post by Nully »

I searched in the forum and dit not find what to do for how to not show the mchat to guests.
The permission are already to "no", but it does not seems just to hide the textarea.
I would like the guests do not see anything of the mchat.
Maybe something in overall_header?
Can somebody tell me?
themission
New member
New member
Posts: 44
Joined: 06 Jul 2011, 06:55
Location: Devon UK
Contact:

Re: Hide mChat for guests

Post by themission »

Cant you do in ACP - permissions - Group permissions - select guests from the dropdown box - then advanced permissions and click on the Mchat tab and turn off what u want ?
User avatar
Solidjeuh
Member
Member
Posts: 180
Joined: 24 Apr 2011, 02:48
Location: Aalst / Belgium
Contact:

Re: Hide mChat for guests

Post by Solidjeuh »

Open index_body.html

Find:

Code: Select all

<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->


Replace with:

Code: Select all

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- ENDIF -->
I don't suffer from insanity. I enjoy every minute of it.
User avatar
RMcGirr83
Supporter
Supporter
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: Hide mChat for guests

Post by RMcGirr83 »

That code is no more different than changing the permissions for guests. There is nothing wrong with the mod if it is used correctly.
Nully
Member
Member
Posts: 122
Joined: 11 May 2012, 10:30
Contact:

Re: Hide mChat for guests

Post by Nully »

RMcGirr83 wrote:There is nothing wrong with the mod if it is used correctly.

I never said there is something wrong with your mod.
My english is so bad that it causes misunderstanding and I do not use correctly everything :)
themission wrote:Cant you do in ACP - permissions - Group permissions - select guests from the dropdown box - then advanced permissions and click on the Mchat tab and turn off what u want ?

I did this, it hides only the textarea.

@Solidjeuh
No, it does not work (of course I refreshed)
jabhi
Member
Member
Posts: 77
Joined: 14 Mar 2012, 06:34

Re: Hide mChat for guests

Post by jabhi »

You need to hide whole mchat to guest. Right ?
By default it is set like that. If you changed the permission, set permission of mchat to no for all option by going to ACP > Permission > Group permission > Select guests > Advanced permission > Mchat tab > Set all option to No.
Go phpBB go... Respected : Developers, Supporters.
Nully
Member
Member
Posts: 122
Joined: 11 May 2012, 10:30
Contact:

Re: Hide mChat for guests

Post by Nully »

Yes I knew and it did not work.
I thank you for having wrote again how to...I found why it did not work :)
I noticed that it was my fault! I made a confusion with the models of permission.
Now it is ok.
I hope RMcgirr83 will not kill me for all my stupid questions :sweat:
Arioch
New member
New member
Posts: 4
Joined: 15 Jan 2013, 13:33

Re: Hide mChat for guests

Post by Arioch »

Hi,
sorry to reopen an old topic but I am in the process of setting up and testing a
forum on my PC's local server and all is going well.
I have installed mchat and I seem to be having the same issue, when I test the forum
as a guest mchat is visible though im unable to send a message.
I have set guest permission all to 'No' to prevent guests from viewing and using.
I have set all options in mchat.php to false but still Mchat and all messages are visible to
guests.
my forum is Subsilver2 based and i have installed the latest version of mchat.
I would like to get this sorted before i upload to a server so any help i would be very grateful.
martin123456
Old member
Old member
Posts: 677
Joined: 30 Mar 2011, 00:32
Contact:

Re: Hide mChat for guests

Post by martin123456 »

Check the permissions again as some times on localhost when you click submit it dont always work even though it should.

2013-01-17_011517.png
User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: Hide mChat for guests

Post by Sniper_E »

And like Rich has said many times. Never > No > Yes
Never over rules No
No over rules Yes
Try Never if you continue having problems. Clear your server Cache too.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
Arioch
New member
New member
Posts: 4
Joined: 15 Jan 2013, 13:33

Re: Hide mChat for guests

Post by Arioch »

Thank You for your help :rock:
all guest permissions set to Never, all cache cleared and still no good.
I think that it is down to the installation as i am using a custom version
of phpBB3 v3.0.11 Subsilver2.

When i go into ACP- Mods. I get a General Error!
which gives me a list of errors.
I have manually install mchat and also tried automod but automod
just throws out all sorts of problems

it seems Mchat v1.3.5 just isnt compatible? at least when manually installed it is
usable, it just means i will have to allow guests to view it.
martin123456
Old member
Old member
Posts: 677
Joined: 30 Mar 2011, 00:32
Contact:

Re: Hide mChat for guests

Post by martin123456 »

isnt compatible ?

Mchats not compatible with VB but sure is with phpbb the mod works perfect in fact i'll have a bet on user error.

Can you post a link to your site.
Arioch
New member
New member
Posts: 4
Joined: 15 Jan 2013, 13:33

Re: Hide mChat for guests

Post by Arioch »

User Error, yes i totally agree with you there Martin, :D
I just can not find where i have gone wrong?
my site is not hosted yet so unable to send a link otherwise i would be very happy to.
at the moment it is running on localhost on my XP machine using Xampp.
Post Reply