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.

Can't Change Chatbox Name

2 posters

Go down

Can't Change Chatbox Name Empty Can't Change Chatbox Name

Post by LiquidSilverAce 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 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!
avatar
LiquidSilverAce
New Member

Posts : 5
Reputation : 1
Language : English

http://fairytail-saga.forumotion.com

Back to top Go down

Can't Change Chatbox Name Empty Re: Can't Change Chatbox Name

Post by Take Notes December 27th 2015, 6:38 am

Can you paste here what you put in your CSS please?
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Can't Change Chatbox Name Empty Re: Can't Change Chatbox Name

Post by LiquidSilverAce 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
avatar
LiquidSilverAce
New Member

Posts : 5
Reputation : 1
Language : English

http://fairytail-saga.forumotion.com

Back to top Go down

Can't Change Chatbox Name Empty Re: Can't Change Chatbox Name

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

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


Back to top Go down

Can't Change Chatbox Name Empty Re: Can't Change Chatbox Name

Post by Take Notes 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.
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Can't Change Chatbox Name Empty Re: Can't Change Chatbox Name

Post by LiquidSilverAce 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.
avatar
LiquidSilverAce
New Member

Posts : 5
Reputation : 1
Language : English

http://fairytail-saga.forumotion.com

Back to top Go down

Can't Change Chatbox Name Empty Re: Can't Change Chatbox Name

Post by Take Notes 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){}})
});
Take Notes
Take Notes
Helper
Helper

Male Posts : 2337
Reputation : 324
Language : English
Location : Forumountain

Back to top Go down

Back to top


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