DarkStorm- New Member
- Posts : 3
Reputation : 2
Language : Arabic-English-French
by DarkStorm May 31st 2020, 12:06 am
SOLVED
here's the code:
- Code:
$(function() {
if (_userdata.session_logged_in || document.getElementById('quick_reply')) return;
var reply = $('a[href*="reply"]')[0];
if (reply) reply = reply;
else return;
window.servImgAccount = '';
window.servImgId = '';
window.servImgF = '';
window.plugins = '';
window.palette = 0;
window.illiweb = 'http://illiweb.com/';
window.locale = 'en';
window.height = '250';
window.plugin = 'bbcode';
window.toolbar = 'bold,italic,underline,strike|left,center,right,justify|bulletlist,orderedlist,horizontalrule|quote,code,faspoiler,fahide,table|servimg,image,link,youtube,dailymotion,flash|headers,size,color,font,removeformat|more|subscript,superscript|fascroll,faupdown,farand,faroll|date,time,pastetext,source';
window.cssFile = 'http://illiweb.com/rs3/16/frm/SCEditor/minified/jquery.sceditor.default.min.css';
window.isRtl = 0;
window.dice = [];
window.bSourceMode = false;
window.emoticonsEnabled = 1;
window.smileys = {};
window.iframeSrc = '/smilies.forum?mode=smilies_frame&t=1440581833';
window.illiwebDomain = 'http://illiweb.com/';
window.servimgDomain = 'www.servimg.com';
window.INTRANET = 0;
$.get(reply.href, function(d) {
var quick_reply = document.createElement('FORM'), area = $('#text_editor_textarea', d)[0], data = $('.submit-buttons', d)[0], anchor = document.anchors.quickreply, scripts, i, j, n;
quick_reply.id = 'quick_reply';
quick_reply.action = '/post';
quick_reply.method = 'post';
quick_reply.name = 'post';
quick_reply.enctype = 'multipart/form-data';
quick_reply.innerHTML = '<div id="textarea_content" style="width: 50%; clear: both; margin-left: auto; margin-right: auto; text-align: center;"><div style="padding:3px 0;"><span class="label">Username :</span><input class="inputbox" type="text" name="username" maxlength="25" value=""></div></div><link rel="stylesheet" href="http://illiweb.com/rs3/16/frm/SCEditor/src/themes/fa.default.min.css" type="text/css" media="all"/><style type="text/css">.sceditor-button-flash div { background-position: 0 -628px; }.sceditor-button-servimg div { background-position: 0 -644px; }.sceditor-button-dailymotion div{ background-position: 0 -660px; }.sceditor-button-faspoiler div { background-position: 0 -676px; }.sceditor-button-fahide div { background-position: 0 -692px; }.sceditor-button-fascroll div { background-position: 0 -708px; }.sceditor-button-faupdown div { background-position: 0 -724px; }.sceditor-button-farand div { background-position: 0 -756px; }.sceditor-button-faroll div { background-position: 0 -772px; }.sceditor-button-more div { background-position: 0 -788px; }.sceditor-button-emoticon div { background-position: 0 -804px; }.sceditor-button-headers div { background-position: 0 -820px; }</style></div>';
area && quick_reply.firstChild.appendChild(area);
data && quick_reply.firstChild.appendChild(data);
anchor.parentNode.insertBefore(quick_reply, anchor.nextSibling);
scripts = [
'http://illiweb.com/rs3/16/frm/jquery/cookie/jquery.cookie.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/jquery.sceditor.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/plugins/bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-commands.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-commands-bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/sceditor-custom-bbcode.js',
'http://illiweb.com/rs3/16/frm/SCEditor/src/instance-sceditor.js'
];
for (i = 0, j = scripts.length; i < j; i++) {
n = document.createElement('SCRIPT');
n.type = 'text/javascript';
n.src = scripts[i];
quick_reply.appendChild(n);
}
});
'par ange tuteur';
});