UBB.Dev
Posted By: blaaskaak [7.2.2] Check nr of lines in a signature - 09/14/2007 12:33 AM
This small hack checks the nr of lines in a signature when a user edits their profile.

It defaults to 4.

Header text in the hack happely stolen from SD. Kinda makes things more clear in the textfile.

for those wanting to check existing users for signatures with more then 4 lines, you can use this query:

Code
SELECT `USER_REAL_EMAIL` 
FROM `ubbt_USER_PROFILE`
WHERE `USER_SIGNATURE` LIKE "%<br />%<br />%<br />%<br />%"

Add more or remove some
's if you want more or less lines. This query assumes you gave ubbt_ as prefix for your tables.

Oh, little added note. I do know this does not fix up when you have signatures with long lines that word-wrap. But it handles 9 out of 10 cases on our board.

Attached File
sigsize.txt  (30 downloads)
Posted By: sirdude Re: [7.2.2] Check nr of lines in a signature - 09/14/2007 12:55 AM
hrm, i'm kinda digging that for simplicity!

good stuff blaask and i was wondering where my Header text went laugh
© UBB.Developers