Staff en línea

Página 2 de 2. Precedente  1, 2

[beta] All ajax plugin: Borrar, responder, citar, borrar y previsualizar sin cambiar de página
Tema iniciado por y Añadir a favoritos

staff


Última edición por Chalo el Sáb Nov 12, 2016 12:13 pm, editado 13 veces
Recuerdo del primer mensaje :

[codebox]
Este es mi plugin más ambicioso ¿de que se trata? bueno todo en los temas es ajax, es decir, citar, editar, responder, borrar los temas y previsualizar. Esta escrito de una forma que no hace lento el foro, usando al minimo jQuery, con callbacks más eficientes, esta diseñado para trabajar con todas las versiones, ojo en los templetes que tengan los selectores por default, si hay con skin alterados, tendremos que adaptarlo si es el caso será en la sección de soporte, solo hay que copiarlo y pegarlo.

Claro como cualquier plugin puede tener algún detalle que pasara de alto por eso necesito que lo prueben, el css esta incluido, los textos son personalizables.

https://youtu.be/om5gjk_z9KQ
[/codebox]
[warning]Es necesario para que funcione adecuadamente que en el apartado de seguridad dentro del PA estén habilitados los formularios externos[/warning]

[info=Aviso]
demo en este foro:
http://codelab.sitio-web.org/t1p100-tu-primer-tema

user: betatester
pass: betatester
[/info]
Código:

console.log("//-----Written by Chalo ------- Open Source 2014-2016 -----//"),
console.log("//------------ http://www.opensourcephpbb3.com ------------//"),
console.log("//--------------------- Version: 1.5.1---------------------//"),
console.log("//Reply, preview, quote, delete and more, without reload  //");
var _ = {
    config: {
        beroreunload: 1,
        edit: 1,
        quote: 1,
        "delete": 1,
        preview: 1,
        reply: 1,
        vote: 0,
        vote_img: "http://i97.servimg.com/u/f97/19/54/65/02/th/68691610.png",
        placeholder: 1,
        words: 5,
        time: 3e3,
        speed: 400,
        color_a: "linear-gradient(to bottom, #ffff88 0%,#ffff88 100%)",
        color_b: "linear-gradient(to bottom, #ffaf4b 0%,#ff920a 100%)",
        color_c: "linear-gradient(to bottom, #87e0fd 0%,#53cbf1 40%,#05abe0 100%)",
        color_d: "linear-gradient(to bottom, rgba(255,26,0,0.5) 0%,rgba(255,26,0,0.5) 100%)",
        color_e: "linear-gradient(to bottom, #d2ff52 0%,#91e842 100%)",
        height: 250,
        img_close: "http://illiweb.com/fa/prosilver/icon_post_delete.gif",
        staff: [{
            name: "ok",
            bg_button: "https://i37.servimg.com/u/f37/19/54/26/00/accept11.png",
            bgc_post: "#effeb9",
            bg_post: "https://i37.servimg.com/u/f37/19/54/26/00/accept10.png",
            color: "green"
        }, {
            name: "info",
            bg_button: "https://i37.servimg.com/u/f37/19/54/26/00/info_c10.png",
            bgc_post: "#d1e4f3",
            bg_post: "https://i37.servimg.com/u/f37/19/54/26/00/info10.png",
            color: "blue"
        }, {
            name: "alert",
            bg_button: "https://i37.servimg.com/u/f37/19/54/26/00/warnin10.png",
            bgc_post: "#ffeaa9",
            bg_post: "https://i37.servimg.com/u/f37/19/54/26/00/01_war10.png",
            color: "brown"
        }, {
            name: "warning",
            bg_button: "https://i37.servimg.com/u/f37/19/54/26/00/error-11.png",
            bgc_post: "#fccac3",
            bg_post: "https://i37.servimg.com/u/f37/19/54/26/00/error-10.png",
            color: "red"
        }, {
            name: "tip",
            bg_button: "https://cdn4.iconfinder.com/data/icons/glyphs/24/icons_email-16.png",
            bgc_post: "#f2f2f2",
            bg_post: "https://www.iconfinder.com/data/icons/fugue/bonus/icons-32/mail.png",
            color: "#aaa"
        }],
        success_reply: "Tu mensaje ha sido publicado con éxito",
        flood: "El control del flood",
        newpost: "Un nuevo mensaje",
        too_long: "demasiado largo.",
        pm_error_a: "Debes especificar un nombre de usuario",
        pm_error_b: "no existe(n)",
        pm_error_c: "No puedes publicar otro tema tan rápido",
        pm_success: "Tu mensaje ha sido enviado"
    },
    lang: {
        success_reply: "Tu mensaje ha sido publicado con éxito",
        flood: "El control del flood está activado en este foro. Espera 10 segundos antes de responder o hacer un post.",
        newpost: "Un nuevo mensaje ha sido añadido mientras escribías el tuyo.",
        too_long: "El mensaje es demasiado largo.",
        error_reply: "Prueba de nuevo",
        reply_words: "Debes escribir ",
        reply_btn_send: "Enviando datos...",
        notice_default: "No hay mensaje definido",
        no_message: "Debes escribir un mensaje antes de publicar.",
        no_subject: "Debes especificar un título antes de publicar tu mensaje.",
        pm_error_a: "Debes especificar un nombre de usuario para enviar este mensaje",
        pm_error_b: "Este o estos usuario(s) no existe(n)",
        pm_error_c: "No puedes publicar otro tema tan rápido, por favor intenta nuevamente mas tarde.",
        pm_success: "Tu mensaje ha sido enviado",
        placeholder: "Escribe algo aquí...",
        edit_subject_placeholder: "La longitud del título del tema debe ser entre 10 y 255 carácteres",
        delete_main: "¿Deseas eliminar el post #",
        delete_yes: "Borrar",
        delete_cancel: "Cancelar",
        edit_mode: "Editando el post #",
        quote_mode: "Citando el post #",
        loading: "Cargando...",
        save: "Guardar",
        notice_wait: "Por favor, se paciente, se estan enviando los datos al servidor",
        vote: "like"
    },
    init: function () { _.isTheme = /\/t\d+/g.test(window.location.pathname), _.isPost = /\/post\?f=(\d+)&mode=(newtopic)/.test(window.location.href), _.isEditPost = /\/post\?p=(\d+)&mode=(editpost)/.test(window.location.href), _.isMP = /\/privmsg\?mode=(post|reply|edit)/.test(window.location.href), _.phpbb2 = _.e(".bodylinewidth").length, _.phpbb3 = _.e("#phpbb"), _.invision = _.e("#ipbwrapper"), _.punbb = _.e("#pun-intro"), _.subject = _.isTheme && _.e("h1")[0].textContent, _.body = _.e("body"), _.form = _.e("forms").post, _.b_r = _.form.post, _.b_r_v = _.form.post.value, _.textarea = _.form.message, _.text_a = _.e("textarea", _.form)[1], _.action = _.form.action, _.group = _.e(".sceditor-group")[0], _.rC = _.e(".sceditor-resize-cover")[0], _.bM = _.e(".sceditor-button-maximize"), _.fa = _.e("#fa_toolbar"), _.b_p = _.form.preview, _.b_p_v = _.b_p.value, _.url = _.isTheme ? "/post?t=" + _.form.t.value + "&mode=reply" : _.isPost && document.location.href, _.sceditor = $(_.textarea).sceditor("instance"), _.content = _.punbb ? ".entry-content" : _.phpbb3 ? ".content" : _.invision ? ".post-entry" : _.phpbb2 && ".postbody", _.a = _.e("a"), 1 == _.config.placeholder && (_.text_a.placeholder = _.lang.placeholder), 1 == _.config.beroreunload && _.bU(), 1 == _.config.vote && _.sV(), _.sc(), _.sB(_.a), _.isTheme && (_.sceditor.height(_.config.height), _.bbP()) }, sB: function (e) { var r, t = "_.g(this, 'quote');return false", o = "_.d(this);return false", a = "_.g(this,'edit');return false", s = "_.p(this, 'preview');return false", i = _.isMP ? "_.p(this, 'mp');return false" : "_.p(this, 'reply');return false"; for (r in e) 1 == _.config.quote && /(?!\&(mode)\=)(quote)/.test(e[r].href) && e[r].setAttribute("onclick", t), 1 == _.config["delete"] && /(?!\&(mode)\=)(delete)/.test(e[r].href) && e[r].setAttribute("onclick", o), 1 == _.config.edit && /(?!\&(mode)\=)(edit)/.test(e[r].href) && e[r].setAttribute("onclick", a); 1 == _.config.preview && _.b_p.setAttribute("onclick", s), 1 == _.config.reply && _.b_r.setAttribute("onclick", i) }, tC: function (e) { return _.punbb || _.phpbb3 ? _.e("a", _.e("h2", e)[0])[0] : _.invision ? _.e("a", _.e("h3", e)[0])[0] : _.phpbb2 && _.e(".postdetails", e)[1].childNodes[1] }, iT: function (e) { insertIntoEditor(e + "\n") }, g: function (e, t) { _.uU = "undefined" != typeof e.href ? e.href : e; var i, r, l, c, d, f, u, b, v, h, o = _.uU.match(/(?!\/post\?p=(\w+)\&mode=)(editpost|quote|vote)|viewtopic/)[0], a = _.pN(_.uU); f = _.e(".post--" + a), c = f[0], _.XML("", _.uU, function (s) { switch (h = s.responseXML, i = "vote" != o && h.forms.post.message.value, s = "vote" != o && h.forms.post.subject && h.forms.post.subject.value, o) { case "editpost": _.sT(c, { border: "1px solid orange" }), r = _.cl("input", { className: "inputbox medium edit_subject", placeholder: _.lang.edit_subject_placeholder, name: "subject", value: s, style: { display: "table", margin: "0 auto", width: "99%", marginBottom: "5px" } }), !_.e(".edit_subject").length && _.group.parentNode.insertBefore(r, _.group), _.vSave = _.e(".vote", c).length && _.e(".vote", c)[0].innerHTML, _.edit_subject = _.e(".edit_subject")[0], _.edit_subject.val = _.edit_subject.value, _.sceditor.val(i), _.b_r.setAttribute("onclick", "_.p(this, 'edit');return false"), _.edit_number = a, _.b_r.value = _.lang.save, _.nT(_.lang.edit_mode + a, _.config.color_b, "false"), _.sC(_.form, _.config.speed); break; case "quote": _.sC(_.form, _.config.speed), _.iT(i), _.nT(_.lang.quote_mode + a, _.config.color_a, "false"); break; case "viewtopic": d = _.e(".post--" + a, h)[0], _.cl(d, { style: { display: "none" }, innerHTML: _.parse(d.innerHTML) }), d.className += " new_ajax_post", "reply" == t && (_.sB(_.e("a", d)), _.sP(d)), "edit" == t && (b = _.e(_.content, d), v = b[0].innerHTML, _.e(_.content, c)[0].innerHTML = v, _.e(".vote", c).length && _.cl(_.e(".vote", c)[0], { innerHTML: _.vSave, style: { marginBottom: "20px", "float": "inherit", width: "auto" } }), _.edit_subject.val != _.edit_subject.value && (_.tC(c).textContent = _.edit_subject.value), _.edit_subject.remove(), _.b_r.setAttribute("onclick", "_.p(this, 'reply');return false"), _.fI(c, 500), _.sC(c, _.config.speed)), _.sceditor.val(""), _.dC("#000"), _.oC(!1), _.nT(_.lang.success_reply, _.config.color_e, "true"); break; case "vote": l = _.e("span", e.parentNode), u = parseInt(l[0].innerHTML) + parseInt(1), l.length && (l[0].innerHTML = u + " " + _.lang.vote + (1 == u ? "" : "s")), _.e("img", e)[0].style.opacity = ".3", e.removeAttribute("onclick"), e.removeAttribute("href") } }) }, p: function (e, t) { var o, a, s, i, n, c, d, p, f, g, u, m, b, v, h, y, w, x, T, B, x, C; f = "edit" == t && encodeURIComponent(_.sceditor.val()), T = "edit" == t && encodeURIComponent(_.edit_subject.value), _.url_post = "delete" == t ? e.href : _.form.action, _.uritexto = "reply" == t || "mp" == t ? _.sZ(_.form) + "&post=1&prevent_post=1" : "preview" == t ? _.sZ(_.form) + "&preview=Preview" : "delete" == t ? "&confirm=1" : "&subject=" + T + "&message=" + f + "&mode=editpost&p=" + _.edit_number + "&notify=on&&post=1&prevent_post=1", d = _.e(".new_ajax_post"), d.length && d[0].classList.remove("new_ajax_post"), B = _.sceditor.val(), B.length > 0 && B.match(/\w{2,}\b/g).length >= _.config.words || "delete" == t ? (_.isPost || _.isMP) && _.form.subject && _.form.subject.value.length >= 10 || "preview" == t || _.isEditPost || _.isTheme ? ("delete" != t && (e.value = "preview" == t ? _.lang.loading : _.lang.reply_btn_send, (_.isTheme || _.isPost && "preview" == t) && (_.oC(_.lang.loading), _.dC("#dededf")), "preview" == t ? _.cl(_.b_p, { style: { color: "#fff", background: _.config.color_d } }) : _.cl(_.b_r, { style: { color: "#fff", background: _.config.color_d } })), _.XML(_.uritexto, _.url_post, function (e) { n = e.responseXML, c = _.e(_.phpbb2 ? "#page-body" : "#main", n), g = _.e(_.content, n).length && _.e(_.content, n)[0], h = c.innerHTML, o = h.indexOf(_.config.success_reply), a = h.indexOf(_.config.flood), p = h.indexOf(_.config.newpost), v = h.indexOf(_.config.pm_error_b), y = h.indexOf(_.config.pm_error_c), w = h.indexOf(_.config.pm_success), x = h.indexOf(_.config.pm_error_a), C = h.indexOf(_.config.too_long), /mp/.test(t) ? x > 0 ? (_.nT(_.lang.pm_error_a, _.config.color_c, "true"), _.rF(_.b_r, _.b_r_v), _.dC("#000")) : v > 0 ? (_.nT(_.lang.pm_error_b, _.config.color_c, "true"), _.rF(_.b_r, _.b_r_v), _.dC("#000")) : y > 0 ? (_.nT(_.lang.pm_error_c, _.config.color_c, "true"), _.rF(_.b_r, _.b_r_v), _.dC("#000")) : w > 0 && (_.sceditor.val(""), _.rF(_.b_r, _.b_r_v), setTimeout(function () { document.location.href = "/privmsg?folder=inbox" }, 2e3)) : /(reply|edit)/.test(t) ? (_.vT(n), s = _.view_url, _.sT(_.b_r, { color: "#fff", background: _.config.color_d }), a > 0 ? (_.nT(_.lang.flood, _.config.color_b, "true"), _.rF(_.b_r, _.b_r_v), _.dC("#000")) : p > 0 ? (_.nT(_.lang.newpost, _.config.color_b, "true"), _.rF(_.b_r, _.b_r_v), _.dC("#000")) : 0 > o ? (_.nT(_.lang.error_reply, "", "true"), _.rF(_.b_r, _.b_r_v), _.dC("#000")) : _.isTheme ? ("undefined" != typeof s && _.g(s, t), _.nT(_.lang.notice_wait, _.config.color_c, "true"), _.rF(_.b_r, _.b_r_v)) : (_.oL(_.lang.loading), _.dC("#dededf"), setTimeout(function () { window.onbeforeunload = !1, document.location.href = s }, 2e3), _.rF(_.b_r, _.b_r_v))) : /preview/.test(t) ? !g || C > 0 ? (_.nT(_.lang.too_long, _.config.color_d, "true"), _.rF(_.b_p, _.b_p_v), _.oC(!1), _.dC("#000")) : (_.cP(), u = _.e(".preview_inner"), g && u.length && u[0].appendChild(g), g.innerHTML = _.parse(g.innerHTML), _.fI(g, 500), _.b_p.value = _.b_p_v, _.b_p.style.cssText = "") : /delete/.test(t) && (i = _.e(".post--" + _.pN(_.url_post)), b = _.e("#confirm_wrap"), m = _.e("#overlay"), i.length && (_.phpbb2 ? (_.fO(i[0].nextElementSibling, 500), _.fO(i[0], 500)) : _.fO(i[0], 500)), b && b.remove(), m && m.remove()) })) : (_.nT(_.lang.no_subject, _.config.color_d, "true"), _.rF(_.b_r, _.b_r_v), _.b_r.removeAttribute("style")) : (x = B.length > 0 && null != B.match(/\w{2,}\b/g) ? _.config.words - B.match(/\w{2,}\b/g).length : 5, _.nT(_.lang.reply_words + x + "palabra" + (1 >= x ? "" : "s") + " más", _.config.color_d, "true"), "reply" == t ? _.rF(_.b_r, _.b_r_v) : _.rF(_.b_p, _.b_p_v)) }, dC: function (e) { _.sceditor.css("body { color: " + e + "; }"), _.text_a.style.color = e }, sV: function () { var e, t, o, a, s, i, r, n, c, d, p, f = _.config.vote_img, u = (_.s, _.e(".vote")); for (e = 0; e < u.length; e++) r = u[e], t = _.e(".vote-button", r), o = t.length && _.e("a", t[0])[0], a = _.e(".vote-no-bar", r), s = _.e(".vote-bar", r)[0], p = t.length && t[0].parentNode, _.nv = _.e(".vote-bar", r).length && s.title.match(/(\d+)/g)[1], _.sT(r, { marginBottom: "20px", "float": "inherit", width: "auto" }), 1 == u[e].childNodes.length ? (_.cl(s, { className: "like", innerHTML: "", style: { "float": "right", display: "inline-block", lineHeight: "2" } }), n = _.cl("img", { src: f, style: { opacity: ".3", "float": "left" } }), c = _.cl("span", { className: "counter", innerHTML: _.nv + " " + _.lang.vote + (1 == _.nv ? "" : "s"), style: { marginLeft: "5px", "float": "right" } }), s.appendChild(n), s.appendChild(c)) : (d = o, _.cl(d, { className: "like", href: o.href, onclick: "_.g(this,'vote');return false", innerHTML: "", style: { "float": "right", display: "inline-block", lineHeight: "2", fontSize: "11px" } }), c = _.cl("img", { src: f }), d.appendChild(c), i = _.cl("span", { className: "counter", innerHTML: _.nv + " " + _.lang.vote + (1 == _.nv ? "" : "s"), style: { marginLeft: "5px", "float": "right" } }), d.appendChild(i), p.innerHTML = "", p.appendChild(d)) }, rF: function (e, t) { e.value = t, e.removeAttribute("style") }, oL: function (e) { var t = _.cl("div", { id: "overlay", style: { fontFamily: "arial", display: "none", position: "fixed", top: "0", left: "0", minHeight: "101%", width: "100%", backgroundColor: "rgba(0, 0, 0, .4)", zIndex: "999", color: "#fff", fontSize: "45px", textAlign: "center", lineHeight: "13" } }); "undefined" != typeof e && (t.textContent = e), _.body.appendChild(t), _.fI(t, 500) }, cP: function () { var e = _.cl("div", { id: "preview_content", style: { background: "#fff", left: "15%", position: "fixed", top: "10%", width: "70%", height: "65%", overflow: "auto", zIndex: "999", boxSshadow: "10px 10px 40px black", borderRradius: "3px", fontSize: "1.2em", padding: "10px", fontFamily: "Arial", textShadow: "0 1px 1px white", color: "#666" } }), t = _.cl("div", { className: "preview_inner", style: { textAlign: "justify", display: "inline-block", width: "100%" } }), o = _.cl("a", { id: "close", onclick: "_.cL('preview')", style: { "float": "right", cursor: "pointer" } }), a = _.cl("img", { src: _.config.img_close }); _.oL(), o.appendChild(a), e.appendChild(o), e.appendChild(t), _.body.appendChild(e) }, d: function (e) { var t, o, a, s, i; a = _.cl("div", { id: "confirm_wrap", style: { fontFamily: "arial", display: " inline-block", verticalAlign: "top", width: "auto", textAlign: "center", zIndex: "9999", padding: "7px 13px", position: "fixed", top: "35%", left: "30%" } }), s = _.cl("div", { id: "confirm_content", innerHTML: _.lang.delete_main + _.pN(e.href), style: { color: "#fff", marginBottom: "7px", paddingBottom: "5px", fontSize: "30px" } }), i = _.cl("div", { id: "confirm" }), t = _.cl("a", { id: "yes", className: "yes", href: e.href, onclick: "_.p(this, 'delete');return false", innerHTML: _.lang.delete_yes, style: { color: "#fff", textShadow: "0 -1px 0 rgba(0, 0, 0, 0.25)", background: "linear-gradient(to bottom, #62c462, #51a351)", borderColor: "#51a351 #51a351 #387038", display: "inline-block", padding: "4px 12px", marginBottom: "0", fontSize: "12px", lineHeight: "20px", textAlign: "center", verticalAlign: "middle", cursor: "pointer", textDecoration: "none" } }), o = _.cl("a", { id: "cancel", onclick: "_.cL('delete')", innerHTML: _.lang.delete_cancel, style: { marginLeft: "5px", color: "#fff", background: "linear-gradient(to bottom, #db5530 5%, #db1f1f 100%)", backgroundColor: "#db5530", textShadow: "0 1px 0 #854629", display: "inline-block", padding: "4px 12px", marginBottom: "0", fontSize: "12px", lineHeight: "20px", textAlign: "center", verticalAlign: "middle", cursor: "pointer", textDecoration: "none" } }), i.appendChild(t), i.appendChild(o), a.appendChild(s), a.appendChild(i), _.body.appendChild(a), _.oL() }, sP: function (e) { var t = _.punbb ? _.e(".topic")[0] : _.phpbb2 ? _.e(".catBottom")[0].parentNode.previousElementSibling : _.phpbb3 ? _.e("*bottomtitle")[0].previousElementSibling : _.invision && _.e(".topic-footer")[0].previousElementSibling; _.punbb ? t.appendChild(e) : t.parentNode.insertBefore(e, t.nextSibling), _.sC(e, _.config.speed), _.fI(e, 500) }, XML: function (e, t, o) { var a; a = window.XMLHttpRequest ? new XMLHttpRequest : window.ActiveXObject && new ActiveXObject("Microsoft.XMLHTTP"), "undefined" != typeof e ? a.open("POST", t) : a.open("GET", t, !0), a.responseType = "document", a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.send("undefined" != typeof e ? e : ""), a.onreadystatechange = function () { 4 == this.readyState && 200 == this.status && o(this) } }, sZ: function (e) { var t, o, a, s, i = []; if ("object" == typeof e && "FORM" == e.nodeName) for (s = e.elements.length, o = 0; s > o; o++) if (t = e.elements[o], t.name && !t.disabled && "file" != t.type && "reset" != t.type && "submit" != t.type && "button" != t.type) if ("select-multiple" == t.type) for (a = e.elements[o].options.length - 1; a >= 0; a--) t.options[a].selected && (i[i.length] = encodeURIComponent(t.name) + "=" + encodeURIComponent(t.options[a].value)); else("checkbox" != t.type && "radio" != t.type || t.checked) && (i[i.length] = encodeURIComponent(t.name) + "=" + encodeURIComponent(t.value)); return i.join("&").replace(/%20/g, "+") }, nT: function (e, t, o) { var a, s, i, n, l; n = _.e(".notice_reply"), s = _.group, i = s.parentNode, l = _.cl("div", { className: "notice_reply", style: { height: "20px", lineHeight: "1.5", borderRadius: "3px", textShadow: "0 1px rgba(255, 255, 255, 0.46)", textAlign: "center" } }), a = n.length ? n[0] : l, _.cl(a, { innerHTML: "undefined" == typeof e ? _.lang.notice_default : e, style: { background: "undefined" == typeof t || "" == t ? _.config.color_a : t } }), !n.length && i.insertBefore(a, s), _.fI(a, 500), "false" != o && setTimeout(function () { "" == a.style.display && _.fO(a, 500) }, _.config.time) }, fI: function (e, t) { var o, a; e && (_.sT(e, { opacity: 0, filter: "alpha(opacity=0)", display: "", visibility: "visible" }), t ? (o = 0, a = setInterval(function () { o += 50 / t, o >= 1 && (clearInterval(a), o = 1), _.sT(e, { opacity: o, filter: "alpha(opacity=" + 100 * o + ")" }) }, 50)) : _.sT(e, { opacity: "1", filter: "alpha(opacity=1)" })) }, fO: function (e, t) { if (e) if (t) var o = 1, a = setInterval(function () { o -= 50 / t, o > 0 || (clearInterval(a), o = 0, _.sT(e, { display: "none", visibility: "hidden" })), _.sT(e, { opacity: o, filter: "alpha(opacity=" + 100 * o + ")" }) }, 50); else _.cl(e, { opacity: 0, filter: "alpha(opacity=0)", display: "none", visibility: "hidden" }) }, cL: function (e) { var t = _.e("delete" == e ? "#confirm_wrap" : "#preview_content"), o = _.e("#overlay"); _.fO(t, 500), _.fO(o, 500), setTimeout(function () { t.remove(), o.remove() }, 600), _.rC.style.display = _.rC.style.display = "none", "preview" == e && _.dC("#000") }, sC: function (e, t, o, a) { t = t || 500, a = a || window; var s = e.clientHeight < 150 ? 2 * e.clientHeight : e.clientHeight < 300 ? e.clientHeight : e.clientHeight > 400 && "", i = a.scrollTop - s || window.pageYOffset - s; if ("number" == typeof e) var r = parseInt(e); else var r = _.gT(e, i); var n = Date.now(), l = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (e) { window.setTimeout(e, 15) }, s = function () { var c = Date.now() - n; a !== window ? a.scrollTop = _.pS(i, r, c, t) : window.scroll(0, _.pS(i, r, c, t)), c > t ? "function" == typeof o && o(e) : l(s) }; s() }, bU: function () { var e = _.sceditor; e && (window.onbeforeunload = function () { return e.val().length ? "" : void 0 }) }, oC: function (e) { _.cl(_.rC, { innerHTML: 0 != e ? e : "", style: { display: 0 != e ? "block" : "none", color: "#fff", fontSize: "20px", lineHeight: "12", textAlign: "center" } }) }, bbP: function () { var e, t = _.e(".post"), o = t.length; for (e = 0; o > e; e++) t[e].innerHTML = _.parse(t[e].innerHTML) }, parse: function (e) { var o, t, a, s, i, r, n, l, c, t = _.config.staff, d = "text-align: justify;padding: 8px 8px 8px 40px;min-height: 20px;margin-top: 5px; font-size: 14px; font-style: initial; width: 90.5%; margin-left: 14px;display:block;line-height: 1.6;text-shadow: 0 1px rgba(255, 255, 255, 0.68);border-radius: 5px;"; _.compreg = [], _.bbhtml = []; for (o in t) a = t[o].name, r = t[o].bg_post, n = t[o].color, c = t[o].bgc_post, l = '<span class="' + a + '" style="background: url(' + r + ") no-repeat 6px " + c + ";border:1px solid " + n + ";color:" + n + ";" + d + '">$1</span>', s = "[" + a + "]", i = "[/" + a + "]", _.compreg.push(_.reg(s, i)), _.bbhtml.push(l); var p = _.compreg, f = _.bbhtml; for (o in p) e = e.replace(p[o], f[o]); return e }, sE: function () { $.sceditor && toolbar && (_.opts = $.sceditor.defaultOptions, _.opts.id = "fm_sceditor", _.opts.autoUpdate = !0, _.opts.autofocus = !0, _.opts.autoExpand = !0, _.bS()) }, bS: function () { if ($.sceditor && toolbar && _.config.staff.length && _userdata.user_level > 0) { _.trp = []; var e, t, o, s = _.config.staff, t = (s.length, []); for (e in s) o = s[e].name, _.trp.push(o), t.push(function (e) { $.sceditor.command.set(e, { exec: function () { this.insertText("[" + e + "]", "[/" + e + "]") }, txtExec: function () { this.insertText("[" + e + "]", "[/" + e + "]") }, tooltip: "Mod tool " + e }) }); for (e in t) t[e](s[e].name) } toolbar = _userdata.user_level > 0 ? toolbar.replace(/source/, "maximize,source|" + _.trp.join()) : toolbar.replace(/source/, "maximize,source") }, sc: function () { if (_.bM.length && (_.bM[0].onclick = function () { _.fa && (_.sceditor.maximize() && _.fO(_.fa, 500), !_.sceditor.maximize() && _.fI(_.fa, 500)) }), _userdata.user_level > 0) { var e, t, o; e = _.config.staff, t = e.length; for (o in e) _.e("div", _.e(".sceditor-button-" + e[o].name)[0])[0].style.backgroundImage = "url(" + e[o].bg_button + ")" } }, eC: function (e) { return .5 > e ? 4 * e * e * e : (e - 1) * (2 * e - 2) * (2 * e - 2) + 1 }, pS: function (e, t, o, a) { return e + (t - e) * _.eC(o / a) }, gT: function (e, t) { return "HTML" === e.nodeName ? -t : e.getBoundingClientRect().top + t }, vT: function (e) { var t, o = _.e("a", e); for (t in o) /\/viewtopic/g.test(o[t].href) && (_.view_url = o[t].href) }, rE: function (e) { return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&") }, reg: function (e, t) { var o; return o = "g", e = _.rE(e), t = _.rE(t), new RegExp(e + "(.*?)" + t, o) }, pN: function (e) { return e.match(/viewtopic/) ? e.match(/(\w+)$/g)[0] : e.match(/[\p\=](\w+)(?=\&)/)[1] }, cl: function (e, t) { var o = 1 == e.nodeType ? e : document.createElement(e); if (t) { for (var a in t) "style" != a && (o[a] = t[a], /^on/.test(a) && o.setAttribute(a, t[a])); t.style && _.sT(o, t.style) } return o }, sT: function (e, t) { if ("string" == typeof e && (e = _.e(e)), e.style) for (var o in t) e.style[o] = t[o]; return this }, e: function (e, t) { switch (t = "undefined" != typeof t ? t : document, e.charAt(0).match(/\W/) ? e.charAt(0) : e) { case "#": return t.getElementById(e.substr(1)); case ".": return t.getElementsByClassName(e.substr(1)); case "*": return t.getElementsByName(e.substr(1)); case "body": return t.body; case "head": return t.head; case "forms": return t.forms; default: return t.getElementsByTagName(e) } }};$(function () { _.sE(), $(function () { (document.getElementById("logout") && /\/t\d+/g.test(window.location.pathname) || /\/post/.test(window.location.pathname) || /\/privmsg\?mode=(post|reply|edit)/.test(window.location.href)) && _.init() })});


conforme surjan las dudas podemos dejarlo perfecto

Chalo
avatar

¿Que estoy pensando? :

Bienvenidosss!!! [table class=fecha_up][td]Se modifico:11/01/18 - 12:23 hrs. [/td][/table]


Banner en temas :

https://orig00.deviantart.net/2c56/f/2016/271/3/4/overwatch___mccree___facebookcover_by_beanousme-da03g04.jpg


Color de titulos :

#fff


Sombra titulo :

0 0 1px #000


Mensajes :

6513


Puntos :

8544


Me gusta :

984


ingreso :

17/04/2014


Sexo :

Masculino

Plataforma :

phpbb3


Navegador :

chrome


Ver perfil de usuario http://www.opensourcephpbb3.com

Volver arriba Ir abajo

staff
[ok]Actualizada[/ok]
Chalo
avatar

¿Que estoy pensando? :

Bienvenidosss!!! [table class=fecha_up][td]Se modifico:11/01/18 - 12:23 hrs. [/td][/table]


Banner en temas :

https://orig00.deviantart.net/2c56/f/2016/271/3/4/overwatch___mccree___facebookcover_by_beanousme-da03g04.jpg


Color de titulos :

#fff


Sombra titulo :

0 0 1px #000


Mensajes :

6513


Puntos :

8544


Me gusta :

984


ingreso :

17/04/2014


Sexo :

Masculino

Plataforma :

phpbb3


Navegador :

chrome


Ver perfil de usuario http://www.opensourcephpbb3.com

Volver arriba Ir abajo

staff
[info]actualizado este es el mejor de todos los que he hecho[/info]
Chalo
avatar

¿Que estoy pensando? :

Bienvenidosss!!! [table class=fecha_up][td]Se modifico:11/01/18 - 12:23 hrs. [/td][/table]


Banner en temas :

https://orig00.deviantart.net/2c56/f/2016/271/3/4/overwatch___mccree___facebookcover_by_beanousme-da03g04.jpg


Color de titulos :

#fff


Sombra titulo :

0 0 1px #000


Mensajes :

6513


Puntos :

8544


Me gusta :

984


ingreso :

17/04/2014


Sexo :

Masculino

Plataforma :

phpbb3


Navegador :

chrome


Ver perfil de usuario http://www.opensourcephpbb3.com

Volver arriba Ir abajo

Merci Chalo pour ce partage.
fascicularia
avatar

¿Que estoy pensando? :

Escribe lo que tienes en mente [table class=fecha_up][td]Se modifico:10/7/15 - 15:25 hrs.[/td][/table]


Banner en temas :

http://davesgarden.com/guides/pf/thumbnail.php?image=2006/10/11/Calif_Sue/aad8bf.jpg


Color de titulos :

green


Sombra titulo :

1px 1px 1px #fff


Mensajes :

162


Puntos :

193


Me gusta :

21


ingreso :

20/01/2016


Sexo :

Femenino

Plataforma :

PhpBB2


Navegador :

Opera


Ver perfil de usuario

Volver arriba Ir abajo

staff
@fascicularia just remember change all config words in your language
Chalo
avatar

¿Que estoy pensando? :

Bienvenidosss!!! [table class=fecha_up][td]Se modifico:11/01/18 - 12:23 hrs. [/td][/table]


Banner en temas :

https://orig00.deviantart.net/2c56/f/2016/271/3/4/overwatch___mccree___facebookcover_by_beanousme-da03g04.jpg


Color de titulos :

#fff


Sombra titulo :

0 0 1px #000


Mensajes :

6513


Puntos :

8544


Me gusta :

984


ingreso :

17/04/2014


Sexo :

Masculino

Plataforma :

phpbb3


Navegador :

chrome


Ver perfil de usuario http://www.opensourcephpbb3.com

Volver arriba Ir abajo

 En la misma categoria


Permisos de este foro:
No puedes responder a temas en este foro.