Announcement

Collapse
No announcement yet.

[MINOR RELEASE] Signature Length

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [MINOR RELEASE] Signature Length

    Last edited by MrBlunt; Sun 19 Aug '01, 8:53pm.

  • #2
    Too funny eva

    will try this hack.

    Comment


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

      Comment


      • #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


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

          Comment


          • #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


            • #7
              excellent hack, great implementation!

              Comment


              • #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


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

                  Comment


                  • #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


                    • #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, 8:04pm.

                      Comment


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

                        Comment


                        • #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


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

                            Comment


                            • #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...
                              X