Chat Room messages
|
Posted
#87406
(In Topic #17813)
|
|
|---|---|
Fan in action |
Was noticing in my site's stats about the chat room messages, and every time someone 'enters' or 'exits' the site, it counts as them entering or exiting the chatroom due to the shoutbox. Is there some way to disable those messages? It's kind of annoying to go into the chatroom and get flooded with those messages, and then have to manually delete every single one (so I don't delete the conversations that we do have). Thanks. |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
I found these lines in 'chat.php', but I am reluctant to 'fiddle' with something I know little about. Line 1192 … Code
$_message_parsed=insert_lang_comcode(do_lang('ENTERED_THE_ROOM',$their_username),4);
Code
$_message_parsed=insert_lang_comcode(do_lang('LEFT_ROOM',$GLOBALS['FORUM_DRIVER']->get_username($p['member_id'])),4);
Removing the 'ENTERED_THE _ROOM' from the code gets rid of the "… has entered the room" message, but removing the 'LEFT_ROOM' ("… has left the room") message breaks the display. Hence my reluctance to 'fiddle' …..
Take my advice. I'm not using it!
View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
But, please don't let me interfere in a proper investigation. A 'hotfix', if promulgated, would be very welcome …!!
Take my advice. I'm not using it!
View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal |
|
Posted
|
|
|
ocStaff (admin) |
I thought about changing this, but there is no easy way, and I'm not sure we should. As I say, essentially the shoutbox and chat room become the same thing. That's both conceptual, and how it is architected. One could say there is a distinction between someone explicitly choosing to enter the chat room, and someone entering the site – but not always, it depends where the block is put and the nature of the site. So we'd need to make it configurable so that'd be some extra work. I have made a small change whereby you can now blank out the language strings for entering/leaving room messages. If the strings are blank, nothing is saved to the chat room: 0000642: No way to disable enter/leave room messages - ocPortal feature tracker Another option for you would be to change the shoutbox to use its own chat room. The shoutbox (as Fletch mentioned) already does not show enter/leave messages. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
Fan in action |
|
|
Posted
|
|
|
ocStaff (admin) |
I looked through the code quite carefully and couldn't see anywhere the messages would be saved for the shoutbox script. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
Fan in action |
|
|
Posted
|
|
|
ocStaff (admin) |
How many messages are we talking here? A handful, dozens, hundreds? If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
BUT… If, like me, you only skim-read the reply, you might have missed this bit … … I know I did and had to re-read and rectify the omission before the 'hotfix' took.
Take my advice. I'm not using it!
View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal |
1 guests and 0 members have just viewed this: None
Control functions:







