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

    Chat box: Codes to personalize it

    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    In progress Chat box: Codes to personalize it

    Post by JScript March 11th 2015, 10:58 am

    Hello everybody!

    Introduction:

    First I'll explain the reason of my code that customize the chat be formulated as follows:
    Code:

    function insertChatBox(chatbox_id, chatbox_url) {
        return insertChatBoxNew(chatbox_id, chatbox_url);
    }

    function insertChatBoxNew(chatbox_id, chatbox_url) {

        document.getElementById(chatbox_id).innerHTML = '<iframe src="/chatbox/index.forum?archives=1" id="frame_chatbox" scrolling="no" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe>';
       
        frames["frame_chatbox"].onload = function() {
            // Your code here!
        };
    }

    1- These functions belong to https://illiweb.com/.../frm/lang/XX.js language file and are automatically called to insert the chat in the forum;
    2- They are called even when we click on the links "Archives" and then on "Back to the Chat";
    3- Thus, it is clear and evident that the personalization codes will always run because they will be within the native function!


    About the other codes::

    I will comment on the codes relating to this link: https://help.forumotion.com/t139284-codes-to-personalize-your-chatbox?highlight=chatbox+codes

    Question: You already tried to add some code and click on "Archives" and then on "Back to the Chat" and verify that the code is still working?

    -> Well, with me only work when I update the browser page...

    Anyone else confirm this?

    Thanks everyone for the feedback,

    JS
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    In progress Re: Chat box: Codes to personalize it

    Post by JScript March 12th 2015, 10:44 am

    No one confirms this?

    JS
    Wagner'
    Wagner'
    Forumember


    Male Posts : 48
    Reputation : 6
    Language : Portuguese
    Location : Brazil

    In progress Re: Chat box: Codes to personalize it

    Post by Wagner' March 13th 2015, 4:45 pm

    The same here.. (Sorry for late response)
    JScript
    JScript
    Forumember


    Male Posts : 741
    Reputation : 175
    Language : PT-BR, EN
    Location : Brazil

    In progress Re: Chat box: Codes to personalize it

    Post by JScript March 18th 2015, 11:32 am

    Wagner' wrote:The same here.. (Sorry for late response)
    In the tests I did, it would suffice that the codes stay within that function below and thus when the iframe is updated, the code comes back into operation!
    Code:

        frames["frame_chatbox"].onload = function() {
            // Your code here!
        };

    JS

      Current date/time is November 11th 2024, 1:50 pm