The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

chat box log in log out notification

View previous topic View next topic Go down

Solved chat box log in log out notification

Post by zenzo on March 31st 2017, 11:14 am



is it possible to remove this notification from chatbox?

forum version phpbb3

http://gsmcotabato.forumotion.com/


Last edited by zenzo on March 31st 2017, 1:58 pm; edited 1 time in total
avatar
zenzo
Forumember

Posts : 563
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: chat box log in log out notification

Post by Draxion on March 31st 2017, 11:58 am

Hi there, @zenzo!

Install this JavaScript.
Title: Anything you please.
Placement: In all pages
Code:
$(window).load(function() {
  var chatbox_script = function() {
    $('#chatbox > p > .msg > span').filter('[style="color:green"],[style="color:red"]').closest('p').remove();
    var overrided = Chatbox.prototype.refresh;
    Chatbox.prototype.refresh = function(data) {
      if (data.messages && data.messages.length) {
        data.messages = $.grep(data.messages, function(v) {
          return v.userId != -10 || $.inArray(v.msgColor, ["red", "green"]) == -1;
        });
      }
      overrided.call(this, data);
    };
  };
 
  var
s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
});


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1710
Reputation : 223
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: chat box log in log out notification

Post by zenzo on March 31st 2017, 1:58 pm

this is perfect, thank very much

topic solved
avatar
zenzo
Forumember

Posts : 563
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: chat box log in log out notification

Post by Draxion on March 31st 2017, 5:25 pm

You're most welcome. Have a good day!


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1710
Reputation : 223
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: chat box log in log out notification

Post by APE on March 31st 2017, 5:25 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules



avatar
APE
Manager
Manager

Male Posts : 10662
Reputation : 996
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum