chatbox java doesnt work
4 posters
Page 1 of 1
chatbox java doesnt work
So i tried adding some java code i found here but it doenst do anything.
Im a doing something wrong ?
there are 2 codes :
$(window).load(function() {
var chatbox_script = function() {
var overrided = Chatbox.prototype.refresh;
Chatbox.prototype.refresh = function(data) {
overrided.call(this, data);
$('.chatbox-username').each(function(){
this.previousSibling&&$.trim(this.previousSibling.nodeValue)=="@"&&$(this.previousSibling).replaceWith('<img src="https://i.imgur.com/zICIAne.png" /> ')
})
};
};
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){}})
});
And :
$(window).load(function() {
var chatbox_script = function() {
$('#chatbox > p > .msg > span').filter('[style="color"],[style="color"]').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){}})
});
They are the crown replace for @
and the login / logout removal
Im a doing something wrong ?
there are 2 codes :
$(window).load(function() {
var chatbox_script = function() {
var overrided = Chatbox.prototype.refresh;
Chatbox.prototype.refresh = function(data) {
overrided.call(this, data);
$('.chatbox-username').each(function(){
this.previousSibling&&$.trim(this.previousSibling.nodeValue)=="@"&&$(this.previousSibling).replaceWith('<img src="https://i.imgur.com/zICIAne.png" /> ')
})
};
};
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){}})
});
And :
$(window).load(function() {
var chatbox_script = function() {
$('#chatbox > p > .msg > span').filter('[style="color"],[style="color"]').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){}})
});
They are the crown replace for @
and the login / logout removal
Last edited by h4d3z on July 2nd 2016, 1:03 am; edited 1 time in total
h4d3z- New Member
- Posts : 10
Reputation : 1
Language : Dutch
Re: chatbox java doesnt work
Hey,
What's your forum's URL?
What's your forum's URL?

Nemo- Active Poster
-
Posts : 1201
Reputation : 119
Language : Greek, English, French
Re: chatbox java doesnt work
Please use the BBCode code tags when you post coding.
- Code:
[code][/code]


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray- Administrator
-
Posts : 50162
Reputation : 3458
Language : English
Location : United States
Re: chatbox java doesnt work
Hey,
Have you enabled the JavaScript management via your ACP?
Have you enabled the JavaScript management via your ACP?

Nemo- Active Poster
-
Posts : 1201
Reputation : 119
Language : Greek, English, French
Re: chatbox java doesnt work
sry, il will use code and /code
i did enable the java script
i did enable the java script
h4d3z- New Member
- Posts : 10
Reputation : 1
Language : Dutch
Re: chatbox java doesnt work
omg it worked now lol,
dont now why
dont now why
h4d3z- New Member
- Posts : 10
Reputation : 1
Language : Dutch
Re: chatbox java doesnt work
is this now solved
If yes please hit the big green solved button on the top of your first post
thank you.
If yes please hit the big green solved button on the top of your first post
thank you.
Ape- Administrator
-
Posts : 17655
Reputation : 1884
Language : fluent in dork / mumbojumbo & English haha
Re: chatbox java doesnt work
Problem solved & topic archived.
|
Nemo- Active Poster
-
Posts : 1201
Reputation : 119
Language : Greek, English, French

» IMG doesnt work
» Adding Events On Calender
» Tuesday tip : Reputation system: only allow positive votes
» Language
» JavaScript doesnt work
» Adding Events On Calender
» Tuesday tip : Reputation system: only allow positive votes
» Language
» JavaScript doesnt work
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum