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.

How can I add signature warning message?

3 posters

Go down

Solved How can I add signature warning message?

Post by Van-Helsing Sun Feb 21 2016, 05:28

Hello,
How can I add this signature warning message?

How can I add signature warning message? F7DXjaT
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Van-Helsing Mon Feb 22 2016, 16:00

Bump.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Ange Tuteur Mon Feb 22 2016, 16:22

Hi,

This warning is created using CSS pseudo-elements. Here's the code :
Code:
/* Signature Notice */
#cp-main .panel.sig:before, #cp-main .panel.sig::before {
  content : 'Attention : Your settings will be saved, however note, that only staff members can display signatures on the forum.';
  color:#E53;
  font-weight:bold;
  text-align:center;
  background:#F5F5F5;
  border:1px solid #DDD;
  border-bottom-width:2px;
  border-radius:3px;
  display:block;
  margin:6px 0;
  padding:6px;
}

It was only tested on phpbb3, so I'm not sure how it'll work on other versions.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2998
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Van-Helsing Mon Feb 22 2016, 16:40

Hello @Ange Tuteur,
Its not working on PunBB version Sad
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Ange Tuteur Mon Feb 22 2016, 17:00

For PunBB you'll need a script. Go to Modules > JS codes management > New

Placement : In all the pages
Code:
/page_profil=signature/.test(window.location.href) && $(function() {
  var node = document.getElementById('textarea_content');
  node && node.insertAdjacentHTML('beforeEnd', '<div class="notice-block">Attention : Your settings will be saved, however note, that only staff members can display signatures on the forum.</div>');
});

Then add this rule to your stylesheet :
Code:
.notice-block {
  color:#E53;
  font-weight:bold;
  text-align:center;
  background:#F5F5F5;
  border:1px solid #DDD;
  border-bottom-width:2px;
  border-radius:3px;
  display:block;
  margin:6px 0;
  padding:6px;
}
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2998
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Van-Helsing Mon Feb 22 2016, 17:12

Hello @Ange Tuteur.
Thank you very much now its solved and working perfect.
~1~
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by RyanPham Mon Feb 22 2016, 17:15

Hello @Ange Tuteur,
Can you give me the code for Invision?
Thank you
RyanPham
RyanPham
New Member

Male Posts : 15
Reputation : 5
Language : Vietnamese

http://english4all.forumvi.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Ange Tuteur Mon Feb 22 2016, 17:18

Van-Helsing wrote:Hello @Ange Tuteur.
Thank you very much now its solved and working perfect.
~1~
You're welcome. Smile

Topic archived

Have a good day. ^^

RyanPham wrote:Hello @Ange Tuteur,
Can you give me the code for Invision?
Thank you
Please open another topic for your questions. Wink
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2998
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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