Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

how do i set a default Signature?

This discussion is related to the Signatures addon.
jeongweejeongwee Vanilla version 2.6 ✭✭
edited August 2013 in Vanilla 2.0 - 2.8 do i set a default signature with some words?

2. Also shows the default signature when the signature is empty? do i disble html code for the signature? do i enable html for some role(like admin or moderator)?


  • jeongweejeongwee Vanilla version 2.6 ✭✭

    2.1b1 default theme anyone can help about this?

  • R_JR_J Ex-Fanboy Munich Admin
    1. Just guessing. When looking at the code and searching for "default" I find public function GetUserSignature($UserID, $Default = NULL) {
      "GetUserSignature" sounds promising.
      The parameters are $UserID and $Default. If parameter $Default is not given, it is NULL, i.e. no signature at all. First thing I'd try would be changing $Default = NULL to `$Default = T('This is your signature, use it as you like!').
    2. That should be solved with point 1.
  • jeongweejeongwee Vanilla version 2.6 ✭✭

    @R_J i think your version not same mine= _ =

  • jeongweejeongwee Vanilla version 2.6 ✭✭

    its my file i down from github , change .txt to .php.

  • TamaTama United Kingdom ✭✭✭


    // Don't show empty sigs
             if ($Signature == '') return;

    to something like

    // Don't show empty sigs
             if ($Signature == '') $Signature = "My default sig";

    There was an error rendering this rich post.

  • jeongweejeongwee Vanilla version 2.6 ✭✭

    nothing changed

  • @jeongwee said:
    nothing changed

    Ok, you need to give a little bit more effort than those small sentences. 'It does not work', 'nothing changed', 'I changed the core and now, how to I make a new theme', etc. etc.
    What you can better do is : Hi, I have Vanilla version x.x.x, I installed plugin 'Signatures', I changed file : class.signatures.plugin.php according to these posts : ... ... and ... and now my default signature is still not showing. Here is the file I changed. I already cleared the cache/*.ini, please help

    There was an error rendering this rich post.

  • That is becuase of if (!is_null($Signature)) {....}

    if you change it to if(TRUE) or removed the if statement altogether you would expect it to work.

    grep is your friend.

Sign In or Register to comment.