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.
The forum of the forums
2 posters

    Can't Change Chatbox Name

    avatar
    LiquidSilverAce
    New Member


    Posts : 5
    Reputation : 1
    Language : English

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

    Post by LiquidSilverAce Sun 27 Dec - 5:32

    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!
    Take Notes
    Take Notes
    Helper
    Helper


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

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

    Post by Take Notes Sun 27 Dec - 5:38

    Can you paste here what you put in your CSS please?
    avatar
    LiquidSilverAce
    New Member


    Posts : 5
    Reputation : 1
    Language : English

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

    Post by LiquidSilverAce Sun 27 Dec - 5:46

    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
    Guest
    Guest


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

    Post by Guest Sun 27 Dec - 5:53

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


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

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

    Post by Take Notes Sun 27 Dec - 5:57

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


    Posts : 5
    Reputation : 1
    Language : English

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

    Post by LiquidSilverAce Sun 27 Dec - 20:43

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


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

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

    Post by Take Notes Sun 27 Dec - 20:52

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

      Current date/time is Wed 13 Nov - 17:23