Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
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.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Ahh, I suppose breaks would have been counted huh lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
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 ;)) cool


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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
whats to stop them from just doing this and being under the limit?

Quote
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 15
P
stranger
stranger
P Offline
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
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Originally Posted by Gizmo
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
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
^^^^ polite bump smile ^^^^

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
CP -> Display Options -> General -> Primary Tab -> Topic Display Options Dropdown -> Maximum Signature Length


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by driv
^^^^ polite bump smile ^^^^


Found it, nog on the most logical place imho smile

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 laugh

Edit: Where gizmo says it is smile

Last edited by blaaskaak; 11/02/2007 6:33 PM. Reason: toooo late :)

[Linked Image from siemons.org]
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
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! smile laugh

Thanks again smile
d.

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Originally Posted by blaaskaak
Edit: Where gizmo says it is smile


Don'tcha just hate it when that happens wink

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by driv
Don'tcha just hate it when that happens wink


My only string of hope is that Gizomo also had to wade through the entire control panel to find it laugh


[Linked Image from siemons.org]
Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
Gizomo would be Gizmos Italian spamming relative ??? wink wink laugh

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This will be a group based permission in 7.3 wink

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
:flex: Gizmo to save the day, again? lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 484 guests, and 138 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)