mChat Color text for founder or administrator
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
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
mChat Color text for founder or administrator
Hi,
Just a question... it's possible to change the text color for admin and founder on mChat with red color, and all members in black ?
thanls for help
Just a question... it's possible to change the text color for admin and founder on mChat with red color, and all members in black ?
thanls for help
Re: mChat Color text for founder or administrator
You can try within the mchat.php file, within the case 'add', replacing this
with this
Code: Select all
$message = utf8_normalize_nfc(request_var('message', '', true));
with this
Code: Select all
$message = utf8_normalize_nfc(request_var('message', '', true));
$message = ($auth->acl_get('a_') || $user->data['user_type'] == USER_FOUNDER) ? '[color=#BF0000]' . $message . '[/color]' : $message;
Re: mChat Color text for founder or administrator
very nice thanks so more
Re: mChat Color text for founder or administrator
Code: Select all
$message = ($auth->acl_get('m_') || $user->data['user_type'] == USER_MODERATOR) ? '[color=#346600]' . $message . '[/color]' : $message;
it's ok for moderator ? (not error) ?
Re: mChat Color text for founder or administrator
For moderators and admins and founders, probably something like this
There is no definition for USER_MODERATOR. USER_FOUNDER is retrieved from includes/constants.php
Code: Select all
$message = ($auth->acl_get('a_') || $user->data['user_type'] == USER_FOUNDER) ? '[color=#BF0000]' . $message . '[/color]' : (($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? '[color=green]' . $message . '[/color]' : $message);
There is no definition for USER_MODERATOR. USER_FOUNDER is retrieved from includes/constants.php
Code: Select all
define('USER_FOUNDER', 3);
Re: mChat Color text for founder or administrator
ok thanks for your knowledge
Re: mChat Color text for founder or administrator
Man, you programmers always have to do things the technical way.
I would edit the mchat_avatars.html
I would edit the mchat_avatars.html
Code: Select all
<div class="avatarMessage mChatMessage" style="color: #{mchatrow.MCHAT_USERNAME_COLOR}">{mchatrow.MCHAT_MESSAGE}</div>
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
Re: mChat Color text for founder or administrator
One doesn't have to be in the moderator group set as default to have moderator permissions. Same is said for administrators.
Re: mChat Color text for founder or administrator
i'm testing snippet to color for admin the text in mChat
but i've got a little problem when i click on pseudo to respond to user...
example :
but i've got a little problem when i click on pseudo to respond to user...
example :
Code: Select all
@ [b][color=#660099]nataniel[/color][/b], welcome ;)
Re: mChat Color text for founder or administrator
You have to do the same/similar for the case 'edit' before it is saved back to the database.
-
- New member
- Posts: 5
- Joined: 22 Aug 2012, 06:46
Re: mChat Color text for founder or administrator
Hi there,
I had the same problem with the members , admins color and i found the solution from here, BUT i get another issue with the bbcode.
When i add a bbcode lets say in the chat writes : beer : (without the space)
What must i do about it?
I had the same problem with the members , admins color and i found the solution from here, BUT i get another issue with the bbcode.
When i add a bbcode lets say in the chat writes : beer : (without the space)
What must i do about it?
Re: mChat Color text for founder or administrator
it is a bbcode and not a smiley?
-
- New member
- Posts: 5
- Joined: 22 Aug 2012, 06:46
Re: mChat Color text for founder or administrator
Yes my friend you are right.There are smilies....Any solution for these?
What must i do?
What must i do?
Re: mChat Color text for founder or administrator
Sorry without space turns this
: beer :
into this
:beer: which if there is a smiley setup for that will parse as
: beer :
into this
:beer: which if there is a smiley setup for that will parse as
-
- New member
- Posts: 5
- Joined: 22 Aug 2012, 06:46
Re: mChat Color text for founder or administrator
Do you mean to make it manual when i type it?
The problem is that when i press a smile in text area typed normal but when i press enter the first smile txt appears as it is and the second, third etc appears as it must be...
The problem is that when i press a smile in text area typed normal but when i press enter the first smile txt appears as it is and the second, third etc appears as it must be...