The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Reply without page change bug

View previous topic View next topic Go down

In progress Reply without page change bug

Post by Tonight on October 27th 2014, 10:31 pm

grrr!!!!!
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

Male Posts : 240
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

In progress Re: Reply without page change bug

Post by Tonight on October 30th 2014, 11:19 am

Bump!

Tonight
Forumember

Male Posts : 240
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

In progress Re: Reply without page change bug

Post by Ange Tuteur on October 31st 2014, 7:41 pm

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 ?

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Reply without page change bug

Post by Tonight on November 1st 2014, 12:45 am

I'm not sure actually. I've been using it since 2012/early 2013.

Tonight
Forumember

Male Posts : 240
Reputation : 63
Language : Estonian, English, Russian
Location : Estonia

Back to top Go down

In progress Re: Reply without page change bug

Post by APE on November 1st 2014, 5:30 pm

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 Sad





APE
Manager
Manager

Male Posts : 8314
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum