Jump to content

FDR Chat Room Ignore Functionality (custom)


Carter1984

Recommended Posts

I think there should be a way to ignore a person in chat.  To that end I made a small script you can insert into the console of your browser.  Simply copy/paste it and hit enter.  Then just type:

 

block('USER_NAME_HERE');

 

It is case sensitive.

 

It basically just polls the chat and anytime a comment is made by the person you enter, it removes it from view.  Have not tested this over long periods of time, but I think it is performant enough to work well in most use cases.  Once you refresh your browser you'll have to repeat the process.  Don't worry about screwing anything up as you can always refresh page and start over.  I would be curious how it works with multiple ignores.  Maybe I'll make this into a chrome extension if anyone else finds it useful.

 

function block(userName){  window.setInterval(function(){    var items = jQuery('li.post');    items.each(function(){      if(jQuery(this).find('label').text() === userName){        jQuery(this).hide();        if(jQuery(this).next('li.post').length > 0){          checkNext(jQuery(this));        }      }    });  },500);}function checkNext(theItem){      if(theItem.next('li.post').length > 0 && theItem.next('li.post').find('label')){    theItem.next('li.post').hide();    if(theItem.next('li.post').next('li.post').length > 0){      checkNext(theItem.next('li.post').next('li.post'));    }  }}
Link to comment
Share on other sites

Thanks for that code snippet, Carter. I might be able to integrate that into the code for the chatroom.  I will also probably submit it as a patch to the originators of the software.

 

And Robin is right, there is currently no way to ignore people in the chat, you can only block them from initiating private chats.

Link to comment
Share on other sites

I found what you are talking about Mike.  There is a "chats" checkbox in the "ignore preferences" section of the "edit profile" section.  It is buried rather deep.  I never would have found it unless you pointed it out.  I'll see if I can add the option as a context menu item available from the chat room.   :)

 

UPDATE:  I did test the ignore functionality.  Checking the chat ignore check box does not actually block messages from appearing in the chat window.

Link to comment
Share on other sites

This should be easier to use than the above posted code which needed to be pasted into your console.  It's a Chrome Extension!

 

This is my first Chrome Extension so just be aware this is considered alpha!  I've tested it quite a bit though and it seems to work pretty well I think.  

 

Just make a note:

*Once you install the extension you will need to refresh your browser for this to work.

*Whenever you close your browser and open it back up, you will need to click the extension button in order to start blocking your saved list of ignored users (why run the blocker when there is no need?).

*If you remove a user from your ignore list you may have to refresh the browser.

 

 

 

Here is a link to install the extension via the Chrome Web Store:  https://chrome.google.com/webstore/detail/fdr-chat-block/mglableldfdmgfmfjhlcfnmnbabjdoeh

 

 

 

This file is the source code:

 

block/mglableldfdmgfmfjhlcfnmnbabjdoehFDRChatBlock.zip

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hey, I just integrated the user settings for "Ignore chat" into the chat room so that now you can ignore users without having to use Chrome.

 

Make sure you're using the correct language or the text might be a little confusing.  You should see "English (USA)" instead of "English (USA) -- obsolete"

I also fixed the position of the menu that pops up when you click on a user.

Link to comment
Share on other sites

Hey Carter, nice work with the jQuery, but the best way to deal with this feature on an Invision Boards integrated chat, is to actually pull the preselected blocked list from the database. If anyone wants to use custom chat features, it should become an extra incentive for people to register and join the community, instead of doing extra work for front end only.

Link to comment
Share on other sites

With a google chrome extension, he did the best he could with the tools available. Also, I implemented a solution which does just that anyway.

Also, the chat is only available for registered users, except during the call in shows, so that observation also wouldn't apply in this case.

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...

You the man James!

 

There is plenty of room for improvement. You cannot distinguish people who ignore you from people who blocked you, cannot distinguish an mature approach from an immature one. 

 

One idea is an autoblock option, people who blocked you are invisible to you - saves time and energy. Next idea is a lock symbol with a transparency effect on the user who blocked you - the same applies here. 

Link to comment
Share on other sites

There is plenty of room for improvement. You cannot distinguish people who ignore you from people who blocked you, cannot distinguish an mature approach from an immature one. One idea is an autoblock option, people who blocked you are invisible to you - saves time and energy. Next idea is a lock symbol with a transparency effect on the user who blocked you - the same applies here.

I don't follow. Why is ignoring without using the technology to automatically screen that person's chats mature?
Link to comment
Share on other sites

I don't follow. Why is ignoring without using the technology to automatically screen that person's chats mature?

 

In "real life" those people don't have a function to ignore others, so they are most likely emotionally a little bit immature and it is a continuum, not a black and white thing. Like Stef said, not to be a  bad person doesn't make you a good person. ;)

 

What about the actual criticism that your posts end up in nirvana, because you don't know, who is actually ignoring you?

Link to comment
Share on other sites

In "real life" those people don't have a function to ignore others, so they are most likely emotionally a little bit immature and it is a continuum, not a black and white thing. Like Stef said, not to be a  bad person doesn't make you a good person. ;)

 

What about the actual criticism that your posts end up in nirvana, because you don't know, who is actually ignoring you?

 

That still doesn't answer why it's immature (or less mature, really, that's just splitting hairs) to use the technology of the chat room, which doesn't have a real life analogue.

 

Regarding your posts ending up in nirvana, some, but not all, will give you more than adequate feedback before you go on an ignore list.

Link to comment
Share on other sites

Yes we do.  It's called "walking away."

 

How about calling things by their proper name? That would be like leaving the chatroom + there are situations you cannot leave, in real life, the internet is part of.

 

That still doesn't answer why it's immature (or less mature, really, that's just splitting hairs) to use the technology of the chat room, which doesn't have a real life analogue.

 

 

That's being precise and correct.  It is not like you have to answer someone or read someone's comment and if you are emotionally drawn to do it, you are most likely emotionally a little bit immature. 

 

Regarding your posts ending up in nirvana, some, but not all, will give you more than adequate feedback before you go on an ignore list.

 

 

That proves my point. It is actually rather paretoish 20/80 20% do it 80% don't.  :turned:

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.