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 19/11/2014, 03:26

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 19/11/2014, 04:12

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 : 13246
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 20/11/2014, 16:31

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 21/11/2014, 02:24

It works for me Shocked

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

Male Posts : 13246
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 21/11/2014, 23:33

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 22/11/2014, 00:40

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 : 13246
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 22/11/2014, 09:23

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 22/11/2014, 16:12

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_ 22/11/2014, 22:13

try clearing your browser cache
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
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 3/12/2014, 01:10

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 21/12/2014, 01:36

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 21/12/2014, 02:55

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 : 13246
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 21/12/2014, 14:42

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 21/12/2014, 14:51



Last edited by JScript on 21/12/2014, 16:02; 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 21/12/2014, 14:56

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 21/12/2014, 15:56

@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 25/12/2014, 03:03

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 29/12/2014, 13:43

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