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.
The forum of the forums
4 posters

    How to remove "your message has been send"

    Infamousâś”
    Infamousâś”
    New Member


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

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

    Post by Infamousâś” December 24th 2014, 11:47 pm

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

    Enlarge this image
    How to remove "your message has been send" Captur10
    I don't want it, I want it to automatically leave a post. thanks.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

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

    Post by Ange Tuteur 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=/,"")});
    JScript
    JScript
    Forumember


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

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

    Post by JScript December 26th 2014, 12:11 am

    Infamousâś”
    Infamousâś”
    New Member


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

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

    Post by Infamousâś” December 26th 2014, 7:39 am

    Wierd, it didn't work.
    avatar
    inallsorts
    Forumember


    Posts : 246
    Reputation : 8
    Language : English

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

    Post by inallsorts 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 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=/,"")});
    JScript
    JScript
    Forumember


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

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

    Post by JScript 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:
    How to remove "your message has been send" EOmqkqF
    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:
    How to remove "your message has been send" PCY3cAx

    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
    avatar
    inallsorts
    Forumember


    Posts : 246
    Reputation : 8
    Language : English

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

    Post by inallsorts 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:
    How to remove "your message has been send" PCY3cAx



    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

      Current date/time is November 12th 2024, 12:38 am