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.

Warninging Botton

+2
SLGray
Hazeleyez73
6 posters

Go down

Solved Warninging Botton

Post by Hazeleyez73 December 15th 2019, 7:55 pm

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

Hazeleyez73
Hazeleyez73
Forumember

Female Posts : 197
Reputation : 2
Language : English
Location : Maryland

https://chilloutzone.forumotion.com/

Back to top Go down

Solved Re: Warninging Botton

Post by SLGray December 15th 2019, 8:24 pm

So what are you using to achieve this message?


Warninging Botton  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51195
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Warninging Botton

Post by Draxion December 15th 2019, 8:42 pm

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

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Warninging Botton

Post by SLGray December 15th 2019, 8:46 pm

If it is that tutorial, all you have to do is change the title line of the coding.  Is that not correct?


Warninging Botton  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51195
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Warninging Botton

Post by Hazeleyez73 December 15th 2019, 8:48 pm

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

Female Posts : 197
Reputation : 2
Language : English
Location : Maryland

https://chilloutzone.forumotion.com/

Back to top Go down

Solved Re: Warninging Botton

Post by tikky December 17th 2019, 7:30 pm

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  rock
Warninging Botton  Img_2066

Moderation messages use the table such as:
Warninging Botton  Img_2067

I await an answer from you,
pedxz.
tikky
tikky
Forumember

Posts : 860
Reputation : 155
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

Solved Re: Warninging Botton

Post by skouliki December 18th 2019, 8:39 am

@Hazeleyez73


Please don't use bold or color and keep to the default text. This is reserved for the staff for moderation.  Thank you.
Please read our forum rules:  ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 14247
Reputation : 1636
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Warninging Botton

Post by Hazeleyez73 December 19th 2019, 1:06 am

@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


Hazeleyez73
Hazeleyez73
Forumember

Female Posts : 197
Reputation : 2
Language : English
Location : Maryland

https://chilloutzone.forumotion.com/

Back to top Go down

Solved Re: Warninging Botton

Post by TonnyKamper December 19th 2019, 1:45 pm

Replace the images in the tutorial code Draxion gave you with these images:

Warninging Botton  Button10

Warninging Botton  Button11

Also replace the pic with the exclamation mark in the CSS code with this https one so it will be up to date to nowadays standards:
Warninging Botton  Gnome610


Last edited by TonnyKamper on December 19th 2019, 7:45 pm; edited 1 time in total
TonnyKamper
TonnyKamper
Forumember

Female Posts : 977
Reputation : 77
Language : Dutch/English
Location : DSF Admin

http://www.nederlandheelt.nl/forum

Back to top Go down

Solved Re: Warninging Botton

Post by Hazeleyez73 December 19th 2019, 2:40 pm

@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
Hazeleyez73
Hazeleyez73
Forumember

Female Posts : 197
Reputation : 2
Language : English
Location : Maryland

https://chilloutzone.forumotion.com/

Back to top Go down

Solved Re: Warninging Botton

Post by TonnyKamper December 19th 2019, 3:06 pm

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

Warninging Botton  Modbbc10
TonnyKamper
TonnyKamper
Forumember

Female Posts : 977
Reputation : 77
Language : Dutch/English
Location : DSF Admin

http://www.nederlandheelt.nl/forum

Back to top Go down

Solved Re: Warninging Botton

Post by Hazeleyez73 December 20th 2019, 2:51 am

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.. Warninging Botton  Modbbc10

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

Female Posts : 197
Reputation : 2
Language : English
Location : Maryland

https://chilloutzone.forumotion.com/

Back to top Go down

Solved Re: Warninging Botton

Post by SLGray December 20th 2019, 8:28 am

Please stop centering your messages.  It makes it a little hard to read your posts, especially the ones with coding.


Warninging Botton  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51195
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Warninging Botton

Post by TonnyKamper December 20th 2019, 1:06 pm

@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:
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.
TonnyKamper
TonnyKamper
Forumember

Female Posts : 977
Reputation : 77
Language : Dutch/English
Location : DSF Admin

http://www.nederlandheelt.nl/forum

Back to top Go down

Solved Re: Warninging Botton

Post by Hazeleyez73 December 21st 2019, 12:53 am

@tonnykamper - Thank you!! Perfect all looks good
Hazeleyez73
Hazeleyez73
Forumember

Female Posts : 197
Reputation : 2
Language : English
Location : Maryland

https://chilloutzone.forumotion.com/

Back to top Go down

Solved Re: Warninging Botton

Post by SLGray December 21st 2019, 5:17 am

Topic Solved & Archived


Warninging Botton  Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51195
Reputation : 3508
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum