The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I add signature warning message?

View previous topic View next topic Go down

Solved How can I add signature warning message?

Post by Van-Helsing on February 21st 2016, 4:28 am

Hello,
How can I add this signature warning message?



Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Van-Helsing on February 22nd 2016, 3:00 pm

Bump.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Ange Tuteur on February 22nd 2016, 3:22 pm

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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Van-Helsing on February 22nd 2016, 3:40 pm

Hello @Ange Tuteur,
Its not working on PunBB version Sad

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Ange Tuteur on February 22nd 2016, 4:00 pm

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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add signature warning message?

Post by Van-Helsing on February 22nd 2016, 4:12 pm

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

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add signature warning message?

Post by RyanPham on February 22nd 2016, 4:15 pm

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

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 on February 22nd 2016, 4:18 pm

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

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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