chat box log in log out notification

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 : 564
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 : 2161
Reputation : 274
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 : 564
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 : 2161
Reputation : 274
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
Administrator
Administrator

Male Posts : 12494
Reputation : 1308
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top


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