mChat

Hide some shouts from guests - mChat

Hide some shouts from guests

by mrgtb » Fri Dec 08, 2017 9:37 pm

Is there a way to add a new custom BBCODE and modify the MCHAT files to support being able to wrap some shouts in the custom BBCODE added that only members can read and guest gets show a no permission message for that shout.
mrgtb
Registered User
Posts: 499
Joined: Wed Oct 03, 2007 10:51 am

Re: Hide some shouts from guests

by kasimi » Sat Dec 09, 2017 12:57 pm

It sounds like you're looking for a custom BBCode. Is there anything specific to mChat you're asking?
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 2475
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Hide some shouts from guests

by mrgtb » Sat Dec 09, 2017 1:03 pm

Yes, I was meaning is there a way to add a new custom bbcode called hide (maybe). Plus some changes in MCHAT that rejects guests from seeing any messages wrapped in that bbcode posted in mchat what would instead show them a message saying guests can't read it. But I just realised the bbcode would also be used on the forums and not just shoutbox. So it wouldn't really work I guess unless you could have a custom bbcode (or whatever) that is only specfic to the shoutbox using it only.

My idea was. So you can post some messages in the shoutbox that only members can read if you wanted. Because you can't use conditionals in custom BBCodes added.

I was meaning for example. I wish I could add this as a BBCODE to use and pull a message entry for guests from the language file, but conditionals are not allowed in BBCODE

Code: Select all

<!-- IF S_REGISTERED_USER -->{TEXT}<!-- ELSE -->{L_MCHAT_NO_PERMISSION}<!-- ENDIF -->
mrgtb
Registered User
Posts: 499
Joined: Wed Oct 03, 2007 10:51 am

Re: Hide some shouts from guests

by kasimi » Sat Dec 09, 2017 2:24 pm

I understand, but this isn't specific to mChat. Once implemented, you can restrict it to mChat, but you might as well use it for posts, PMs signatures and so on.

Be that as it may, it's certainly possible, but not easy. It would take considerable effort.
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 2475
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact: