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.

Can't Change Chatbox Name

View previous topic View next topic Go down

Can't Change Chatbox Name

Post by LiquidSilverAce on December 27th 2015, 6:32 am

So I've been trying to personalize my site's chatbox by changing the name of the chatbox; I the coding from http://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!

LiquidSilverAce
New Member

Posts : 5
Reputation : 1
Language : English

http://fairytail-saga.forumotion.com

Back to top Go down

Re: Can't Change Chatbox Name

Post by Genesis on December 27th 2015, 6:38 am

Can you paste here what you put in your CSS please?

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Re: Can't Change Chatbox Name

Post by LiquidSilverAce on December 27th 2015, 6:46 am

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

LiquidSilverAce
New Member

Posts : 5
Reputation : 1
Language : English

http://fairytail-saga.forumotion.com

Back to top Go down

Re: Can't Change Chatbox Name

Post by Guest on December 27th 2015, 6:53 am

To be sure, you're using phpBB3? What name are you wanting?

Guest
Guest


Back to top Go down

Re: Can't Change Chatbox Name

Post by Genesis on December 27th 2015, 6:57 am

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){}})


});


You have added spaces.

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Re: Can't Change Chatbox Name

Post by LiquidSilverAce on December 27th 2015, 9:43 pm

@Leah7 wrote:To be sure, you're using phpBB3? What name are you wanting?
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 ^^

Clashmune wrote: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){}})


});


You have added spaces.
Mmkay I'll try this.

LiquidSilverAce
New Member

Posts : 5
Reputation : 1
Language : English

http://fairytail-saga.forumotion.com

Back to top Go down

Re: Can't Change Chatbox Name

Post by Genesis on December 27th 2015, 9:52 pm

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){}})
});

Genesis
Helper
Helper

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

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