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.

Chat box: Codes to personalize it

2 posters

Go down

In progress Chat box: Codes to personalize it

Post by JScript Wed 11 Mar 2015 - 15:58

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

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: Chat box: Codes to personalize it

Post by JScript Thu 12 Mar 2015 - 15:44

No one confirms this?

JS
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: Chat box: Codes to personalize it

Post by Wagner' Fri 13 Mar 2015 - 21:45

The same here.. (Sorry for late response)
Wagner'
Wagner'
Forumember

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

http://www.bestskins.net/forum

Back to top Go down

In progress Re: Chat box: Codes to personalize it

Post by JScript Wed 18 Mar 2015 - 16:32

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
JScript
JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

Back to top


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