Anti double post
5 posters
Page 1 of 1
Anti double post
Hi to all of you,
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:
The link to the trick:
http://ajuda.forumeiros.com/t57000-tutorial-anti-double-post#385380
thank you in advance
a++
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++
Re: Anti double post
Hello !
On my forum, don't work..
But i find a script for PHPBB2 and PHPBB 3
On ACP > Modules > Javascript
And put that
And on your CSS
(Source: http://forum.forumactif.com/t347281-phpbb-agreger-les-doubles-post)
Have a nice day
On my forum, don't work..
But i find a script for PHPBB2 and PHPBB 3
On ACP > Modules > Javascript
And put that
- Code:
$(function() {
var c = "", a, d = 0, b = 0;
$("div.post").each(function() {
var e = $(".postprofile dt", this).text();
e != c ? (d++, b++, a = $(this), b % 2 != d % 2 && a.toggleClass("row1 row2"), c = e) : (b++, $(a).find("div.signature_div").remove(), $("div.postbody", a).append($("div.postbody", this).attr("class", "doublepost").attr("id", $(this).attr("id").replace(/^p([0-9]+)$/, "$1"))), $(this).remove())
});
var f = location.hash;
location.hash = "";
location.hash = f
});
And on your CSS
- Code:
.doublepost { border-top: 1px solid #888888 }
(Source: http://forum.forumactif.com/t347281-phpbb-agreger-les-doubles-post)
Have a nice day
Re: Anti double post
Hi,
sorry but this does not correspond to my request, but thank you .
Hou , tu es français ?
J'ai déjà recherché sur le support Français car je donne de mon temps sur ce forum
a++
sorry but this does not correspond to my request, but thank you .
Hou , tu es français ?
J'ai déjà recherché sur le support Français car je donne de mon temps sur ce forum
a++
Re: Anti double post
Hi!
Whenever there's an update in the platform, some old tutorials might have a few problems.
So, there are a few possible causes that you might need to pay attention too. Please, could you send me your forum URL so I can see if there's any JS that could be causing this error (conflict)?
And please, add this JS:
Let it activated (unless of course it causes a huge unexpected impact on your forum which probably won't be the case)
Regards,
Ace.
Whenever there's an update in the platform, some old tutorials might have a few problems.
So, there are a few possible causes that you might need to pay attention too. Please, could you send me your forum URL so I can see if there's any JS that could be causing this error (conflict)?
And please, add this JS:
- Code:
jQuery(document).ready(function() { if(jQuery('.pun-crumbs p.crumbs a:eq(3)').attr('href') != '/f999-'){ 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)}}} } });
Let it activated (unless of course it causes a huge unexpected impact on your forum which probably won't be the case)
Regards,
Ace.
Re: Anti double post
I Ace,
thanks for the advice .
This is for the PunBB and not Phpbb3
a++
thanks for the advice .
Whenever there's an update in the platform, some old tutorials might have a few problems.
Milouze14 wrote:
On version phpbb3 nothing to do he does not want to know anything,
So, there are a few possible causes that you might need to pay attention too. Please, could you send me your forum URL so I can see if there's any JS that could be causing this error (conflict)?
Milouze14 wrote:
I want to point out that I have no script to share it and my templates are blank.
And please, add this JS:
This is for the PunBB and not Phpbb3
- Code:
jQuery(document).ready(function() { if(jQuery('.pun-crumbs p.crumbs a:eq(3)').attr('href') != '/f999-')
a++
Re: Anti double post
Are you referring to this tutorial: https://help.forumotion.com/t136448-phpbb-aggregate-double-posts?highlight=double ? It will work on phpBB 2 and 3.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Anti double post
I ,
no it's is :
http://ajuda.forumeiros.com/t57000-tutorial-anti-double-post#385380
the trick is to force the member edit his subject rather than answer .
I will wait Ange Tuteur because he will understand my request.
English and me, this is the ideal .
Thank you .
no it's is :
http://ajuda.forumeiros.com/t57000-tutorial-anti-double-post#385380
the trick is to force the member edit his subject rather than answer .
I will wait Ange Tuteur because he will understand my request.
English and me, this is the ideal .
Thank you .
Re: Anti double post
Have you checked the official French support forum for this tutorial?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Anti double post
Yes ,
There are no tutorial on French support, the trick comes from the Portuguese media
a++
There are no tutorial on French support, the trick comes from the Portuguese media
a++
Re: Anti double post
Sometimes if a code is in a foreign language that your forum is not set to, the code will not work.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Anti double post
Hi,
This script have a lot of error in tags (class=aaa> or style=font-size:14px;color:#fff>..
But, this script don't work sorry
This script have a lot of error in tags (class=aaa> or style=font-size:14px;color:#fff>..
But, this script don't work sorry
Re: Anti double post
Hi there,
Sorry it took me so long. I asked a friend for a help on this one to make it available to all versions again. A big thanks to MateusAnjosV who helped a lot!
So let's get to the code shall we? It should work in PHPBB3, PHPBB2, PUNBB and Invision. (Add it in a JS page)
About the message:
This is the part that you can edit. It supports HTML so you can make awesome tables, images and so on.
It's also important to go to your Admin CP >> Display >> Pics management >> Buttons >> Reply to topic >> Hide.
Important: This is not a foolproof solution . Nor it is hard to avoid it. But it should get the job done. This script will only work in the quick reply. I'm already working to make a better version of this code.
Best Regards.
Sorry it took me so long. I asked a friend for a help on this one to make it available to all versions again. A big thanks to MateusAnjosV who helped a lot!
So let's get to the code shall we? It should work in PHPBB3, PHPBB2, PUNBB and Invision. (Add it in a JS page)
- Code:
$(function(){
var phpbb2 = $('.row2[valign="top"][width="150"]');
if($('.post:eq('+phpbb2.length+')').find('.name').text() == _userdata["username"]){
$('#quick_reply').html('<center><img src="http://icons.iconarchive.com/icons/aha-soft/free-3d-glossy-interface/64/abort-icon.png" alt="No double post"><br><br><b>It is forbidden to double post - please click the edit button</b></center>');
}
else if($('.post:last-of-type').find('.username').text() == _userdata["username"]){
$('#pun-qpost').html('<center><img src="http://icons.iconarchive.com/icons/aha-soft/free-3d-glossy-interface/64/abort-icon.png" alt="No double post"><br><br><b>It is forbidden to double post - please click the edit button</b></center>');
}
else if($('.post:last').find('.postprofile dl dt strong a span strong').text() == _userdata["username"]){
$('#quick_reply').html('<center><img src="http://icons.iconarchive.com/icons/aha-soft/free-3d-glossy-interface/64/abort-icon.png" alt="No double post"><br><br><b>It is forbidden to double post - please click the edit button</b></center>');
}
else if($('.post:last').find('.postprofile dl dt a span strong').text() == _userdata["username"]){
$('#quick_reply').html('<center><img src="http://icons.iconarchive.com/icons/aha-soft/free-3d-glossy-interface/64/abort-icon.png" alt="No double post"><br><br><b>It is forbidden to double post - please click the edit button</b></center>');
} else {
console.log('Forbidden Double Post - Coded by: MateusAnjosV - Translated & Optimized by: Ace - It is not a double post')
};
});
console.log('Forbidden Double Post - Coded by: MateusAnjosV - Translated & Optimized by: Ace');
About the message:
- Code:
<center><img src="http://icons.iconarchive.com/icons/aha-soft/free-3d-glossy-interface/64/abort-icon.png" alt="No double post"><br><br><b>It is forbidden to double post - please click the edit button</b></center>
This is the part that you can edit. It supports HTML so you can make awesome tables, images and so on.
It's also important to go to your Admin CP >> Display >> Pics management >> Buttons >> Reply to topic >> Hide.
Important: This is not a foolproof solution . Nor it is hard to avoid it. But it should get the job done. This script will only work in the quick reply. I'm already working to make a better version of this code.
Best Regards.
Re: Anti double post
Hi Ace,
sorry for the delay ,
the script matches my request but unfortunately does not work well,
actually it works fine in Firefox but in chrome it is ineffective.
Thank you a lot.
a ++
sorry for the delay ,
the script matches my request but unfortunately does not work well,
actually it works fine in Firefox but in chrome it is ineffective.
Thank you a lot.
a ++
Re: Anti double post
Milouze14 wrote:Hi Ace,
sorry for the delay ,
the script matches my request but unfortunately does not work well,
actually it works fine in Firefox but in chrome it is ineffective.
Thank you a lot.
a ++
Hi,
Are you sure? I have tested it in Chrome all along. Clean your cookies and cache and retry. If it is still ineffective, please, send me your forum URL so I can check if another JS is interfering. (and please, let the codes activated)
Regards.
Re: Anti double post
hoo I'm sorry
for the trouble I had only seen the tip concerned only the quick response .
I am going to take this tip.
thanks a lot for your help
Enjoy the rest of the evening
a++
for the trouble I had only seen the tip concerned only the quick response .
I am going to take this tip.
thanks a lot for your help
Enjoy the rest of the evening
a++
Re: Anti double post
Milouze14 wrote:hoo I'm sorry
for the trouble I had only seen the tip concerned only the quick response .
I am going to take this tip.
thanks a lot for your help
Enjoy the rest of the evening
a++
Hi,
No problem. I'm already working in a solution to block the reply itself and I'll probably just create a topic in the coding zone when it's done.
Regards.
Similar topics
» aggregate double-posts double-loads pages hides favicon
» Double post problem
» Advertising poster phpBB3 & Invision
» Automerge Double Post
» This is a double post Get a new password doesn't work
» Double post problem
» Advertising poster phpBB3 & Invision
» Automerge Double Post
» This is a double post Get a new password doesn't work
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum