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.

Remove message when posting

View previous topic View next topic Go down

In progress Remove message when posting

Post by angel_of_night on November 19th 2014, 1:26 am

How to remove "Your message has been entered successfully" page?
Thanks

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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night on November 20th 2014, 2:31 pm

Works for posts, but not for topics. Can I have for topics as well? Very Happy

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 on November 21st 2014, 12:24 am

It works for me Shocked

What forum version are you using ?

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

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

PHPBB2

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 on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

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

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 on 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

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_ on November 22nd 2014, 8:13 pm

try clearing your browser cache

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
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 on December 2nd 2014, 11:10 pm

still doesnt work

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 on December 20th 2014, 11:36 pm

bump

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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Remove message when posting

Post by angel_of_night on December 21st 2014, 12:42 pm

Nope didn't work...




I got the following scripts installed:

Spoiler:

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

Code:
//copyright 2012 NLG nextlevelgaming
$(document).ready(function() {
    var $NLG = $('.post td span a');
    $NLG.filter(':contains("KiLlerWiLd")').closest('td').removeClass('row1 row2').next('td').removeClass('row1 row2').closest('tr').addClass('manager');  
    $NLG.filter(':contains("kennymister333")').closest('td').removeClass('row1 row2').next('td').removeClass('row1 row2').closest('tr').addClass('manager');
      $NLG.filter(':contains("Metanolo")').closest('td').removeClass('row1 row2').next('td').removeClass('row1 row2').closest('tr').addClass('manager');
    $NLG.filter(':contains("Inwe_Telrunya")').closest('td').removeClass('row1 row2').next('td').removeClass('row1 row2').closest('tr').addClass('manager');
    $NLG.filter(':contains("FireChrist")').closest('td').removeClass('row1 row2').next('td').removeClass('row1 row2').closest('tr').addClass('manager');
    $NLG.filter(':contains("erikwillke")').closest('td').removeClass('row1 row2').next('td').removeClass('row1 row2').closest('tr').addClass('manager');
  });

Code:
$(function(){
 if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
});

Code:
jQuery(document).ready(function(){  

jQuery('.profile_field').each(function(){
    var color = jQuery(this).find('.label span').css('color');
    if (color != 'rgb(164, 164, 166)' ){
      jQuery(this).addClass('filtered_profile_field');
}
});


});

Code:
// Avatar in index by mastersly phpbb2
$(document).on('ready', function() {
    $('.forumline tr .row3.over').prepend('<div class="avatar-index"><div>');
    $('.forumline tr .row3.over .avatar-index').each(function () {
        var profileUser = $(this).parent().children('span').children('span').children('strong').children('a').attr('href');
        $(this).html('<a href="' + profileUser + '" class="avatar-index-enlace"><img src="https://i.imgur.com/10ncR5R.png" alt="No Avatar" /></a>');
        $(this).children('a').load(profileUser + ' .forumline .row1.gensmall[align="center"]:eq(0) img:eq(0)');
    });
});

Code:
window.localStorage&&$(function(){
$(function(){
if($("#text_editor_textarea").length&&typeof $.sceditor!="undefined"){
var a=$(document.post.mode).val(),
d=$("#text_editor_textarea").sceditor("instance"),
e,f,g=function(){
localStorage.setItem(a,d.val());
f=0},
b=JSON.parse(localStorage.getItem("br-data"))||[],c;
switch(a){
case"editpost":return;
case"reply":a+=$(document.post.t).val();
break;
case"newtopic":a+=$(document.post.f).val()
}
a=parseInt((my_getcookie("fa_"+location.hostname.replace(/\./g,"_")+"_data")||"0").replace(/.*s:6:"userid";(i:([0-9]+)|s:[0-9]+:"([0-9]+)");.*/,"$2$3"))+a;
-1!=(c=$.inArray(a,b))&&b.splice(c,1);
if(20<b.length){
for(c=b.length-1;0<=c;c--)/^\s*$/.test(localStorage.getItem(b[c])||"")&&(localStorage.removeItem(b[c]),
b.splice(c,1));
20<b.length&&(localStorage.removeItem(b[0]),
b.splice(0,1))}b.push(a);
localStorage.setItem("br-data",JSON.stringify(b));
$(document.post).submit(function(){
localStorage.setItem("br-target",a)
});
!d.val()&&((e=localStorage.getItem(a))&&d.val(e));
d.keyUp(function(){
f||(f=setTimeout(g,3E3))
})}})});
window.localStorage&&(localStorage.getItem("br-target")&&function(){
$("meta[http-equiv='refresh'][content]:first").length&&function(){
var a=JSON.parse(localStorage.getItem("br-data")),
b=localStorage.getItem("br-target"),c;
if(-1!=(c=$.inArray(b,a)))a.splice(c,1),
localStorage.setItem("br-data",JSON.stringify(a));
localStorage.removeItem(b)}();
localStorage.removeItem("br-target")}());

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 on 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!)

JScript
Forumember

Male Posts : 741
Reputation : 167
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 on December 21st 2014, 12:56 pm

Didn't work... >.<

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 on 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

JScript
Forumember

Male Posts : 741
Reputation : 167
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 on 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
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 on December 29th 2014, 11:43 am

Still not solved.

angel_of_night
Forumember

Female Posts : 565
Reputation : 10
Language : portuguese

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