The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

chatbox java doesnt work

4 posters

Go down

Solved chatbox java doesnt work

Post by h4d3z July 2nd 2016, 12:31 am

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


Last edited by h4d3z on July 2nd 2016, 1:03 am; edited 1 time in total
h4d3z
h4d3z
New Member

Posts : 10
Reputation : 1
Language : Dutch

View user profile http://red-illusion.userboard.net

Back to top Go down

Solved Re: chatbox java doesnt work

Post by Nemo July 2nd 2016, 12:37 am

Hey,

What's your forum's URL?

Hello
Nemo
Nemo
Active Poster

Male Posts : 1201
Reputation : 119
Language : Greek, English, French

View user profile http://www.helpgr.forumgreek.com

Back to top Go down

Solved Re: chatbox java doesnt work

Post by h4d3z July 2nd 2016, 12:38 am

h4d3z
h4d3z
New Member

Posts : 10
Reputation : 1
Language : Dutch

View user profile http://red-illusion.userboard.net

Back to top Go down

Solved Re: chatbox java doesnt work

Post by SLGray July 2nd 2016, 12:41 am

Please use the BBCode code tags when you post coding.
Code:
[code][/code]


chatbox java doesnt work Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50246
Reputation : 3466
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: chatbox java doesnt work

Post by Nemo July 2nd 2016, 12:43 am

Hey,

Have you enabled the JavaScript management via your ACP?

Hello
Nemo
Nemo
Active Poster

Male Posts : 1201
Reputation : 119
Language : Greek, English, French

View user profile http://www.helpgr.forumgreek.com

Back to top Go down

Solved Re: chatbox java doesnt work

Post by h4d3z July 2nd 2016, 12:44 am

sry, il will use code and /code

i did enable the java script
h4d3z
h4d3z
New Member

Posts : 10
Reputation : 1
Language : Dutch

View user profile http://red-illusion.userboard.net

Back to top Go down

Solved Re: chatbox java doesnt work

Post by h4d3z July 2nd 2016, 12:47 am

omg it worked now lol,
dont now why
h4d3z
h4d3z
New Member

Posts : 10
Reputation : 1
Language : Dutch

View user profile http://red-illusion.userboard.net

Back to top Go down

Solved Re: chatbox java doesnt work

Post by Ape July 2nd 2016, 1:03 am

is this now solved
If yes please hit the big green solved button on the top of your first post

thank you.


chatbox java doesnt work Left1212chatbox java doesnt work Center11chatbox java doesnt work Right112
chatbox java doesnt work Ape_b110
chatbox java doesnt work Keep_s10
chatbox java doesnt work Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17736
Reputation : 1896
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: chatbox java doesnt work

Post by Nemo July 2nd 2016, 9:53 am

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

Male Posts : 1201
Reputation : 119
Language : Greek, English, French

View user profile http://www.helpgr.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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