Skipping 'Your message has been entered'
Posted October 30th 2011, 1:14am
While moderating defence.pk/forums I had been quiet accustomed to vbulletin standards...thus I attempted somehow to skip this naughty & awful page namely 'Your message has been entered''return to index'
While reading Example 14 this sentence caufght my attention.
Scripts can access the URL of the current page in several ways. The simplest is the document.URL property, which returns the complete URL of the current page. This is useful if you are unsure of the complete URL (such as on pages with user input).


I don't know what Dion implied, but this word (user-input) must include the input of text-editor, so indirectly it means its possible to remove sorry skip that awful page.

Though I ain't very successful as of now; but atleast after entering their message user don't have to click 'return to index' every time...as they are redirected automatically using this snippet. This also occurs while sending PMs

@phpbb3
$('.button2[name=post]').replaceWith('<input type="submit" value="Send" class="button2" name="post" onClick="window.location.reload()" />');


will there be any adverse affects if this ; gurus here must explain. Any more reading plz provide sources

regards;;
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted October 30th 2011, 7:32am
Do you have the code for PunBB?
φ
Posts: 71
Joined: October 14th 2011, 11:00pm
Location: CompuTalks
Likes Given: 1
Skipping 'Your message has been entered'
Posted October 30th 2011, 7:42am
The 'posted successfully' page has an auto redirect on it anyway.

You'll need to know how a form sends data to the server, and what happens server side when the form is submitted. Only recently have i actually managed this.
φ
Posts: 509
Joined: July 9th 2011, 11:00pm
Location: England
Likes Given: 15
Likes Received: 26
1
#4
Skipping 'Your message has been entered'
Posted October 30th 2011, 11:09am
Use mine, it works for all boards Image
$(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()}
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Skipping 'Your message has been entered'
Posted October 30th 2011, 11:37am
That method is actually pretty good thinking. A simple solution outside the box :)
I mean its only for quick reply, but still a nice idea.
φ
Posts: 509
Joined: July 9th 2011, 11:00pm
Location: England
Likes Given: 15
Likes Received: 26
Skipping 'Your message has been entered'
Posted October 30th 2011, 11:43am
I added it to JS and picked in topics and it didn't work :(
φ
Posts: 71
Joined: October 14th 2011, 11:00pm
Location: CompuTalks
Likes Given: 1
Skipping 'Your message has been entered'
Posted October 30th 2011, 12:05pm
@Raze: It should work for quick reply :(
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Skipping 'Your message has been entered'
Posted October 30th 2011, 12:06pm
well atleast this thread invoked some ideas..thnx zero for sharing yours
However using with firefox 3.6, your method gives this alert

Image

such isn't happening in chrome/opera ...works flawlessly :D

any ideas to get rid of popup
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted October 30th 2011, 12:10pm
It seems to be reloading before it has finished sending. Pormpting the message stating 'if you reload, it will mean resending'

Try increasing the time before the window reloads, by changing '1000' in the setTimeout function.
Thay way it can finish sending before reloading.
φ
Posts: 509
Joined: July 9th 2011, 11:00pm
Location: England
Likes Given: 15
Likes Received: 26
Skipping 'Your message has been entered'
Posted October 30th 2011, 12:49pm
@Zero: Is there anywhere else I can put the code where it would work.
φ
Posts: 71
Joined: October 14th 2011, 11:00pm
Location: CompuTalks
Likes Given: 1
Skipping 'Your message has been entered'
Posted October 30th 2011, 12:54pm
Put is in the JS Management and tick "In the topics", It should work because I have fully tested it on all the boards. And one more thing, go to the General >> Security >> Flood control. Delay between 2 messages, topics or private messages by a user >> 10 secs
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Skipping 'Your message has been entered'
Posted October 31st 2011, 4:15am
You can use this. If somebody wants to send empty messages or length less of 2 characters, alert will say "Post must be at least two characters!"
   textareaval = $('#text_editor_textarea').val();

    if(textareaval.length < 2) {
          alert('Post must be at least two characters!');
    }


φ
Posts: 37
Joined: August 27th 2011, 11:00pm
Location: Србија/Serbia
Likes Given: 4
Likes Received: 2
Skipping 'Your message has been entered'
Posted November 1st 2011, 3:38pm
Zero said:
$(function(){$("form#quick_reply input[name='post']").click(function(){$('').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()}


This is a great little script for the bypass, the only issue with it is that if 2 users load a topic page and write a quick reply separately one submitting before the other. The second users post will not be posted, since the "Another message has been posted" page is also bypassed. This can be an issue for those posting long messages in a quick reply and losing it all.
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted November 2nd 2011, 9:52am
ion-cube said:
well atleast this thread invoked some ideas..thnx zero for sharing yours
However using with firefox 3.6, your method gives this alert

Image

such isn't happening in chrome/opera ...works flawlessly :D

any ideas to get rid of popup

do the following:
GO to Tools->Options->Advanced->Network
UNCHECK "Tell me when a Website asks to store ...
OR
ADD the Website that has the problem as an EXCEPTION
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted November 2nd 2011, 12:24pm
@Paul: I knew that issue before, btw use at your own risk Image
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Skipping 'Your message has been entered'
Posted November 2nd 2011, 12:33pm
@Paul: This too will occur if the messages are separated by 10-12sec
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted November 3rd 2011, 1:10pm
I need assurances that this problem doesnt handicap Quickreplies with a duration of > 10sec
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted November 4th 2011, 5:29am
how about to skip this "Your vote has been cast."?
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted November 5th 2011, 3:55am
I need assurances that this problem doesnt handicap Quickreplies with a duration of > 10sec
φ
Posts:
Avatar
Guest
Skipping 'Your message has been entered'
Posted January 9th 2012, 10:08am
@Zero: very useful script
φ
Posts: 16
Joined: October 3rd 2011, 11:00pm
Location: india
Likes Given: 18

Who is online

Users browsing this forum: No registered users and 1 guest