- BetaTester
- Mensajes : 96
Puntos : 178
Reputación : 68
Fecha de inscripción : 2016-09-08
Re: Probando :)
Mon Sep 12, 2016 6:58 pm
ndankdnaopnhdkalndlknaodnalda dahkdnaoijnd aajdopjaoidjaio ajdoiajdoihan jdakndkad aldnlad
test
test
Re: Probando :)
Tue Sep 13, 2016 5:50 pm
ok
- Code:
$(function() {
var forum_version = 1,
new_button = true,
quote_image = 'https://upload.vstanced.com/images/2016/09/01/KPF.png';
if (forum_version == 0) n = [".postbody div", ".name strong a"];
if (forum_version == 1) n = [".postbody .content div", ".postprofile dl dt strong a"];
if (forum_version == 2) n = [".entry-content div", ".username a"];
if (forum_version == 3) n = [".post-entry div", ".postprofile-details dt a + br + a"];
if (new_button == true) {
q = ".quickquote";
$(forum_version == 1 ? "li:has(.i_icon_quote)" : "a:has(.i_icon_quote)").after($('<li style="display:inline-block;list-style:none;"><a href="#quick_reply"><img src="' + quote_image + '" class="quickquote" alt="Quick quote" title="Select text and click on Quick quote button" /></a></li>'))
}
if (new_button == false) {
q = "a:has(.i_icon_quote)";
$("a:has(.i_icon_quote)").attr("href", "#quick_reply");
$(".i_icon_quote").attr("title", "Reply with quote")
}
$(document).on('mouseup', n[0], function(e) {
qtext = $(this).parents(".post");
if (window.getSelection) theSelection = window.getSelection().toString();
else if (document.getSelection) theSelection = document.getSelection();
else if (document.selection) theSelection = document.selection.createRange().text
});
$(q).click(function() {
if (typeof qtext == 'undefined') return;
uname = qtext.find(n[1]).text();
$("div.sceditor-toolbar + iframe").contents().find("body").append('<blockquote><cite>' + uname + '</cite>' + theSelection + '</blockquote> <br />');
$('.sceditor-container textarea')[0].value += '[quote="' + uname + '"]' + theSelection + '[/quote]'
});
var n, q;
$('.postprofile dt').each(function() {
var str = $(this).closest('.post').text();
str = str.trim();
var pn = Number(str.substr(1, 10)) - 1;
str = str.substr(11);
str = str.trim();
if (str.substr(0, 1) == "_") {
$('.post:eq(' + pn + ') .i_icon_quote,.post:eq(' + pn + ') .quickquote,.post:eq(' + pn + ') img[onclick*="MultiQuote"]').hide();
document.onselectstart = new Function('return false')
}
})
});
$(function() {
if (/\/t\d+/g.test(window.location.pathname)) {
var i, a = document.querySelectorAll('blockquote img');
for (i = 0; i < a.length; i++) {
var str = a[i].src;
if (str.indexOf('/smiles/') < 0) a[i].remove()
}
}
Re: Probando :)
Wed Sep 14, 2016 8:45 pm
Admin wrote:test
ok
Admin wrote:test
Admin wrote:18:38:40
test ok
Permissions in this forum:
You cannot reply to topics in this forum
|
|