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.

Remove message when posting

5 posters

Go down

In progress Remove message when posting

Post by angel_of_night November 19th 2014, 1:26 am

How to remove "Your message has been entered successfully" page?
Thanks
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by Ange Tuteur November 19th 2014, 2:12 am

Hello angel_of_night,

See if this works :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In all the pages
Paste the code below and submit :
Code:
$("meta[http-equiv='refresh'][content]:first").each(function(){window.location.href=$(this).attr("content").replace(/^.*;url=/,"")});
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night November 20th 2014, 2:31 pm

Works for posts, but not for topics. Can I have for topics as well? Very Happy
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by Ange Tuteur November 21st 2014, 12:24 am

It works for me Shocked

What forum version are you using ?
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night November 21st 2014, 9:33 pm

PHPBB2
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by Ange Tuteur November 21st 2014, 10:40 pm

Just so we're clear, you're talking of the message after creating a topic ? I made a test on phpbb2 and it went straight to the new topic.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by inallsorts November 22nd 2014, 7:23 am

Hi,

Remove the first code and try this code Instead. Place It In the JavaScript codes management as per Ange's post above.

Code:
if (/&p_vote=/.test(window.location)) history.go(-1);
;$("meta[http-equiv='refresh'][content]:first").each(function(){window.location.href=$(this).attr("content").replace(/^.*;url=/,"")});
avatar
inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night November 22nd 2014, 2:12 pm

Now neither of the codes doesn't work for some reason.
I keep seeing the 


Your message has been entered successfully.

Click here to view your message

Click here to return to the forum
 


When posting topics or posts Sad
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by _Twisted_Mods_ November 22nd 2014, 8:13 pm

try clearing your browser cache
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night December 2nd 2014, 11:10 pm

still doesnt work
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night December 20th 2014, 11:36 pm

bump
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by Ange Tuteur December 21st 2014, 12:55 am

Remove your current script that redirects, and see if this works :

Title : Your choice
Placement : In all the pages
Code:
(function() { for (var i=0,m=document.getElementsByTagName('META'); i<m.length; i++) if (/refresh/.test(m[i].httpEquiv)) window.location.href = window.location.protocol + '//' + window.location.host + m[i].content.replace(/^.*;url=(.*)/,'$1') })();
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night December 21st 2014, 12:42 pm

Nope didn't work...

Remove message when posting WFh40vG


I got the following scripts installed:

Spoiler:
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by JScript December 21st 2014, 12:51 pm



Last edited by JScript on December 21st 2014, 2:02 pm; edited 1 time in total (Reason for editing : New code link!)
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night December 21st 2014, 12:56 pm

Didn't work... >.<
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by JScript December 21st 2014, 1:56 pm

@angel_of_night

Okay, try this other:

In your ACP: Modules -> HTML&JAVASCRIPT -> JavaScript codes management -> [Create a new JavaScript]
Title *: <- Whatever you want
Placement : <- In all the pages
Javascript Code * : <- Select, copy and paste the code below in this field:
Code:

var aMeta = document.getElementsByTagName('meta'),
   index = 0,
   len = aMeta.length;
for (; index < len; index++) {
   if (aMeta[index].httpEquiv == "refresh") {
      location.href = aMeta[index].content.replace(/^.*;url=/, "");
   }
}
Then click in [Submit] button!

So long,

JS
JScript
JScript
Forumember

Male Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night December 25th 2014, 1:03 am

That script is quite unstable. Some times works, some times doesn't. I'd say works 50% of the times.
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night December 29th 2014, 11:43 am

Still not solved.
angel_of_night
angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

Back to top Go down

Back to top

- Similar topics

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