Thanks
5 posters
Remove message when posting
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°1
Remove message when posting
How to remove "Your message has been entered successfully" page?
Thanks
Thanks
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°2
Re: Remove message when posting
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 :
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- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°3
Re: Remove message when posting
Works for posts, but not for topics. Can I have for topics as well?
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°4
Re: Remove message when posting
It works for me
What forum version are you using ?
What forum version are you using ?
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°5
Re: Remove message when posting
PHPBB2
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°6
Re: Remove message when posting
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.
inallsorts- Forumember
- Posts : 246
Reputation : 8
Language : English
- Post n°7
Re: Remove message when posting
Hi,
Remove the first code and try this code Instead. Place It In the JavaScript codes management as per Ange's post above.
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- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°8
Re: Remove message when posting
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
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
_Twisted_Mods_- Helper
- Posts : 2083
Reputation : 336
Language : English
Location : Ms
- Post n°9
Re: Remove message when posting
try clearing your browser cache
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°10
Re: Remove message when posting
still doesnt work
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°11
Re: Remove message when posting
bump
Ange Tuteur- Forumaster
- Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania
- Post n°12
Re: Remove message when posting
Remove your current script that redirects, and see if this works :
Title : Your choice
Placement : In all the pages
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- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°13
Re: Remove message when posting
Nope didn't work...
I got the following scripts installed:
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")}());
JScript- Forumember
- Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil
- Post n°14
Re: Remove message when posting
@angel_of_night
Hi, try this:
New code in: https://help.forumotion.com/t136842-remove-message-when-posting#930093
So long,
JS
Hi, try this:
New code in: https://help.forumotion.com/t136842-remove-message-when-posting#930093
So long,
JS
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- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°15
Re: Remove message when posting
Didn't work... >.<
JScript- Forumember
- Posts : 741
Reputation : 175
Language : PT-BR, EN
Location : Brazil
- Post n°16
Re: Remove message when posting
@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:
So long,
JS
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=/, "");
}
}
So long,
JS
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°17
Re: Remove message when posting
That script is quite unstable. Some times works, some times doesn't. I'd say works 50% of the times.
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
- Post n°18
Re: Remove message when posting
Still not solved.