Warninging Botton
+2
SLGray
Hazeleyez73
6 posters
Page 1 of 1
Warninging Botton
Hello there,
Is there anyway, I can change how the Moderator Warning and Administrator Warning button appears
Instead of saying Administrator Warning can it just say Administrator and not the warning part.
I want to use this for something else.
Administrator Warning
You have reached 25 Votes, You will receive a tag from one of our Admins
Could i change it to this
Administrator Notes
You have reached 25 Votes, You will receive a tag from one of our Admins
Thank you
Jen
Re: Warninging Botton
So what are you using to achieve this message?


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Warninging Botton
Can you paste the code you used? It will require some editing. Thanks.
The code they used @SLGray was this: https://help.forumotion.com/t136169-warning-button-for-administrators-and-moderators#918083
The code they used @SLGray was this: https://help.forumotion.com/t136169-warning-button-for-administrators-and-moderators#918083
Re: Warninging Botton
If it is that tutorial, all you have to do is change the title line of the coding. Is that not correct?


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Warninging Botton
I want to have it say Admin Notes - because when our members votes and reach a voting goal I want to make sure they know that they are getting awarded. It so easy to just click on the button and say whatever.
I really dont want to keep editing though, is there a code that we can create for something like this if I cant use the Admin Warning button for other things.
Its also helps staff to see that when they are making tags for awards. They will scroll down to the 25 post to see that note.
Just trying to make it easy on our staff
Re: Warninging Botton
Welcome to Forumotion @Hazeleyez73,
I have a suggestion for you! A (new) code that can only add messages to moderators and administrators. Let's imagine if you have a Admin message and don't want moderators to see just configure the script - the code is simples and you can add any messages you want
Moderation messages use the table such as:
I await an answer from you,
pedxz.
I have a suggestion for you! A (new) code that can only add messages to moderators and administrators. Let's imagine if you have a Admin message and don't want moderators to see just configure the script - the code is simples and you can add any messages you want

Moderation messages use the table such as:
I await an answer from you,
pedxz.
Re: Warninging Botton
@Hazeleyez73
Please don't use bold or color and keep to the default text. This is reserved for the staff for moderation. Thank you.
|
Re: Warninging Botton
@skouliki - Sorry about that, sometimes, I cant see what I am typing, so I need a bigger font. I will make sure to keep it to the normal font
@Pedxz - Thank you for the suggestion but that not what I want
@slgray - I did try to change the warning to Notes, but when I click on the button it still generated the warning
Administrator Warning - Jodi Thanks for reaching 100 votes, you will get tag from me soon
This isn't a warning this to award that member.
The reason why I like the admin and mod button its easy to just click and then type what I want. But in this code it gives a warning which I dont need the warning. It would be nice to have one of your coder to make a code that says
Admin notes
or
Mod Notes
So when we click on the button it will place it to the top of the post like this
Admin Note: Jodi Thanks for reaching 100 votes, you will get tag from me soon
See our staff makes tags for our members, that reaches a goal, win games, and so on, it give members to be motivated to keep posting.
Its like if I scratch your back, you scratch my back - Something to be return from each other.
Tags is something we do in the PSP world in our graphic software. PSP stands for Paint Shop Pro.
I know most or all volunteer to help us out, However, I also pay a premium for Forumotion on my forum.
So could it be possible to get someone to help me with this.
Thanks Jen
Re: Warninging Botton
Last edited by TonnyKamper on December 19th 2019, 7:45 pm; edited 1 time in total
Re: Warninging Botton
@tonnykamper - everything you asked me to do it worked, however is there anyways, when I click on the mod or Admin button it places this in the posting section
- Code:
[mod][/mod]
When I put something between the two Mod and click send it puts the text that I put between the two mod it puts its underneath
Is there anyway when I put the text between
it would save it like this
Moderator Notes: Jodi thank you for reaching 100 Votes, you will receive a tag from me soon.
Instead of
Moderator Notes
Jodi thank you for reaching 100 Votes, you will receive a tag from me soon.
Thank you
Re: Warninging Botton
@Hazeleyez73 It is not supposed to do that, can you please check if you've by accident put a linebreak or a space in the code or in the CSS where it's not supposed to be?
Edit:
I've tested it myself and above I was wrong, it is supposed to do this, the top part is only for for the title of the bbcode that part gets automatically placed by the script on the top part, the bottom part is the part where your text will be placed in..

