Results 1 to 15 of 28
Page 1 of 2
FirstFirst 1 2 ... LastLast

Thread: [MINOR RELEASE] Signature Length

Threaded View

  1. #1
    New Member MrBlunt is on a distinguished road
    Join Date
    May 2000
    Posts
    11
    Last edited by MrBlunt; Mon 20th Aug '01 at 1:53am.
     

  2. #2
    Senior Member evoir has disabled reputation
    Join Date
    Apr 2000
    Posts
    415
    Too funny eva

    will try this hack.
     

  3. #3
    New Member Rosevalley is on a distinguished road
    Join Date
    Jan 2001
    Age
    30
    Posts
    22
    nice hack !! its working real nice and a real easy install Tnx mate!
     

  4. #4
    Senior Member Dakota has disabled reputation Dakota's Avatar
    Join Date
    Feb 2001
    Location
    Tennessee
    Age
    26
    Posts
    136
    Great hack. I have really been needing something like this.

    Thanks
     

  5. #5
    Senior Member mrlister is on a distinguished road mrlister's Avatar
    Join Date
    Nov 2000
    Location
    Burnaby, BC
    Posts
    371
    good job. i was meaning to get something like this!
    - MrLister
     

  6. #6
    Senior Member VirtueTech is on a distinguished road VirtueTech's Avatar
    Join Date
    Jun 2000
    Posts
    561
    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
     

  7. #7
    Member MarkG is on a distinguished road MarkG's Avatar
    Join Date
    Aug 2000
    Posts
    59
    excellent hack, great implementation!
     

  8. #8
    Senior Member Thomas P is on a distinguished road Thomas P's Avatar
    Join Date
    Apr 2001
    Location
    Munich, DE
    Posts
    1,489
    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
     

  9. #9
    New Member Sire is on a distinguished road
    Join Date
    Apr 2001
    Posts
    26
    $signaturelength doesn't seem to contain a value for me.. ( v 2.0.1 ). Any idea ?
     

  10. #10
    Member kchii is on a distinguished road
    Join Date
    Apr 2001
    Location
    London
    Posts
    51
    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.
    "Thank God I'm an atheist." - Luis Bunuel

    Free Anime FanSubs: AnimeHorizons
     

  11. #11
    Member Bad_Madman is on a distinguished road
    Join Date
    Jul 2001
    Posts
    69
    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; Sun 29th Jul '01 at 1:04am.
     

  12. #12
    Senior Member atrl is on a distinguished road
    Join Date
    Mar 2001
    Posts
    142
    It Wont Work For Me Any Help I can Enter All I Want To and it wont limit it?
     

  13. #13
    Member Bad_Madman is on a distinguished road
    Join Date
    Jul 2001
    Posts
    69
    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
    Irren ist menschlich. Aber wenn man richtig Mist
    bauen will, braucht man einen Computer.
     

  14. #14
    Senior Member atrl is on a distinguished road
    Join Date
    Mar 2001
    Posts
    142
    I think i fixed it but somehow it is now on the CP options twice? How Do I take one out?
     

  15. #15
    Senior Member Thomas P is on a distinguished road Thomas P's Avatar
    Join Date
    Apr 2001
    Location
    Munich, DE
    Posts
    1,489

    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
     

Page 1 of 2
FirstFirst 1 2 ... LastLast

Similar Threads

  1. Length of Signature?
    By Internet in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 15
    Last Post: Fri 24th Sep '04, 5:31pm
  2. Signature length in lines
    By ryansales in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 2
    Last Post: Wed 2nd Jul '03, 12:46am
  3. Signature Length...
    By Atomusuku-sama in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Mon 5th Nov '01, 10:48pm
  4. Signature Length!
    By Mortin in forum vBulletin 2 Suggestions and Feedback
    Replies: 1
    Last Post: Mon 21st May '01, 7:46am

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts