Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
1 Registered (1 invisible), 20 Guests and 18 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11670
Rick 7543
Ian 4099
Mark S 3969
ntdoc 3101
Sirdude 2041
jgeoff 1876
David Dreezer 1748
driv 1552
AllenAyres 1519
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#166339 - 10/16/06 03:02 PM [FIXED for 7.0.1] Signature Limit Bug...
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11670
Loc: Portland, OR; USA
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...


Edited by Rick (10/16/06 03:53 PM)
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#166356 - 10/16/06 03:51 PM Re: Signature Limit Bug... [Re: Gizmo]
Rick Administrator Online   content

*****

Registered: 06/04/06
Posts: 7543
Loc: Aberdeen, WA
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'] ) {
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#166376 - 10/16/06 07:06 PM Re: Signature Limit Bug... [Re: Rick]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11670
Loc: Portland, OR; USA
Ahh, I suppose breaks would have been counted huh lol
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#166384 - 10/16/06 10:58 PM Re: Signature Limit Bug... [Re: Gizmo]
jgeoff Offline
Pooh-Bah

Registered: 08/08/06
Posts: 1876
Loc: NJ
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.3)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Firefox 3.0 & Safari 3.1 (XP and iPhone)

Top
#166388 - 10/17/06 01:20 AM Re: Signature Limit Bug... [Re: jgeoff]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11670
Loc: Portland, OR; USA
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
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#166389 - 10/17/06 01:41 AM Re: Signature Limit Bug... [Re: Rick]
Panther Offline
stranger

Registered: 07/24/06
Posts: 22
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.

Top
#199122 - 10/11/07 12:39 PM Re: Signature Limit Bug... [Re: Gizmo]
driv Offline
veteran

Registered: 01/10/04
Posts: 1552
Loc: Essex, UK
 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?
_________________________
I've gone Gold baby!
Oi Oi Saveloy!
(Courtesy of Sd - well known Anglophile...!?!)

Top
#200506 - 11/02/07 02:59 PM Re: Signature Limit Bug... [Re: driv]
driv Offline
veteran

Registered: 01/10/04
Posts: 1552
Loc: Essex, UK
^^^^ polite bump \:\) ^^^^
_________________________
I've gone Gold baby!
Oi Oi Saveloy!
(Courtesy of Sd - well known Anglophile...!?!)

Top
#200507 - 11/02/07 03:28 PM Re: Signature Limit Bug... [Re: driv]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11670
Loc: Portland, OR; USA
CP -> Display Options -> General -> Primary Tab -> Topic Display Options Dropdown -> Maximum Signature Length
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#200509 - 11/02/07 03:32 PM Re: Signature Limit Bug... [Re: driv]
blaaskaak Offline


Registered: 08/30/06
Posts: 1209
Loc: Breda, NL
 Originally Posted By: driv
^^^^ 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 \:D

Edit: Where gizmo says it is \:\)


Edited by blaaskaak (11/02/07 03:33 PM)
Edit Reason: toooo late :)
_________________________

Top
Page 1 of 2 1 2 >


Shout Box

Recent Topics
Import UBB classic from to UBB threads runs on a new server
by Hari Varma
Today at 06:30 AM
Import UBB classic 6.7.2 to UBB threads 7.3.1
by MrVasu
Today at 12:44 AM
File Attachment problem
by Murphdog
Yesterday at 07:44 PM
group_foumperms.php Hangs
by mmem700
Yesterday at 05:58 AM
What causes this message to pop up?
by Larry Miller
Yesterday at 04:13 AM
Forum Stats
4010 Members
33 Forums
30825 Topics
156535 Posts

Max Online: 978 @ 06/24/07 08:19 PM