How can I add signature warning message? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    How can I add signature warning message?

    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved How can I add signature warning message?

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

    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

    Solved Re: How can I add signature warning message?

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

    Bump.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How can I add signature warning message?

    Post by Ange Tuteur 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.
    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved Re: How can I add signature warning message?

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

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


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How can I add signature warning message?

    Post by Ange Tuteur 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;
    }
    Van-Helsing
    Van-Helsing
    Hyperactive


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

    Solved Re: How can I add signature warning message?

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

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


    Male Posts : 15
    Reputation : 5
    Language : Vietnamese

    Solved Re: How can I add signature warning message?

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

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


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How can I add signature warning message?

    Post by Ange Tuteur 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