Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: Reclaimer - elokuu 20, 2007, 07:04:26 AP

Otsikko: Signature character count not including tags?
Kirjoitti: Reclaimer - elokuu 20, 2007, 07:04:26 AP
I would like it if someone made a mod where the signature character count is counted after the tags are worked out. Say you have a few links in your Sig but you can't use it because it goes over the character count but the final count is less than the limit. Is this possible?

Eg
[color=green][size=3][url=linlithgow-forums.org.uk]Linlithgow Forums is my website[/url][/size][/color]
Linlithgow Forums is my website (http://linlithgow-forums.org.uk)
Would count as only 27 charachters instead of 99 charachters.
Otsikko: Re: Signature character count not including tags?
Kirjoitti: erlend_sh - elokuu 21, 2007, 09:05:42 IP
Oh, that's a brilliant idea. I would like this to be a default feature, because I think the way it currently is is completely illogical. I like using tables to make small amounts of text appear nice and neat, but I usually get enough characters to do that... To avoid some kind of abuse with people stuffing it with tags thus making... something... go wrong, it could cound one letter per 10 words inside a tag or something maybe?
Otsikko: Re: Signature character count not including tags?
Kirjoitti: karlbenson - elokuu 21, 2007, 09:53:43 IP
I'm not very good at javascript. But I'm guessing this would be extremely complex if not impossible clientside. (javascript)
But on submitting (server-side) in php, it would be alot easier to check.
Otsikko: Re: Signature character count not including tags?
Kirjoitti: Reclaimer - elokuu 27, 2007, 05:21:39 IP
is no one else interested?