[Tutorial] Auto /clear no chatbox |
Fala ae você! Blz? Bem hoje venho trazer um código muito especial. Ele foi feito pelo Daemon ontem, dia 21.07.13! Isso mesmo, um código novinho para o seu fórum.
Vá até o seu painel de controle e ao seu gestor de códigos JavaScript.
Agora crie um novo JavaScript com o investimento em todas as páginas.
- Código:
$(document).ready(function() {
$('#frame_chatbox').replaceWith('<iframe id="chat_f" src="/chatbox" height="100%" width="100%" frameborder="0"></iframe>');
setInterval(function () {
var c = $('#chat_f').contents().find('#chatbox table');
c.each(function () {
if (c.length) {
$.post('/chatbox/chatbox_actions.fórum?archives', {
mode: "send",
sent: "/clear"
});
}
});
}, 800);
});
Se alguém tentar ownar seu Chatbox ele irá fazer /clear automaticamente.
Owner:
- Código:
[table][tr][td]Conteúdo do owner![/td][/tr][/table]