Remove message when posting
5 posters
Page 1 of 1
Remove message when posting
How to remove "Your message has been entered successfully" page?
Thanks
Thanks
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
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=/,"")});
Re: Remove message when posting
Works for posts, but not for topics. Can I have for topics as well?
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
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.
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=/,"")});
inallsorts- Forumember
- Posts : 246
Reputation : 8
Language : English
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
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
Re: Remove message when posting
still doesnt work
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
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') })();
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")}());
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
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!)
Re: Remove message when posting
Didn't work... >.<
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
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
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
Re: Remove message when posting
Still not solved.
angel_of_night- Forumember
- Posts : 565
Reputation : 10
Language : portuguese
Similar topics
» how to remove message information after posting new topic
» How to remove information after reply posting and new posting?
» Remove, "The author of this message was banned from the forum - See the message"
» Screen after posting a new message
» why when posting a new member gets a message like this?
» How to remove information after reply posting and new posting?
» Remove, "The author of this message was banned from the forum - See the message"
» Screen after posting a new message
» why when posting a new member gets a message like this?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum