Web Design
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[Tutorial] Quote sem mudança de página

Ir para baixo

[Tutorial] Quote sem mudança de página  Empty [Tutorial] Quote sem mudança de página

Mensagem por Migas Sex Fev 28, 2014 1:34 pm


[Tutorial] Quote sem mudança de página  N9XlGn3

Quote sem mudança de página




--> Tutoriais, dicas e astúcias <--
Quote sem mudança de página  



- Conheça o código:
PunBB:
Código:
$(function () {
$('a[href*="mode=quote"]').click(function () {
var nPost = $(this).closest('.post').find('a').first().attr('name');
var pathname = window.location.protocol + "//" + window.location.host + "" + window.location.pathname;
var link = $(this).attr('href');
$.get(link , function (a) {
var text = $(a).find('#text_editor_textarea[name="message"]').val();
$("#text_editor_textarea").sceditor('instance').insertText(''+text+' [url='+pathname+'#'+nPost+']Quote do post: '+nPost+'[/url]');
});
$('body').stop().animate({
scrollTop: $('#quick_reply').offset().top
}, 1500);
return false;
});
});

PunBB3:
Código:
$(function () {
$('a[href*="mode=quote"]').click(function () {
var nPost = $(this).closest('.post').find('.inner div').first().attr('id');
var pathname = window.location.protocol + "//" + window.location.host + "" + window.location.pathname;
var link = $(this).attr('href');
$.get(link , function (a) {
var text = $(a).find('#text_editor_textarea[name="message"]').val();
$("#text_editor_textarea").sceditor('instance').insertText(''+text+' [url='+pathname+'#'+nPost+']Quote do post: '+nPost+'[/url]');
});
$('body').stop().animate({
scrollTop: $('#quick_reply').offset().top
}, 1500);
return false;
});
});

Invision:
Código:
$(function () {
$('a[href*="mode=quote"]').click(function () {
var nPost = $(this).closest('.post').find('.postdetails div').first().attr('id');
var pathname = window.location.protocol + "//" + window.location.host + "" + window.location.pathname;
var link = $(this).attr('href');
$.get(link , function (a) {
var text = $(a).find('#text_editor_textarea[name="message"]').val();
$("#text_editor_textarea").sceditor('instance').insertText(''+text+' [url='+pathname+'#'+nPost+']Quote do post: '+nPost+'[/url]');
});
$('body').stop().animate({
scrollTop: $('#quick_reply').offset().top
}, 1500);
return false;
});
});

PunBB2:
Código:
$(function () {
$('a[href*="mode=quote"]').click(function () {
var nPost = $(this).closest('.post').first().attr('id').split('p')[1];
var pathname = window.location.protocol + "//" + window.location.host + "" + window.location.pathname;
var link = $(this).attr('href');
$.get(link , function (a) {
var text = $(a).find('#text_editor_textarea[name="message"]').val();
$("#text_editor_textarea").sceditor('instance').insertText(''+text+' [url='+pathname+'#'+nPost+']Quote do post: '+nPost+'[/url]');
});
$('body').stop().animate({
scrollTop: $('#quick_reply').offset().top
}, 1500);
return false;
});
});


- Onde colocar o código
Primeiro iremos aceder ao Painel de controle [Tutorial] Quote sem mudança de página  1337678750 Módulos [Tutorial] Quote sem mudança de página  1337678750 HTML & JAVASCRIPT [Tutorial] Quote sem mudança de página  1337678750 Gestão dos códigos JavaScript [Tutorial] Quote sem mudança de página  1337678750Crie um novo.


- Resoltado:
[Tutorial] Quote sem mudança de página  YuHhcNb




© Web Design


[Tutorial] Quote sem mudança de página  Cyoocvq Se tiver alguma dúvida relacionada com este tópico crie um tópico com o seguinte título:
Quote sem mudança de página
Migas
Migas
Moderador
Moderador

Mensagens : 23
Reputação : 7
Barra de respeito às regras : [Tutorial] Quote sem mudança de página  11101010

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

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