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.

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

View previous topic View next topic Go down

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

Post by vkitkat on 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

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 on 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
Active Poster

Male Posts : 1389
Reputation : 164
Language : English, Tagalog
Location : Republic of the Philippines

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 on March 31st 2013, 4:30 am

No, it didn't work.


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™ on March 31st 2013, 5:41 am

Hi,

I don't think you're able to remove this, but has been suggested:
http://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.');
      }
    });
  });
});



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

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

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