How can I add signature warning message?
3 posters
Page 1 of 1
Re: How can I add signature warning message?
Hi,
This warning is created using CSS pseudo-elements. Here's the code :
It was only tested on phpbb3, so I'm not sure how it'll work on other versions.
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.
Re: How can I add signature warning message?
For PunBB you'll need a script. Go to Modules > JS codes management > New
Placement : In all the pages
Then add this rule to your stylesheet :
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;
}
Re: How can I add signature warning message?
You're welcome.
Topic archived
Have a good day. ^^
Please open another topic for your questions.
Similar topics
» warning message
» Need help!! suddenly this warning message appear!
» Warning" message background color in your profile
» My signature wont show but everyone else's signature does
» Remove, "The author of this message was banned from the forum - See the message"
» Need help!! suddenly this warning message appear!
» Warning" message background color in your profile
» My signature wont show but everyone else's signature does
» Remove, "The author of this message was banned from the forum - See the message"
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum