Remove message when posting Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
5 posters

    Remove message when posting

    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

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


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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 ?
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    In progress Re: Remove message when posting

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

    PHPBB2
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

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


    Posts : 246
    Reputation : 8
    Language : English

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


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    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
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    In progress Re: Remove message when posting

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

    try clearing your browser cache
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    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

    In progress Re: Remove message when posting

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

    bump
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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') })();
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    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:
    JScript
    JScript
    Forumember


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

    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!)
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    In progress Re: Remove message when posting

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

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


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

    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
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    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

    In progress Re: Remove message when posting

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

    Still not solved.