I find myself facing a dillem with a script that should work on all versions and I found the Portuguese media.
On version phpbb3 nothing to do he does not want to know anything,
I want to point out that I have no script to share it and my templates are blank.
The script in question:
- Code:
jQuery(document).ready(function(){var r='form';var k='#quick_reply';var t=jQuery('input[name="t"]').val();var p='/t'+t+'-';if(jQuery(k).length){var q=''}else{var q='<br><a href="'+p+'">Clique aqui</a> para voltar ao tópico.'};var s='<img src=http://2img.net/i/fa/admin/icones/big_ico/warning.png><br>É proibido fazer double post.'+q;if(jQuery('body#phpbb').length){var m='<div class=panel style=font-size:23px><span class=corners-top></span><center style=padding:5px>'+s+'</center><span class=corners-bottom></span></div>';var h='p.author'}else if(jQuery('table.bodylinewidth').length){var m='<table width=100%><tr><td align=center>'+s+'</td></tr></table>';var h='.name'}else{var m='<div class="main-content message box-content" style=text-align:center;padding:5px>'+s+'</div>';var h='.username'};if(jQuery(r+'[action="/post"]').length&&jQuery('input[name="mode"][value="reply"]').length){var g=jQuery('a.mainmenu#logout').text().split('[ ')[1].replace(/ ]/g,'');if(jQuery(k).length){jQuery.get('/post?t='+t+'&mode=reply',function(d){if(jQuery(h+':eq(0)',d).text().split(' em')[0].replace(' por ','')==g){jQuery(r+k).html(m)}})}else{if(jQuery(h+':eq(0)').text().split(' em')[0].replace(' por ','')==g){jQuery(r+'[action="/post"]').html(m)}}}});
The link to the trick:
http://ajuda.forumeiros.com/t57000-tutorial-anti-double-post#385380
thank you in advance
a++