[Tutorial] Anti double post
4 participantes
Página 1 de 1
[Tutorial] Anti double post
Esse sistema é para fórum que contem javascript e css por exemplo esse aqui u.u
vamos la, vá
insira esse código
- Spoiler:
- jQuery(document).ready([b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]function[/b](){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] r='form';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] k='#quick_reply';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b]t=jQuery('input[name="t"]').val();[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] p='/t'+t+'-';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery(k).length){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b]q=''}[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]else[/b]{[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] q='
+p+'">Clique aqui para voltar ao tópico.'};[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b]s='
É proibido fazer double post.'+q;[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery('body#phpbb').length){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] m='';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] h='p.author'}[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]else[/b][b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery('table.bodylinewidth').length){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] m=''+s+'
';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] h='.name'}[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]else[/b]{[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] m=' ';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b]h='.username'};[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery(r+'[action="/post"]').length&&jQuery('input[name="mode"][value="reply"]').length){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] g=jQuery('a.mainmenu#logout').text().split('[ ')[1].replace(/ ]/g,'');[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery(k).length){jQuery.[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]get[/b]('/post?t='+t+'&mode=reply',[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]function[/b](d){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery(h+':eq(0)',d).text().split(' em')[0].replace(' por ','')==g){jQuery(r+k).html(m)}})}[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]else[/b]{[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery(h+':eq(0)').text().split(' em')[0].replace(' por ','')==g){jQuery(r+'[action="/post"]').html(m)}}}});'+s+'
- jQuery(document).ready([b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]function[/b](){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] r='form';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] k='#quick_reply';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b]t=jQuery('input[name="t"]').val();[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] p='/t'+t+'-';[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]if[/b](jQuery(k).length){[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b]q=''}[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]else[/b]{[b class="kwd" style="margin: 0px; padding: 0px; color: rgb(0, 102, 153); font-size: 14px; font-weight: bold;"]var[/b] q='
pronto e acabo o código,a outra coisa,quando você for marca coloque em toda as paginas
KURIZZARD²- Membro
- Mensagens : 238
Re: [Tutorial] Anti double post
Ótimo tutorial só faltou o crédito do criado
Forumeiros
Agora vamos ver o que o Lincoln acha sobre isso...
+1 Crédito.
Agora vamos ver o que o Lincoln acha sobre isso...
+1 Crédito.
Re: [Tutorial] Anti double post
Pois é,vamos ver o que o nosso senhor lincoln fala sobre isso
KURIZZARD²- Membro
- Mensagens : 238
Re: [Tutorial] Anti double post
Eu tenho 30 javascript no fórum, se eu for colocar
esse anti Double post, ele conflita com meus javascripts
e complica tudo.
então prefiro ficar sem. rsrs '
esse anti Double post, ele conflita com meus javascripts
e complica tudo.
então prefiro ficar sem. rsrs '
Lincoln- Membro
- Mensagens : 125
Re: [Tutorial] Anti double post
Primeiro não terá um sistema de doble post, pois é permitido double post, caso seja uma novidade ou algo do gênero.
Ricardo- Mensagens : 1044
Re: [Tutorial] Anti double post
Ricardo escreveu:Primeiro não terá um sistema de doble post, pois é permitido double post, caso seja uma novidade ou algo do gênero.
é , o ricardo está acerto,
até porque depois de 24hrs um "UP", não é considerado Double post... isso complicaria nesse aspecto.
Lincoln- Membro
- Mensagens : 125
Re: [Tutorial] Anti double post
Mais nem é isso e se o cara quiser dar uma novidade de ultima hora,.
Ricardo- Mensagens : 1044
Re: [Tutorial] Anti double post
Ele edita o seu ultimo comentário,isso ficara ate por 24 horas,ou depois que alguém comentar o tópico
KURIZZARD²- Membro
- Mensagens : 238
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Dom 08 Abr 2018, 18:40 por JorgeZinhoo002
» Ojkjeeeee
Seg 10 Out 2016, 23:19 por Frozen
» Naruto Great Ninja Batle
Dom 09 Out 2016, 14:29 por GuiinhoLP
» Recrutamento de um Designer para jogo de CDZ.
Sex 23 Set 2016, 18:37 por newbie123
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:11 por Eduardo
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:11 por Eduardo
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:09 por Eduardo
» Projeto Dbz
Qua 31 Ago 2016, 23:46 por 157
» Avaliação - Sprites Naruto
Qua 31 Ago 2016, 17:09 por 157
» [Sprites] DBZ (Plix)
Qua 31 Ago 2016, 14:13 por 157
» Super Pack - Bleach V.2
Qua 31 Ago 2016, 13:02 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:04 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:03 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:02 por 157
» [Pedido] Contador de resets na FrmMain
Sáb 13 Ago 2016, 17:45 por killers97
» [Recrutamento]
Qua 10 Ago 2016, 23:09 por Monsters
» Ajuda erro no Cliente e Servidor do EEB 2.6!
Qua 20 Jul 2016, 19:53 por Binholx
» Como criar tilesets para Eclipse Origins 3.0 (POKÉMON)
Qua 29 Jun 2016, 19:46 por Sir Aaron
» Recursos Pokemons
Qua 29 Jun 2016, 19:34 por Sir Aaron
» erro frm flash
Qua 25 maio 2016, 13:51 por vava123
» Pedido - Pack de star wars
Qui 19 maio 2016, 05:06 por edsonpet
» [Ajuda] Sobre como por o servidor on por ip fixo
Ter 17 maio 2016, 16:14 por vava123
» Illusion Dimension - O Misterio do ID: BETA TESTE ONLINE
Sex 06 maio 2016, 20:02 por LksFlorencio
» [NSME] Naruto Shinobi Maker Engine
Qua 23 Mar 2016, 15:11 por luana1457
» Script /base,/casa Igual DBZ Forces
Dom 21 Fev 2016, 07:34 por JorgeZinhoo002
» [Pedido]Colar Tsunade item sprite eclipse origin
Qui 21 Jan 2016, 07:38 por lawllietbr
» [Pedido] Elysium
Sáb 19 Dez 2015, 11:31 por luana1457
» Naruto - Recruta
Ter 15 Dez 2015, 18:40 por Uchiha ~
» [Avaliação] - Kirito from Sword Art Online; Red and Pikachu from Pokemon.
Qua 25 Nov 2015, 13:43 por Thanakii
» [Avaliação] - Kenpachi Zaraki from Bleach; Libra Shiryu From Saint Seiya.
Qua 25 Nov 2015, 12:55 por Thanakii
» Demonstração de Sprites (Á VENDA!)
Qua 25 Nov 2015, 12:40 por Thanakii
» [Sistema de Reset]Para Eclipse .
Ter 24 Nov 2015, 16:51 por VithorUchi
» Cada Guild Nascer em Certo Mapa
Qui 12 Nov 2015, 06:13 por fabiofeijó_HIT
» Dragon Ball z Fusion A Grande Volta
Qui 29 Out 2015, 15:17 por fabiofeijó_HIT
» Ajuda com Ip fixo
Seg 26 Out 2015, 16:07 por GalaxyHells15
» Como Fazer um GUI no Eclipse Origins
Dom 18 Out 2015, 22:10 por Jeanleee
» Shisui Susanoo
Dom 18 Out 2015, 20:23 por Jeanleee
» Fantasy Art Online
Dom 18 Out 2015, 16:41 por daviih123
» Ajuda !!
Seg 05 Out 2015, 12:13 por andersonzika
» como passar o usuário e senha para o MainMenu?
Seg 28 Set 2015, 22:03 por Bëzerk
» Ru time ero 13 Type mismatch
Seg 28 Set 2015, 09:08 por andredarle
» Jarvis 1.3 Download
Qua 23 Set 2015, 18:42 por soares125
» [Avaliação/Disponibilização]Árvore 64x64
Qua 23 Set 2015, 15:15 por Over~
» Mlk's Zikas Signatures
Ter 22 Set 2015, 21:15 por Aikawa Reborn'
» Pedido de Sistemas
Dom 20 Set 2015, 18:05 por cleyton_05
» [AjudaEEB]Gerador de EXP
Qua 16 Set 2015, 14:04 por Over~
» [Avaliar] Base, Humano e Goblin.
Seg 14 Set 2015, 22:51 por .iBlaz3.
» Fabrica do Tio Cronos!
Dom 13 Set 2015, 21:31 por [ADM]Cronos
» [PixelArt] Minion - Meu malvado favorito
Dom 13 Set 2015, 12:51 por [ADM]Cronos
» [Avaliar] Goku Dragon Ball Z
Qua 05 Ago 2015, 21:36 por Setrux