Edit:
I've tested it myself and above I was wrong, it is supposed to do this, the top part is only for for the title of the bbcode that part gets automatically placed by the script on the top part, the bottom part is the part where your text will be placed in..

Re: Warninging Botton
I am a little confused now
TonnyKamper wrote:@Hazeleyez73 It is not supposed to do that, can you please check if you've by accident put a linebreak or a space in the code or in the CSS where it's not supposed to be? Edit: I've tested it myself and above I was wrong, it is supposed to do this, the top part is only for for the title of the bbcode that part gets automatically placed by the script on the top part, the bottom part is the part where your text will be placed in..
Here is what I have, what am I doing wrong?
JavaScript on all pages
- Code:
$(function() {
var modButton = true, admButton = true,
modImage = 'https://i.postimg.cc/P5N93zCh/button11.png',
admImage = 'https://i.postimg.cc/sg88tQWW/button10.png';
- Code:
if (_userdata.user_level != 0 && modButton === true) {
$("#text_editor_textarea").before("<img src='"+modImage+"' title='Moderator Notes' id='mod-b'/>");
$('#mod-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('[mod]','[/mod]')});
}
if (_userdata.user_level === 1 && admButton === true) {
$("#text_editor_textarea").before("<img src='"+admImage+"' title='Admin Notes' id='adm-b'/>");
$('#adm-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('[adm]','[/adm]')});
}
$('div.postbody div').each(function () {
if ($(this).text().indexOf('[adm]') != -1) $(this).html($(this).html().replace(/\[adm\](.+?)\[\/adm\]/gi, '<div class="adm_mess"><div class="titl">Administrator Notes</div><div>$1 </div></div>'));
if ($(this).text().indexOf('[mod]') != -1) $(this).html($(this).html().replace(/\[mod\](.+?)\[\/mod\]/gi, '<div class="mod_mess"><div class="titl">Moderator Notes</div><div>$1 </div></div>'));
});
});
css
- Code:
/* Warning buttons */
.mod_mess, .adm_mess {
margin: 5px auto;
width: 90%;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.mod_mess a.postlink, .adm_mess a.postlink {
color: #FFF !important;
text-decoration: underline !important;
}
/* Administrator bb-Code - message block */
.adm_mess {
background: #e54858;
background: -moz-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #e54858), color-stop(100%, #f5b57a));
background: -webkit-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: -o-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: -ms-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: linear-gradient(left, #e54858 0%, #f5b57a 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e54858", endColorstr="#f5b57a", GradientType=1);
-webkit-box-shadow: 4px 4px 0px 0px #352727;
-moz-box-shadow: 4px 4px 0px 0px #352727;
box-shadow: 4px 4px 0px 0px #352727;
}
/* Administrator bb-Code - title */
.adm_mess .titl {
font-size: 15px;
font-weight: bold;
padding: 5px;
border-bottom: 1px dashed #B60505;
}
/* Administrator BB-Code - text presentation */
.adm_mess .titl + div {
display: block;
margin-left: 10px;
padding: 25px 5px 25px 80px;
background: transparent url(https://i.postimg.cc/Ls17R9kb/gnome610.png) no-repeat left center;
}
/* Moderator BB-Code - message block */
.mod_mess {
background: #5c93f5;
background: -moz-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #5c93f5), color-stop(100%, #afcfda));
background: -webkit-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: -o-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: -ms-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: linear-gradient(left, #5c93f5 0%, #afcfda 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#5c93f5", endColorstr="#afcfda", GradientType=1);
-webkit-box-shadow: 4px 4px 0px 0px #352727;
-moz-box-shadow: 4px 4px 0px 0px #352727;
box-shadow: 4px 4px 0px 0px #352727;
}
/* Moderator BB-Code - title */
.mod_mess .titl {
font-size: 15px;
font-weight: bold;
padding: 5px;
border-bottom: 1px dashed #0D4DD3;
}
/* Moderator BB-Code - text presentation */
.mod_mess .titl + div {
display: block;
margin-left: 10px;
padding: 25px 5px 25px 80px;
background: transparent url(https://i.postimg.cc/Ls17R9kb/gnome610.png) no-repeat left center;
}
So what am I doing wrong, the exclamation mark image isn't even showing at all.
It only shows
Administration Notes
Jodi thank you for reaching 100 Votes, you will receive a tag from me soon.
In word format
Please help
Re: Warninging Botton
Please stop centering your messages. It makes it a little hard to read your posts, especially the ones with coding.


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Warninging Botton
@Hazeleyez73 it's better to use the images I've uploaded to Servimg, that is our build in uploader wich will work better with our forums.. Use these codes instead please:
Javascript placed at all pages:
CSS:
Ofcourse you can change the display colors to your liking in the CSS.
Javascript placed at all pages:
- Code:
$(function() {
var modButton = true, admButton = true,
modImage = 'https://i.servimg.com/u/f75/18/04/29/46/button11.png',
admImage = 'https://i.servimg.com/u/f75/18/04/29/46/button10.png';
if (_userdata.user_level != 0 && modButton === true) {
$("#text_editor_textarea").before("<img src='"+modImage+"' title='Moderator Notes' id='mod-b'/>");
$('#mod-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('[mod]','[/mod]')});
}
if (_userdata.user_level === 1 && admButton === true) {
$("#text_editor_textarea").before("<img src='"+admImage+"' title='Admin Notes' id='adm-b'/>");
$('#adm-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('[adm]','[/adm]')});
}
$('div.postbody div').each(function () {
if ($(this).text().indexOf('[adm]') != -1) $(this).html($(this).html().replace(/\[adm\](.+?)\[\/adm\]/gi, '<div class="adm_mess"><div class="titl">Administrator Notes</div><div>$1 </div></div>'));
if ($(this).text().indexOf('[mod]') != -1) $(this).html($(this).html().replace(/\[mod\](.+?)\[\/mod\]/gi, '<div class="mod_mess"><div class="titl">Moderator Notes</div><div>$1 </div></div>'));
});
});
CSS:
- Code:
/* Warning buttons */
.mod_mess, .adm_mess {
margin: 5px auto;
width: 90%;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.mod_mess a.postlink, .adm_mess a.postlink {
color: #FFF !important;
text-decoration: underline !important;
}
/* Administrator bb-Code - message block */
.adm_mess {
background: #e54858;
background: -moz-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #e54858), color-stop(100%, #f5b57a));
background: -webkit-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: -o-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: -ms-linear-gradient(left, #e54858 0%, #f5b57a 100%);
background: linear-gradient(left, #e54858 0%, #f5b57a 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e54858", endColorstr="#f5b57a", GradientType=1);
-webkit-box-shadow: 4px 4px 0px 0px #352727;
-moz-box-shadow: 4px 4px 0px 0px #352727;
box-shadow: 4px 4px 0px 0px #352727;
}
/* Administrator bb-Code - title */
.adm_mess .titl {
font-size: 15px;
font-weight: bold;
padding: 5px;
border-bottom: 1px dashed #B60505;
}
/* Administrator BB-Code - text presentation */
.adm_mess .titl + div {
display: block;
margin-left: 10px;
padding: 25px 5px 25px 80px;
background: transparent url(https://i.servimg.com/u/f75/18/04/29/46/gnome610.png) no-repeat left center;
}
/* Moderator BB-Code - message block */
.mod_mess {
background: #5c93f5;
background: -moz-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #5c93f5), color-stop(100%, #afcfda));
background: -webkit-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: -o-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: -ms-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
background: linear-gradient(left, #5c93f5 0%, #afcfda 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#5c93f5", endColorstr="#afcfda", GradientType=1);
-webkit-box-shadow: 4px 4px 0px 0px #352727;
-moz-box-shadow: 4px 4px 0px 0px #352727;
box-shadow: 4px 4px 0px 0px #352727;
}
/* Moderator BB-Code - title */
.mod_mess .titl {
font-size: 15px;
font-weight: bold;
padding: 5px;
border-bottom: 1px dashed #0D4DD3;
}
/* Moderator BB-Code - text presentation */
.mod_mess .titl + div {
display: block;
margin-left: 10px;
padding: 25px 5px 25px 80px;
background: transparent url(https://i.servimg.com/u/f75/18/04/29/46/gnome610.png) no-repeat left center;
}
Ofcourse you can change the display colors to your liking in the CSS.
Re: Warninging Botton
Topic Solved & Archived


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum