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.

Replace words in ChatBox

View previous topic View next topic Go down

Replace words in ChatBox

Post by Uknown-Data on January 14th 2011, 8:07 pm

Hi,

I got this script:
Code:
function replace_stuff() {

  document.body.innerHTML = document.body.innerHTML.replace(/You are disconnected/g,'Du er væk fra chatten');

 }

window.onload=function(){
 replace_stuff();
}

And I was wondering how I can attach it to the ChatBox ie. this link http://www.FORUMNAME/chatbox/index.forum - I'm using PunBB.

Thanks Smile

Uknown-Data
Forumember

Male Posts : 66
Reputation : 0
Language : HTML/CSS/JS

Back to top Go down

Re: Replace words in ChatBox

Post by PlatinumWata on January 14th 2011, 10:36 pm

Wait, I heard their is no way to replace words in the chat box. Does this script replace words in chatbox?

PlatinumWata
Forumember

Male Posts : 443
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Re: Replace words in ChatBox

Post by Saxaca on January 14th 2011, 10:37 pm

It's an JS replacing script, and he wants it to be placed in the chatbox.

Saxaca
Forumember

Male Posts : 539
Reputation : 26
Language : Markup.

Back to top Go down

Re: Replace words in ChatBox

Post by PlatinumWata on January 14th 2011, 10:38 pm

Is it possible though? I heard it wasn't.

PlatinumWata
Forumember

Male Posts : 443
Reputation : 0
Language : English
Location : United States (born from England)

Back to top Go down

Re: Replace words in ChatBox

Post by Uknown-Data on January 14th 2011, 10:47 pm

Saxaca - it'a exactly what i'm looking for Very Happy

UltimateLion - I hope so Smile

Uknown-Data
Forumember

Male Posts : 66
Reputation : 0
Language : HTML/CSS/JS

Back to top Go down

Re: Replace words in ChatBox

Post by PlatinumWata on January 14th 2011, 10:50 pm

I hope so too.

It would be cool.

PlatinumWata
Forumember

Male Posts : 443
Reputation : 0
Language : English
Location : United States (born from England)

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