We are in the process of starting over. This means that the entire board at phpbbmodders.net has been set to read-only. All phpBB 2.x and 3.0.x content should be visible but read-only. Private messaging has been disabled for registered users. Registrations will be opened in the near future at the new site. A link to the new site is provided below.

- bonelifer, Administrator

mChat Color text for founder or administrator

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
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: mChat Color text for founder or administrator

Post by RMcGirr83 »

There is a setting in the ACP section of the mod to override minimum character and smilies. Ensure those are set to yes.
stonecityboys
New member
New member
Posts: 5
Joined: 22 Aug 2012, 06:46

Re: mChat Color text for founder or administrator

Post by stonecityboys »

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?
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: mChat Color text for founder or administrator

Post by RMcGirr83 »

Link to the forum with the mod active for guests.
stonecityboys
New member
New member
Posts: 5
Joined: 22 Aug 2012, 06:46

Re: mChat Color text for founder or administrator

Post by stonecityboys »

Its local my friend....
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: mChat Color text for founder or administrator

Post by RMcGirr83 »

Then I can't help you.
specter
New member
New member
Posts: 10
Joined: 14 Sep 2012, 21:28

Re: mChat Color text for founder or administrator

Post by specter »

Hi guys in mchat.php i have 2

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 ;)
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: mChat Color text for founder or administrator

Post by RMcGirr83 »

read the topic
RMcGirr83 wrote:You can try within the mchat.php file, within the case 'add', replacing this
;)
ThE KuKa_2
New member
New member
Posts: 6
Joined: 12 Aug 2012, 22:11

Re: mChat Color text for founder or administrator

Post by ThE KuKa_2 »

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/
User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6242
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr

Re: mChat Color text for founder or administrator

Post by RMcGirr83 »

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

Code: Select all

'[color=#BF0000]' . $message . '[/color]'
to this

Code: Select all

'[color=#BF0000] ' . $message . '[/color]'
ThE KuKa_2
New member
New member
Posts: 6
Joined: 12 Aug 2012, 22:11

Re: mChat Color text for founder or administrator

Post by ThE KuKa_2 »

Working Rich!!!

Thank you very much! (mChat disable again to Guest...) :x
slimxl
New member
New member
Posts: 18
Joined: 04 Aug 2013, 18:14

Re: mChat Color text for founder or administrator

Post by slimxl »

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/13971600 ... 0b6337.jpg[/img]
slimxl
New member
New member
Posts: 18
Joined: 04 Aug 2013, 18:14

Re: mChat Color text for founder or administrator

Post by slimxl »

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
slimxl
New member
New member
Posts: 18
Joined: 04 Aug 2013, 18:14

Re: mChat Color text for founder or administrator

Post by slimxl »

I found a solution .. using HTML .... not that dangerous?
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
clight77
New member
New member
Posts: 5
Joined: 23 Mar 2013, 04:51

Re: mChat Color text for founder or administrator

Post by clight77 »

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;

Who is online

Users browsing this forum: Ahrefs [Bot], CommonCrawl [Bot], Majestic-12 [Bot] and 1 guest