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 December 24th 2014, 11:47 pm

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 December 25th 2014, 4:01 am

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 : 13028
Reputation : 2704
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 December 26th 2014, 12:11 am


JScript
Forumember

Male Posts : 741
Reputation : 168
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 December 26th 2014, 7:39 am

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 December 26th 2014, 7:59 am

This seems to be an Issue with phpBB2.

If you change your forum version to phpBB3, I've been using this code on twoforums 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 December 26th 2014, 2:16 pm

@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 : 168
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 December 27th 2014, 7:28 am

@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