|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
As posted in the shoutbox... If your sig is EXACTLY at the limit (250 here) its "too long". As I later found out it's also saying I'm at my limit with as little as 249; yet trimming myself to 248 I get it to accept it...
The problem here is that 248 is not 250, where the limit IS 250 I should be able to enter in 250 characters...
Oh, and this was found HERE at UBBCentral...
Last edited by Rick; 10/16/2006 6:53 PM.
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Ok, it's counting the linebreaks as characters. So If your signature spans a couple lines that would be why. Line 335 of scripts/changebasic.inc.php looks like this:
if ( strlen($Signature) > $config['SIGNATURE_LENGTH'] ) {
Change that, to this:
$lengthcheck = preg_replace("#(\n|\r|<br />)#","",$Signature); if ( strlen($lengthcheck) > $config['SIGNATURE_LENGTH'] ) {
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Ahh, I suppose breaks would have been counted huh lol
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Not for nothing, but I definitely see breaks as counting as characters! Nothing worse than saying "your sig is only allowed to have so-many characters", and then some smart aleck makes it really TALL with a bunch of breaks. lol Actually - what'd be great is if we could distinguish characters displayed: that is, HTML code and URLs don't count toward the limit - only displayed characters. I'd vote for that (if we could vote ;))
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
whats to stop them from just doing this and being under the limit? a b c d e f g h i j k l m n o p q r s t u v w x y z Well under the limit in most cases, and it stilld oes what you say you want to not allow lol
|
|
|
|
Joined: Jul 2006
Posts: 15
stranger
|
stranger
Joined: Jul 2006
Posts: 15 |
It makes sense to me that linebreaks should count towards the limit, but what also makes sense is to limit the number of lines a signature can be.
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
If your sig is EXACTLY at the limit (250 here) its "too long". Where can I find the setting to alter the sig length? Or is this a code-hack?
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
^^^^ polite bump ^^^^
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
CP -> Display Options -> General -> Primary Tab -> Topic Display Options Dropdown -> Maximum Signature Length
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
^^^^ polite bump ^^^^ Found it, nog on the most logical place imho control panel > Display options > general > Topic display options > Maximum Signature Length (Characters): I also vote for a max. line control. Heck, I even posted a hack for that on ubbdev Edit: Where gizmo says it is
Last edited by blaaskaak; 11/02/2007 6:33 PM. Reason: toooo late :)
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Gentlemen! Both of you! Thank you very much for that - I had been going around and around, looking for the solution. I'm not sure why I couldn't find it? I have a theory that if you are looking too hard, you get 'snow blind' or solution blind (in this case). Kind of like.... "You can't see the wood for the trees" if you are familiar with the expression. That's always going to be a problem with something as feature-rich as this baby! Thanks again d.
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
Edit: Where gizmo says it is Don'tcha just hate it when that happens
|
|
|
|
Joined: Aug 2006
Posts: 1,358
Veteran
|
Veteran
Joined: Aug 2006
Posts: 1,358 |
Don'tcha just hate it when that happens My only string of hope is that Gizomo also had to wade through the entire control panel to find it
|
|
|
|
Joined: Jan 2004
Posts: 2,474 Likes: 3
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
This will be a group based permission in 7.3
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
:flex: Gizmo to save the day, again? lol
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
0 members (),
484
guests, and
138
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|