Форум
Тестовая категория
Форум | Тем | Сообщений | Последнее сообщение |
---|---|---|---|
Тестовый форумПример простого форума |
1 | 1 | Тестовое сообщение 2022-05-03 00:07:45 - Administrator |
';
var flg = true;
var elem = $(pst).find('.post-content');
if (!elem.length) elem = $(pst).find('dd,ul');
if (+$(pst).attr('data-group-id') == 3 || (pst.id == 'post-preview' && GroupID == 3)) flg = false;
$('.code-box', pst).html(function(){return this.innerHTML.replace(/([\[\]])/g,'$1')});
var lnk = window.ScriptsURL + '/html_in_posts/1.0.9/i/frame.html',
attr = ' scrolling="auto" frameborder="0" vspace="0" hspace="0" width="100%" height="0" allowfullscreen';
attr += ' sandbox="allow-same-origin allow-top-navigation allow-forms allow-scripts allow-popups"';
var cnt = elem.html(),
reg = new RegExp(' |' + String.fromCharCode(160), 'gim'),
reg2 = /(?:)([\s\S]*?)(?:<\/a>)/mgi;
cnt = cnt.replace(/\[html\]([\s\S]*?)\[\/html\]/mgi, function(str, Sk) {
var s = '--';
if (!$.trim(Sk).length) s = flg = '';
if (!!flg) s = Sk;
s = s.replace(/ /mgi, '\n\n');
s = s.replace(reg2, function(str, p1) {
return p1.replace(/^http\:\/\/(?:.*?)click\.php\?/mgi, '')
});
s = s.replace(/</mgi, '<').replace(/>/mgi, '>').replace(/"/gm, '"').replace(/&/gm, '&');
s = encodeURIComponent(s);
var id = 'html_frame' + Math.random().toString().substr(6);
HTMLinPost.frameData[id] = s;
var frame = '';
return (StrStart + (flg ? frame : s) + StrEnd)
});
elem.html(cnt);
$(pst).find('p:empty').filter(function() {
return $(this).text() == ''
}).remove();
};
if (GroupID != 3) FORUM.set('editor.addition.tags.html', {
name: function(text, lang_obj, lang) {
return (lang == 'ru' || !(lang_obj[text] && lang_obj[text][lang])) ? text : lang_obj[text][lang]
}('HTML â ñîîáùåíèÿõ', {'HTML â ñîîáùåíèÿõ' : {en: 'HTML in posts'}}, $('html')[0].lang),
onclick: function() {
bbcode('[html]','[/html]');
}
});
$(document).pun_mainReady(function() {
HTMLinPost.font = $('.post-content:first').css('font');
HTMLinPost.lnk = ($('link#change-style').length ? $('link#change-style') : $('head link[rel="stylesheet"]:first'))[0].href;
HTMLinPost.html = '';
$('#html-header').find('style,link[rel="stylesheet"]').each(function() {
HTMLinPost.html += $(this).clone().wrap('
/mgi, '\n').replace(reg, ' ').replace(/<\/p>[\s\S]*?
Royal Voyage |
Привет, Гость! Войдите или зарегистрируйтесь.
Вы здесь » Royal Voyage
Форум | Тем | Сообщений | Последнее сообщение |
---|---|---|---|
Тестовый форумПример простого форума |
1 | 1 | Тестовое сообщение 2022-05-03 00:07:45 - Administrator |
Вы здесь » Royal Voyage
Каталог ролевых игр · Создать ролевую игру · ЖивыеРолевые © 2017