HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Chat Room messages

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#87406 (In Topic #17813)
Avatar

Fan in action

Something that's been bothering me for a while, and I asked once but it still bugs me.

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.
Back to the top
 
Posted
Rating:
#87407
Avatar

Sounds like a bug, will get back to you soonish.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87408
Avatar

Community saint

Chris Graham said

Sounds like a bug …

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);
Line 441 …

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' …..

 :o

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#87411
Avatar

Yeah it would be fairly easy to remove the messages, but it sounds there is a bug that these messages are inserting for shoutbox, which shouldn't be the case. I'll need to investigate to see why that is happening.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87412
Avatar

Community saint

Yep, I read Ethan's initial complaint, but I assumed the 'chatbox' reference was a red herring, because when my chatbox is activated I don't get these messages appearing in the chatbox iframe, but they DO appear in the chat room.

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
Back to the top
 
Posted
Rating:
#87420
Avatar

I think you're running the ocSuperShout addon. This essentially turns the shoutbox into the chat room (as messages come through instantly via AJAX), which is why accessing the site would use these messages.

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.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87421
Avatar

Fan in action

No, I removed SuperShout about 2 weeks ago after users were saying it was slowing down the site. Unless files remain from the SuperShout still, (which is entirely possible), shouldn't be having any effect.
Back to the top
 
Posted
Rating:
#87422
Avatar

Are you sure that the problem was not resolved when that addon was removed and now you're seeing enter/leave messages when people really do enter/leave the standalone chat room? Or ones from over 2 weeks ago?

I looked through the code quite carefully and couldn't see anywhere the messages would be saved for the shoutbox script.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87425
Avatar

Fan in action

As far as I know, they go back as far back as last time I deleted the collection of them, which was right after I removed that addon.
Back to the top
 
Posted
Rating:
#87426
Avatar

You should be able to test easily enough… if you see your own username being said to enter the chat room and you know you haven't, and you haven't seen any remnants of the ocsupershout addon running, that'd indicate a bug.
How many messages are we talking here? A handful, dozens, hundreds?


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87427
Avatar

Community saint

For those that are following this thread and have decided, like Ethan, that they want to remove the system messages about users 'entering' and 'leaving' the chat room, then I have to tell you it works!

BUT…

If, like me, you only skim-read the reply, you might have missed this bit …

Chris Graham said

… 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
… 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
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: