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.

Chat box: Codes to personalize it

View previous topic View next topic Go down

In progress Chat box: Codes to personalize it

Post by JScript on March 11th 2015, 3:58 pm

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 http://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: http://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
Forumember

Male Posts : 741
Reputation : 167
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 on March 12th 2015, 3:44 pm

No one confirms this?

JS

JScript
Forumember

Male Posts : 741
Reputation : 167
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' on March 13th 2015, 9:45 pm

The same here.. (Sorry for late response)

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 on March 18th 2015, 4:32 pm

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

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

http://jscript.forumeiros.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