Boas-vindas ao Power Pixel

Junte-se a comunidade! Crie o seu próprio conteúdo, e faça amizades.EntrarCriar uma conta

Štronda Štronda  • Qua 24 Abr 2013 - 2:07

Štronda Štronda  • Qua 24 Abr 2013 - 22:33

Štronda Štronda  • Qui 25 Abr 2013 - 23:28

Dalas_4I20 Dalas_4I20  • Sex 26 Abr 2013 - 3:51

Štronda Štronda  • Sex 26 Abr 2013 - 8:53

Daemon Daemon  • Sex 26 Abr 2013 - 9:29

[ ajuda ] mudar o botao curtir de lugar Empty Re: [ ajuda ] mudar o botao curtir de lugar Sex 26 Abr 2013 - 9:29

Pra isso vc precisara mudar o seu script e adicionar outro...
Crie um novo JS sem investimento... adicione este código:
Código:
function lglike(b,a){var d=a.innerHTML;a.innerHTML="Loading...";a.onclick="#";$.get(b,function(){a.className+=" LGnovote";a.innerHTML=d;var c=a.nextSibling,b=parseInt(/\d+/.exec(c.innerHTML)[0])+1;c.innerHTML=c.innerHTML.replace(/\d+/,b)})};

function init_lg_like_system() {
    var x = $('.vote');
    for (var i = 0, l = x.length; i < l; i++) {
        var vote = x[i],
            count = 0,
            plus = 0;
        var bar = $('.vote-bar', vote)[0];
        var button = $('.vote-button', vote)[0];
        if (bar) {
            var info = bar.title.match(/\d+/g);
            count = info[0];
            var percent = info[1];
            plus = Math.round(parseInt(percent) * parseInt(count)) / 100;
        }
        button = button ? '<span onclick="lglike(\'' + button.firstChild.href + '\',this);" class="LGlike">' + vote_singular + '</span>' : '<span class="LGlike LGnovote">' + vote_singular + '</span>';

        var votes_text = '<span class="LGlikecount">' + plus + ' ' + (plus == 1 ? vote_singular : vote_plural) + '</span>';

        if (like_version === 'phpbb3' || like_version === 'PHPBB3') {
            $('.corners-bottom', vote.parentNode.parentNode)
         .before('<div class="LGvote" style="margin:3px">' + button + votes_text + '</div>');
        } else if (like_version === 'invision' || like_version === 'Invision' || like_version === 'INVISION') {
            $(vote.parentNode.parentNode.parentNode.nextSibling.lastChild)
         .prepend('<li><div class="LGvote">' + button + votes_text + '</div></li>');
        } else if (like_version === 'punbb' || like_version === 'PUNBB') {
            $('.post-entry', vote.parentNode.parentNode.parentNode.parentNode)
         .before('<div class="LGvote" style="float:right;">' + button + votes_text + '</div>');
        }
          else if (like_version === 'PHPBB2' || like_version === 'phpbb2') {
            $('td.post tr:last')
         .append('</br></br><div class="LGvote" style="margin:3px">' + button + votes_text + '</div>');
        }
    }
    x.remove();
};

if (DOM_IS_READY == true) {
    init_lg_like_system();
} else {
    $(function () {
        init_lg_like_system();
    });
}

Depois de criar esse JS. Pegue o link dele e adicione no lugar do link da bestskins(https://bestskins.forumeiros.com/26249.js).
Código:
var like_version = 'punbb';
var DOM_IS_READY = false;
$(function(){DOM_IS_READY=true;});
var vote_singular = 'Curtir';
var vote_plural = 'Curtiram isso';
$.getScript('http://bestskins.forumeiros.com/26249.js');
Wink'

Štronda Štronda  • Sex 26 Abr 2013 - 9:45

Conteúdo patrocinado  • 

[ ajuda ] mudar o botao curtir de lugar Empty Re: [ ajuda ] mudar o botao curtir de lugar

Permissões neste sub-fórum
Não podes responder a tópicos