Is there is any way to limit signature length?
422
Developer MVP
You need to identify the var that controls signatures, i dont know it. Im on ipad having a smoko outside lol. @underdog or @peregrine or @x00 can help, they are geniususeseses
422 Real Estate Australia , now open Check it out
Answers
:-( :-( I thanks @Todd
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Surely you could using strlen
eg.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •A quick snippet I found online which you could implement.
<?php function cutAfter($string, $len = 30, $append = '...') { return (strlen($string) > $len) ? substr($string, 0, $len - strlen($append)) . $append : $string; } echo cutAfter('foo bar baz', 2)."\n"; echo cutAfter('foo bar baz', 10)."\n"; echo cutAfter('foo bar baz', 11)."\n"; echo cutAfter('foo bar baz', 6, '!!!')."\n"; ?>Outputs:
foo bar ba...
foo bar...
foo bar baz
foo!!!
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •Or optionally: easiest method
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •thanks @422 Please can you tell me what file i should edit? I could not find
$string = (strlen($string) > 13) ? substr($string,0,10).'...' : $string;- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •if you are using the signature plugin and just using straight text. this will cut the the sig length properly. With tags and images your results may vary.
BTW - @fh111 is an expert on truncation now - he can probably give you some tips now.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
2 • Off Topic 2Insightful Awesome LOL •But the easiest and probably the best way if you are concerned about the number of lines the signature takes up. just use css and multiply the lines you want by the font-size to se the height.
for a one-line restriction - just change the signature.css in the design folder of the plugin and add a height parameter.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •