Announcement

Collapse
No announcement yet.

[MINOR RELEASE] Signature Length

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrBlunt
    New Member
    • May 2000
    • 13

    [MINOR RELEASE] Signature Length

    Last edited by MrBlunt; Sun 19 Aug '01, 9:53pm.
  • evoir
    Senior Member
    • Apr 2000
    • 425

    #2
    Too funny eva

    will try this hack.

    Comment

    • Rosevalley
      New Member
      • Jan 2001
      • 22

      #3
      nice hack !! its working real nice and a real easy install Tnx mate!

      Comment

      • Dakota
        Senior Member
        • Feb 2001
        • 135

        #4
        Great hack. I have really been needing something like this.

        Thanks
        Bid For Power - Bid For Power Forums
        =======================
        Anime Academy - Anime Academy Forums

        Comment

        • mrlister
          Senior Member
          • Nov 2000
          • 371

          #5
          good job. i was meaning to get something like this!
          - MrLister

          Comment

          • VirtueTech
            Senior Member
            • Jun 2000
            • 561

            #6
            First off thanks for the hack...been looking for something like this...Second..I had a small problem with the hack because the template error_siglength gets put into templateset ID #1

            My default template set ID was 4...so anyone else who might have the same issue...just use phpMyAdmin to correct the template's "templatesetid" field.

            Just a heads up for users in my boat.

            Thanks again for the hack.

            Oh and I remember a ways back Ed Sullivan created a way to only show 6 lines of the signature on the showthread.php script for v1.13...anyone know how to do that here?
            PaintballCity.com
            VB Board of the Month: October

            Comment

            • MarkG
              Member
              • Aug 2000
              • 59

              #7
              excellent hack, great implementation!

              Comment

              • Thomas P
                Senior Member
                • Apr 2001
                • 1497
                • 5.6.4

                #8
                Works perfect,
                thanks to VirtueTech, too for the hint,
                -Tom
                www.MCSEboard.de
                German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside

                Comment

                • Sire
                  New Member
                  • Apr 2001
                  • 26

                  #9
                  $signaturelength doesn't seem to contain a value for me.. ( v 2.0.1 ). Any idea ?

                  Comment

                  • kchii
                    Member
                    • Apr 2001
                    • 51

                    #10
                    This is a great hack, but needs to limit characters as well. If not, a user can simply not use any breaks and they can still have a huge sig, since it's technically only 1 really really long line.

                    Comment

                    • Bad_Madman
                      Member
                      • Jul 2001
                      • 69

                      #11
                      Originally posted by kchii
                      This is a great hack, but needs to limit characters as well. If not, a user can simply not use any breaks and they can still have a huge sig, since it's technically only 1 really really long line.
                      Update: Sorry, there was an error:
                      wrong: if ($sigcount > $signaturelength and $signaturelength)
                      right:if (strlen($sigcount) > $signaturelength and $signaturelength)
                      now it is correct (see below)

                      replace in member.php and register.php:

                      PHP Code:
                      // ####### SIG LENGTH HACK #######
                      $sigcount count(split("\n"$signature));
                      if (
                      $sigcount $signaturelength) {
                      eval(
                      "standarderror(\"".gettemplate("error_siglength")."\");");
                      exit;
                      }
                      // ####### SIG LENGTH HACK ####### 
                      with

                      PHP Code:
                      // ####### SIG LENGTH HACK #######
                      if (strlen($sigcount) > $signaturelength and $signaturelength) {
                      eval(
                      "standarderror(\"".gettemplate("error_siglength")."\");");
                      exit;
                      }
                      // ####### SIG LENGTH HACK ####### 
                      ... and now 'Signature Length' (in User and registration options) the characters instead of lines ...

                      Madman
                      Last edited by Bad_Madman; Sat 28 Jul '01, 9:04pm.

                      Comment

                      • atrl
                        Senior Member
                        • Mar 2001
                        • 157

                        #12
                        It Wont Work For Me Any Help I can Enter All I Want To and it wont limit it?

                        Comment

                        • Bad_Madman
                          Member
                          • Jul 2001
                          • 69

                          #13
                          Originally posted by atrl
                          It Wont Work For Me Any Help I can Enter All I Want To and it wont limit it?
                          with or without my changes?

                          Madman

                          Comment

                          • atrl
                            Senior Member
                            • Mar 2001
                            • 157

                            #14
                            I think i fixed it but somehow it is now on the CP options twice? How Do I take one out?

                            Comment

                            • Thomas P
                              Senior Member
                              • Apr 2001
                              • 1497
                              • 5.6.4

                              #15
                              Works in 2.0.3

                              Hi,
                              works great in 2.0.3, to upgrade I took that piece

                              PHP Code:
                              // ####### SIG LENGTH HACK #######
                              $sigcount count(split("\n"$signature));
                              if (
                              $sigcount $signaturelength) {
                              eval(
                              "standarderror(\"".gettemplate("error_siglength")."\");");
                              exit;
                              }
                              // ####### SIG LENGTH HACK ####### 
                              and pasted it into member.php and register.php as stated above.

                              I do like wo work it this way, i.e. to limit the lines.
                              Some of my users tend to make ~5 lines which is too much imo.
                              Limiting the chars won't limit the lines, too.

                              So I like it!
                              -Tom
                              www.MCSEboard.de
                              German Windows Server & IT Pro Community dedicated to Windows Client & Server Systems. MVPs inside

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