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.

How to make a quicker quick reply by deleting confirmation page?

3 posters

Go down

In progress How to make a quicker quick reply by deleting confirmation page?

Post by vkitkat March 31st 2013, 4:18 am

So, you probably know that when you use quick reply, there's a confirmation page that says 'Message Successful' or whatever the status is.

How do you get rid of the confirmation page to create a more sleek, fast, and easier quick reply?

I'm still a bit rusty on all the Javascript, HTML, and all those kinds of things because I'm a bit new to this, so I'd prefer you try to make a really simple and understandable explanation/direction(s) Smile
avatar
vkitkat
New Member

Female Posts : 24
Reputation : 1
Language : English

Back to top Go down

In progress Re: How to make a quicker quick reply by deleting confirmation page?

Post by E-Mark March 31st 2013, 4:20 am

Give this a try.
Go to ACP > Modules > HTML and Javascript > Javascript Management > Create new > *Check* In the Topics

Code:

$(function(){$("form#quick_reply input[name='post']").click(function(){$('<iframe name="replyreload" height="0px" width="0px" frameborder="0"></iframe>').insertBefore('form#quick_reply');$('form#quick_reply').attr('target','replyreload');$('form#quick_reply').submit(function(){var t=setTimeout("fmreply()",1000);});});});function fmreply(){window.location.reload()}


Last edited by E-Mark on March 31st 2013, 4:57 am; edited 1 time in total
E-Mark
E-Mark
Active Poster

Male Posts : 1412
Reputation : 169
Language : English
Location : Bitcoin

http://coding-spot.darkbb.com/

Back to top Go down

In progress Re: How to make a quicker quick reply by deleting confirmation page?

Post by vkitkat March 31st 2013, 4:30 am

No, it didn't work.

avatar
vkitkat
New Member

Female Posts : 24
Reputation : 1
Language : English

Back to top Go down

In progress Re: How to make a quicker quick reply by deleting confirmation page?

Post by Sir Chivas™ March 31st 2013, 5:41 am

Hi,

I don't think you're able to remove this, but has been suggested:
https://help.forumotion.com/t103263-option-to-turn-off-your-post-has-been-successful-page

Try this:
Code:
$(function() {
  $('#quick_reply input[name=post]').click(function(e) {
    e.preventDefault();
    $.post('/post', $('#quick_reply').serialize() + '&post=hack', function(data) {
      if (/Click here to view your message/.test(data)) {
        location.reload();
      } else {
        alert('An error occurred, please try again.');
      }
    });
  });
});
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6983
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Back to top

- Similar topics

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