Reply without page change bug
3 posters
Page 1 of 1
Reply without page change bug
Forum version: phpBB3
Script:
- Code:
$(document).ready(function(){
$('.button2[name="post"]').click(function(d){
d.preventDefault();
$.post("/post",$('#quick_reply').serialize()+"&post=1&prevent_post=1",function(b){
b=b.substring(b.indexOf('<meta http-equiv="refresh" content="1;url=')+42,b.indexOf('<meta name="title"')-2);
$(".post:last").after('<div style="display: none;" class="ajax_post"></div>'),$(".ajax_post:last").load(b+" .post:last",function(){
$('.ajax_post').slideDown(500);
$('.sceditor-container > textarea').val('');
});
});
});
});
It used to work flawlessly, but recently it has started to bug a lot.
Bug: If I post by quick reply, message is sent, but you can't see it. New post used to pop by slide, now it just gets stuck. I can see the message, when I manually refresh the page.
Is there a solution for this problem?
Tonight- Forumember
- Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia
Tonight- Forumember
- Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia
Re: Reply without page change bug
Hi Tonight,
I took a look at the code, but wasn't able to come to a solution. Where exactly did you find this script ?
I took a look at the code, but wasn't able to come to a solution. Where exactly did you find this script ?
Re: Reply without page change bug
I'm not sure actually. I've been using it since 2012/early 2013.
Tonight- Forumember
- Posts : 312
Reputation : 80
Language : Estonian, English, Russian
Location : Estonia
Re: Reply without page change bug
I think i had that same code some time back and it stopped working after the update of the editor so i removed it but i can't think of where i got it from now lol most of the time i add to the top of the code this so i know where it come from ( // Name of forum // Name of the code )
But as i have removed it that text would have been removed aswell
But as i have removed it that text would have been removed aswell
Similar topics
» Reply without page change problem
» How do we change the reply input box colour?
» User Cannot Scroll Page + Sudden Page Format Change
» Quick reply without page refresh!!!
» Smiley button on the New Topic/Reply page?
» How do we change the reply input box colour?
» User Cannot Scroll Page + Sudden Page Format Change
» Quick reply without page refresh!!!
» Smiley button on the New Topic/Reply page?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum