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
- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr
Re: mChat Color text for founder or administrator
There is a setting in the ACP section of the mod to override minimum character and smilies. Ensure those are set to yes.
-
- New member
- Posts: 5
- Joined: 22 Aug 2012, 06:46
Re: mChat Color text for founder or administrator
AT the ACP mchat mod Main Configuration the Override smilie limit and Override minimum characters limit is already to YES...
Any other idea?
Any Help please?
Any other idea?
Any Help please?
- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr
Re: mChat Color text for founder or administrator
Link to the forum with the mod active for guests.
-
- New member
- Posts: 5
- Joined: 22 Aug 2012, 06:46
Re: mChat Color text for founder or administrator
Its local my friend....
- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr
Re: mChat Color text for founder or administrator
Then I can't help you.
-
- New member
- Posts: 10
- Joined: 14 Sep 2012, 21:28
Re: mChat Color text for founder or administrator
Hi guys in mchat.php i have 2
do i need replacing both with:
to have admin texh red ?
Hope you can help me
Code: Select all
$message = utf8_normalize_nfc(request_var('message', '', true));
do i need replacing both with:
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;
to have admin texh red ?
Hope you can help me

- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr
Re: mChat Color text for founder or administrator
read the topic

RMcGirr83 wrote:You can try within the mchat.php file, within the case 'add', replacing this

-
- New member
- Posts: 6
- Joined: 12 Aug 2012, 22:11
Re: mChat Color text for founder or administrator
stonecityboys wrote:AT the ACP mchat mod Main Configuration the Override smilie limit and Override minimum characters limit is already to YES...
Any other idea?
Any Help please?
Same problem Rich

This is my code edited...
Code: Select all
// Reguest...
$message = utf8_normalize_nfc(request_var('message', '', true));
$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);
Guest mChat added for you.
http://www.phpbb-es.com/foro/
- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr
Re: mChat Color text for founder or administrator
Not sure and I really am not going to worry one bit about it. Can't please everyone I guess
:)
Same thing occurs if you do color and only smilie when posting a message. There must be a space before the smilie. So try changing this to this
Same thing occurs if you do color and only smilie when posting a message. There must be a space before the smilie. So try changing this
Code: Select all
'[color=#BF0000]' . $message . '[/color]'
Code: Select all
'[color=#BF0000] ' . $message . '[/color]'
-
- New member
- Posts: 6
- Joined: 12 Aug 2012, 22:11
Re: mChat Color text for founder or administrator
Working Rich!!!
Thank you very much! (mChat disable again to Guest...)
Thank you very much! (mChat disable again to Guest...)

-
- New member
- Posts: 18
- Joined: 04 Aug 2013, 18:14
Re: mChat Color text for founder or administrator
hi))
I did as you stated above, but now does not work emoticons (smileys designation obtained in bb code: smiles:) and the same color nick (((
have a solution?
please tell me)))
[img]http://s001.youpic.su/pictures/1397160000/a7ce844a4bfaedf59d3e3ec0d50b6337.jpg[/img]
I did as you stated above, but now does not work emoticons (smileys designation obtained in bb code: smiles:) and the same color nick (((
have a solution?
please tell me)))
[img]http://s001.youpic.su/pictures/1397160000/a7ce844a4bfaedf59d3e3ec0d50b6337.jpg[/img]
-
- New member
- Posts: 18
- Joined: 04 Aug 2013, 18:14
Re: mChat Color text for founder or administrator
came up with the algorithm, I hope I write it if you understand its meaning and be able to reproduce the desired language
With smiles - if the text variable is ":" then close the tag in front of her color, and the next time ":" open tag color
With smiles - if the text variable is ":" then close the tag in front of her color, and the next time ":" open tag color
-
- New member
- Posts: 18
- Joined: 04 Aug 2013, 18:14
Re: mChat Color text for founder or administrator
I found a solution .. using HTML .... not that dangerous?
but works fine :rock:
P.S. found a small bug .. but it is not critical .. he will not fix .. after editing the message numbers become standart
but works fine :rock:
Code: Select all
/ Reguest...
$message = utf8_normalize_nfc(request_var('message', '', true));
$message = ($auth->acl_get('a_') || $user->data['user_type'] == USER_FOUNDER) ? '<font size="2" color="green" face="Comic Sans MS"> ' . $message . '</font>' : (($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? '[color=brown] ' . $message . '[/color]' : $message);
P.S. found a small bug .. but it is not critical .. he will not fix .. after editing the message numbers become standart
-
- New member
- Posts: 5
- Joined: 23 Mar 2013, 04:51
Re: mChat Color text for founder or administrator
This works and does not break the BBCode for colors
// Reguest...
$message = utf8_normalize_nfc(request_var('message', '', true));
$message = ($auth->acl_get('a_') || $user->data['user_type'] == USER_FOUNDER) ? '<font color="yellow"> ' . $message . '</font>' : $message;
// Reguest...
$message = utf8_normalize_nfc(request_var('message', '', true));
$message = ($auth->acl_get('a_') || $user->data['user_type'] == USER_FOUNDER) ? '<font color="yellow"> ' . $message . '</font>' : $message;
Return to “Modders MOD support”
Who is online
Users browsing this forum: Bing [Bot], CommonCrawl [Bot] and 30 guests