Current date/time is March 28th 2024, 13:44

Search found 1 match for chatbox_option_co

Deletes are chat history.

After some time everything written in the chat will be deleted.How to fix it not to erase the history of chat.
I use a modified chat @JScript.

/*** * Application: chatbox8 - Edit Messages * Description: Support for editing messages in chat box! * Version: 0.05072015-jq1.9.1 * RC1 (Release candidate 1!) - Mahabharata * Author: JScript - 2015-05-07 * Copyright (c) 2015 JScript <jscriptbrasil at live dot com> * This work is free. You can redistribute it and/or modify it * under the terms of the WTFPL, Version 2 */ // Redefine function! function insertChatBox(chatbox_id, chatbox_url) { return insertChatBoxNew(chatbox_id, chatbox_url); } // Redefine function! function insertChatBoxNew(chatbox_id, chatbox_url) { // Put the chat box on top of widgets! //$('#' + chatbox_id).parent().detach().prependTo('#wrapper'); document.getElementById(chatbox_id).innerHTML = '<iframe style="visibility: hidden;" src="/chatbox/index.forum?archives=1" id="frame_chatbox" scrolling="no" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="0"></iframe>'; // Loader 1 var iFrame = document.getElementById('frame_chatbox').contentWindow; var frame_chatbox_document = setInterval(function() { try { if (iFrame.jQuery) { clearInterval(frame_chatbox_document); chat_edit(); } } catch (e) {} }, 50); } // Loader 2 $(function() { if (_userdata.session_logged_in) { $('#frame_chatbox').load(function() { if (typeof document.getElementById('frame_chatbox').contentWindow['chatEdit'] == 'undefined') { chat_edit(); } }); } }); function chat_edit() { var oIframe = (document.getElementById("frame_chatbox").contentWindow.document || document.getElementById("frame_chatbox").contentDocument), script = oIframe.createElement("script"), chatbox_script = function() { window.chatEdit = { locale: { Remove: "Сигурни ли сте, че искате да премахнете това съобщение?", Save: "Запази", Cancel: "Откажи", }, config: { // Change your chatbox title, default is "" = (locale title!) Title: "", // ligns "joined" and "logged off": 1 = Remove Notice: 0, // Change the moderator prefix Prefix: "@", // Automatic login: 0 = Disable autoLogin: 1, // Limit the amount of messages to show, default is 60 limitOfMsg: 60, // Open "smiles" in a pop up window? Default is 0 = no pop up! smilePopUp: 0, /*** * New Chatbox pseudo commands (Beta test and staff only!) * Command Explanation * ------------------------------------------------------------------------------- * /shake "Username" shook the chat window to catch everyone's attention! */ shakeMsg: "agitou a janela de bate-papo para chamar a atenção de todos!" }, interval: 0, isStorage: (typeof(Storage) == "undefined") ? 0 : 1, oBBCode: { patt: [ /\[b](.*?)\[\/b]/gi, /\[i](.*?)\[\/i]/gi, /\[u](.*?)\[\/u]/gi, /\[s](.*?)\[\/s]/gi, /\[center](.*?)\[\/center]/gi, /\[size=(.*?)](.*?)\[\/size]/gi, /\[url](.*?)\[\/url]/gi, /\[url=(.*?)](.*?)\[\/url]/gi, /\[color=(.*?)](.*?)\[\/color]/gi, /\[img](.*?)\[\/img]/gi, /\[spoiler](.*?)\[\/spoiler]/gi, /\[code](.*?)\[\/code]/gi, /\[quote](.*?)\[\/quote]/gi ], html: [ "<strong>$1</strong>", "<i>$1</i>", "<span style='text-decoration:underline;'>$1</span>", "<span style='text-decoration:line-through'>$1</span>", "<div style='margin:auto;text-align:center;width:100%'>$1</div>", "<span style='font-size: $1;'>$2</span>", "<a rel='nofollow' target='_blank' href='$1'>$1</a>", "<a rel='nofollow' target='_blank' href='$1'>$2</a>", "<span style='color: $1'>$2</span>", "<img src='$1' style='max-width:120px;max-height:120px;'/>", "<dl class='codebox spoiler'><dt style='cursor: pointer;'>Spoiler:</dt><dd><div class='spoiler_content'>$1</div></dd></dl>", "<dl class='codebox'><dt>Code:</dt><dd class='cont_code'><code>$1</code></dd></dl>", "<blockquote><div>$1</div></blockquote>" ] }, oHTML: { patt: [ /<strong>(.*?)<\/strong>/gi, /<i>(.*?)<\/i>/gi, /<span style="text-decoration:underline;">(.*?)<\/span>/gi, /<span style="text-decoration:line-through;">(.*?)<\/span>/gi, /<div style="margin:auto;text-align:center;width:100%">(.*?)<\/div>/gi, /<span style="font-size: (.*?);">(.*?)<\/span>/gi, /<a href="(.*?)"><\/a>/gi, /<a href="(.*?)">(.*?)<\/a>/gi, /<span style="color: (.*?)">(.*?)<\/span>/gi, ///<img(?:.*)src="(.*?)"(?:.*)>/gi, /<dl class="codebox spoiler"><dt style="cursor: pointer;">Spoiler:<\/dt><dd><div class="spoiler_content">(.*?)<\/div><\/dd><\/dl>/gi, /<dl class="codebox"><dt>Code:<\/dt><dd class="cont_code"><code>(.*?)<\/code><\/dd><\/dl>/gi, /<blockquote><div>(.*?)<\/div><\/blockquote>/gi ], bbcode: [ '[b]$1[/b]', '[i]$1[/i]', '[u]$1[/u]', '[s]$1[/s]', '[center]$1[/center]', '[size=$1]$2[/size]', '[url]"$1"[/url]', '[url="$1:
by smurfavr
on March 18th 2016, 11:58
 
Search in: Garbage
Topic: Deletes are chat history.
Replies: 15
Views: 2413

Back to top

Jump to: