chat box log in log out notification
3 posters
Page 1 of 1
chat box log in log out notification
is it possible to remove this notification from chatbox?
forum version phpbb3
http://gsmcotabato.forumotion.com/
Last edited by zenzo on March 31st 2017, 14:58; edited 1 time in total
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: chat box log in log out notification
Hi there, @zenzo!
Install this JavaScript.
Title: Anything you please.
Placement: In all pages
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){}})
});
Re: chat box log in log out notification
this is perfect, thank very much
topic solved
topic solved
zenzo- Forumember
- Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines
Re: chat box log in log out notification
Problem solved & topic archived.
|
Similar topics
» Chat notification lines showing when adding avatar in memberlist?
» How to remove the @ in the Chat box/ How to make the default chat box on every page of forum?
» Hide chat/Ban all users chat (except Admin/Mods/Group)
» Chat World Chat site
» The Pig Chat Forums, A Place To Chat About Anything
» How to remove the @ in the Chat box/ How to make the default chat box on every page of forum?
» Hide chat/Ban all users chat (except Admin/Mods/Group)
» Chat World Chat site
» The Pig Chat Forums, A Place To Chat About Anything
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum