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 remove "your message has been send"

View previous topic View next topic Go down

In progress How to remove "your message has been send"

Post by Infamous✔ on Wed 24 Dec 2014 - 17:47

Thanks, also a new question how do I remove this:

Enlarge this image

I don't want it, I want it to automatically leave a post. thanks.

Infamous✔
New Member

Male Posts : 13
Reputation : 1
Language : English
Location : Rekamu

http://rekamu.gameproforums.com

Back to top Go down

In progress Re: How to remove "your message has been send"

Post by Ange Tuteur on Wed 24 Dec 2014 - 22:01

Hello @Infamous✔,

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
Forumaster

Male Posts : 13038
Reputation : 2718
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: How to remove "your message has been send"

Post by JScript on Thu 25 Dec 2014 - 18:11


JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: How to remove "your message has been send"

Post by Infamous✔ on Fri 26 Dec 2014 - 1:39

Wierd, it didn't work.

Infamous✔
New Member

Male Posts : 13
Reputation : 1
Language : English
Location : Rekamu

http://rekamu.gameproforums.com

Back to top Go down

In progress Re: How to remove "your message has been send"

Post by inallsorts on Fri 26 Dec 2014 - 1:59

This seems to be an Issue with phpBB2.

If you change your forum version to phpBB3, I've been using this code on two forums and works without fail.

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=/,"")});

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

Back to top Go down

In progress Re: How to remove "your message has been send"

Post by JScript on Fri 26 Dec 2014 - 8:16

@Infamous✔ wrote:Wierd, it didn't work.

I'm trying to understand how this or other code posted here do not work for you!
See my code running in the browser console in a phpBB2 forum:

Observe what was marked!

@inallsorts wrote:This seems to be an Issue with phpBB2.
And what would this issue?!
There are no differences in this part of HTML, see image below phpBB2 version and compare with other versions:


Edit:
Make a new test with the code below with placement in all pages:
Code:

var _bodyExist = setInterval(function() {
   if (document.getElementsByTagName("body") !== null) {
      clearInterval(_bodyExist);
      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=/, "");
         }
      }
   }
}, 25);

JS

JScript
Forumember

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

http://jscript.forumeiros.com/

Back to top Go down

In progress Re: How to remove "your message has been send"

Post by inallsorts on Sat 27 Dec 2014 - 1:28

@JScript wrote:
@inallsorts wrote:This seems to be an Issue with phpBB2.
And what would this issue?!
There are no differences in this part of HTML, see image below phpBB2 version and compare with other versions:




JS

This Issue being the JavaScript code not taking effect (In this case), In the OP's forum version being phpBB2. Explain why the JS doesn't work?

It's a simple equation, change the forum version to phpBB3 and the problem's solved Smile

inallsorts
Forumember

Posts : 246
Reputation : 8
Language : English

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