The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Reply without page change bug

    Tonight
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    In progress Reply without page change bug

    Post by Tonight 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
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    In progress Re: Reply without page change bug

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

    Bump!
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Reply without page change bug

    Post by Ange Tuteur 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 ?
    Tonight
    Tonight
    Forumember


    Male Posts : 312
    Reputation : 80
    Language : Estonian, English, Russian
    Location : Estonia

    In progress Re: Reply without page change bug

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

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


    Male Posts : 19436
    Reputation : 2010
    Language : fluent in dork / mumbojumbo & English haha

    In progress Re: Reply without page change bug

    Post by Ape 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



    Reply without page change bug Left1212Reply without page change bug Center11Reply without page change bug Right112
    Reply without page change bug Ape_b110
    Reply without page change bug Ape1010

      Current date/time is November 14th 2024, 12:03 pm