Martok
Well-known member
I think this may be a bug but it may be as designed.
I will be setting up signature permissions to allow users to have 1 image, 1 line of text (above or below this) and set the maximum printable characters to 255 characters.
On first set up, I set maximum lines to 1. This wouldn't allow the line of text below the image so I had to set it to 2. I guess this is as designed?
I then put in my signature of an image (with a URL link) and lots of text to test the permissions. They worked initially as expected, giving me errors about the line being too long and then there being too many characters. However, when I reduced the number of characters in my text to 255, it still told me I had too many characters. I eventually got it working with this:
Counting the text that will display (i.e. the numbers), there are 208 characters.
If you remove the URL and IMG tags, that leaves this:
That's 254 characters and a line break.
So it seems that it is counting both line breaks and any URLs within IMG tags.
I can see the argument of line breaks being counted as printable characters (even though you can't really see them as such) but is it correct that IMG URLs are being counted as printable characters, or is this a bug?
I will be setting up signature permissions to allow users to have 1 image, 1 line of text (above or below this) and set the maximum printable characters to 255 characters.
On first set up, I set maximum lines to 1. This wouldn't allow the line of text below the image so I had to set it to 2. I guess this is as designed?
I then put in my signature of an image (with a URL link) and lots of text to test the permissions. They worked initially as expected, giving me errors about the line being too long and then there being too many characters. However, when I reduced the number of characters in my text to 255, it still told me I had too many characters. I eventually got it working with this:
Code:
[URL='http://www.seniorgamers.net'][IMG]http://www.seniorgamers.net/sigs/martoksig.jpg[/IMG][/URL]
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
Counting the text that will display (i.e. the numbers), there are 208 characters.
If you remove the URL and IMG tags, that leaves this:
Code:
http://www.seniorgamers.net/sigs/martoksig.jpg
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678
That's 254 characters and a line break.
So it seems that it is counting both line breaks and any URLs within IMG tags.
I can see the argument of line breaks being counted as printable characters (even though you can't really see them as such) but is it correct that IMG URLs are being counted as printable characters, or is this a bug?