So I've been trying to personalize my site's chatbox by changing the name of the chatbox; I the coding from https://help.forumotion.com/t139284-codes-to-personalize-your-chatbox to do it. I enabled Javascript coding and put the code in there, then pasted the same code in the CSS Stylesheet, but the name has not changed. Would appreciate help, thank you so much!
2 posters
Can't Change Chatbox Name
LiquidSilverAce- New Member
- Posts : 5
Reputation : 1
Language : English
- Post n°1
Can't Change Chatbox Name
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
- Post n°2
Re: Can't Change Chatbox Name
Can you paste here what you put in your CSS please?
LiquidSilverAce- New Member
- Posts : 5
Reputation : 1
Language : English
- Post n°3
Re: Can't Change Chatbox Name
- Code:
$(window).load(function() {
var chatbox_script = function() {
$("a.chat-title").text("Pls Work");
};
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){}})
});
Here you go
Guest- Guest
- Post n°4
Re: Can't Change Chatbox Name
To be sure, you're using phpBB3? What name are you wanting?
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
- Post n°5
Re: Can't Change Chatbox Name
Copy this:
- Code:
$(window).load(function() {
  var chatbox_script = function() {
   $("a.chat-title").text("In Da Place");
  };
Â
  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){}})
});
LiquidSilverAce- New Member
- Posts : 5
Reputation : 1
Language : English
- Post n°6
Re: Can't Change Chatbox Name
Nope, Invision. Does the JavaScript only work with BB3? And honestly the name I put was just because I got frustrated (Plz Work). I haven't decided on a chat box name, but I'm pretty sure I know how to change it at any rate, just can't figure out why the coding isn't working unfortunately ^^Leah7 wrote:To be sure, you're using phpBB3? What name are you wanting?
Mmkay I'll try this.Clashmune wrote:Copy this:
You have added spaces.
- Code:
$(window).load(function() {
  var chatbox_script = function() {
   $("a.chat-title").text("In Da Place");
  };
Â
  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){}})
});
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
- Post n°7
Re: Can't Change Chatbox Name
I am not sure what happened to my code I sent but try both that and this in case a staff editted my post.
- Code:
$(window).load(function() {
  var chatbox_script = function() {
   $("a.chat-title").text("In Da Place");
  };
Â
  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){}})
});