Signature error

Started by Vawmataw, August 28, 2014, 04:27:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vawmataw

That pisses me off a little bit (sorry). Whenever I put ''too much text'' (like Lì'fyari leNa'vi txo oe tìkxey sivi, rutxe piveng ulte kivar oeru.) with a 500x62 picture (my banner), this message appears:

old gallery link?id=5775[/img]

Oh, and even if you remove the word description thing or change the size of the banner (or both), if the text is longer, Mr. Database is not happy! So, you have nice signatures and meanwhile , I can just type kaltxì ma frapo and put a banner in my signature!

EDIT: Mr Database is happy when there is no banner!
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tìtstewan

#1
Could you post your raw codes what you enter in the signature box?

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Vawmataw

Quote from: Tìtstewan on August 28, 2014, 04:32:15 PM
Could you post your raw codes what you enter in the signature box?
I edited the message. ;)
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Toruk Makto

The system limits are 550 chars in the signature with 500x100px images.

Lì'fyari leNa'vi 'Rrtamì, vay set 'almong a fra'u zera'u ta ngrrpongu
Na'vi Dictionary: http://files.learnnavi.org/dicts/NaviDictionary.pdf

Vawmataw

#4
Quote from: Toruk Makto on August 28, 2014, 07:57:53 PM
The system limits are 550 chars in the signature with 500x100px images.
yes, but this error message appears when I write a complete and longer sentence in a signature with a 500x62px image.
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Toruk Makto

Don't know about that then. Probably another SMF bug. I really need to get on with upgrading us to SMF 2.x

Lì'fyari leNa'vi 'Rrtamì, vay set 'almong a fra'u zera'u ta ngrrpongu
Na'vi Dictionary: http://files.learnnavi.org/dicts/NaviDictionary.pdf

Tìtstewan

#6
Ma Markì, I found the mistake. :) It is the image itself. The original image he used is bigger than 500px and the database stuff get the image size information from the original file, no matter if one use img width=500 code, it won't work. Probably, codes which would surround the img width=500 like that desc= code break that bb code extension.

I just tested it:

Code which cause a database error message:


[size=12pt]Tìrey lu ikran a zene nga mivakto[/size]
[size=6pt]Lì'fyari leNa'vi txo oe tìkxey sivi, rutxe piveng ulte kivar oeru.[/size]
[desc=Your life is a banshee you must ride.][img width=500]http://forum.learnnavi.org/MGalleryItem.php?id=5750[/img][/desc]



Test with a scaled down image:


[size=12pt]Tìrey lu ikran a zene nga mivakto[/size]
[size=6pt]Lì'fyari leNa'vi txo oe tìkxey sivi, rutxe piveng ulte kivar oeru.[/size]
[desc=Your life is a banshee you must ride.][img]http://forum.learnnavi.org/suggestions/signature-error/?action=dlattach;attach=14018;image[/img][/desc]


That image refer to the attachment in my previous post which has been downscaled to 500px x 62px.

EDIT:
Quote from: Toruk Makto on August 28, 2014, 07:57:53 PM
The system limits are 550 chars
No, bytes! The forum software counts characters in bytes.
As for my signature:
Max 550; characters remaining: 3 So I used only 547 characters...
Three "characters" are consumed by the letter ä (2x) and ì (they need two bytes) in my signature. The same also for posts. English smuk have a character limit of 30'000 but the Polish/Russian/Chinese/Japanese have 15'000 or less as the japanese and chinese would use 3 or 4 bytes per character.
1 byte covers all 128 [80 = 1 byte] letters/signs and ä/ì are in the 256 [2x 128] [ä = E4 need 2 bytes / ì = EC need 2 bytes too] letter range of the UTF-8...

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Vawmataw

#7
Irayo nìtxan ma Tìtstewan!
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Toruk Makto

Although the configuration field is naively labeled "Maximum allowed characters", you're exactly correct. It is really bytes.

Lì'fyari leNa'vi 'Rrtamì, vay set 'almong a fra'u zera'u ta ngrrpongu
Na'vi Dictionary: http://files.learnnavi.org/dicts/NaviDictionary.pdf

Tìtstewan

That's why I mentioned that. The software is 'cheating'. :P ;D


Ma Vawmataw,
That was exactly the reason why I asked you to show your codes what you have used for your signature...
Quote from: Tìtstewan on August 28, 2014, 04:32:15 PM
Could you post your raw codes what you enter in the signature box?
...the problem would be much faster solved because I'm not cool enough to see other people's signature box settings. :)

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Vawmataw

Quote from: Tìtstewan on August 30, 2014, 05:51:44 AM
Ma Vawmataw,
That was exactly the reason why I asked you to show your codes what you have used for your signature...
Quote from: Tìtstewan on August 28, 2014, 04:32:15 PM
Could you post your raw codes what you enter in the signature box?
...the problem would be much faster solved because I'm not cool enough to see other people's signature box settings. :)
Sorry. :/
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tirea Aean

Quote from: Tìtstewan on August 30, 2014, 05:51:44 AM
That's why I mentioned that. The software is 'cheating'. :P ;D


Ma Vawmataw,
That was exactly the reason why I asked you to show your codes what you have used for your signature...
Quote from: Tìtstewan on August 28, 2014, 04:32:15 PM
Could you post your raw codes what you enter in the signature box?
...the problem would be much faster solved because I'm not cool enough to see other people's signature box settings. :)

You can see the result of his code in the source code of the page. From there you can guess it:

(code from Reply #10 right above)


<div class="signature">
    <span class="hotspot" onmouseover="tooltip.show('Your life is a banshee you must ride.');" onmouseout="tooltip.hide();">
        <img src="http://forum.learnnavi.org/suggestions/signature-error/?action=dlattach;attach=14018;image" alt="" border="0">
    </span><br>
    <span style="font-size: 8pt; line-height: 1.3em;">Lì'fyari leNa'vi txo oe tìkxey sivi, rutxe piveng ulte kivar oeru.</span>
</div>


Here, you can easily tell that the original BBC was this:

[desc=Your life is a banshee you must ride]
[img]http://forum.learnnavi.org/suggestions/signature-error/?action=dlattach;attach=14018;image[/img]
[/desc]
[size=8pt]Lì'fyari leNa'vi txo oe tìkxey sivi, rutxe piveng ulte kivar oeru.[/size]



Is this correct, ma Vawmataw? :)

Vawmataw

Quote from: Tirea Aean on August 30, 2014, 10:30:35 AM
Is this correct, ma Vawmataw? :)
If the problem is fixed? Yes, it is. (see my signature)
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tìtstewan

#13
Quote from: Tirea Aean on August 30, 2014, 10:30:35 AM
You can see the result of his code in the source code of the page. From there you can guess it:

(code from Reply #10 right above)


<div class="signature">
    <span class="hotspot" onmouseover="tooltip.show('Your life is a banshee you must ride.');" onmouseout="tooltip.hide();">
        <img src="http://forum.learnnavi.org/suggestions/signature-error/?action=dlattach;attach=14018;image" alt="" border="0">
    </span><br>
    <span style="font-size: 8pt; line-height: 1.3em;">Lì'fyari leNa'vi txo oe tìkxey sivi, rutxe piveng ulte kivar oeru.</span>
</div>


Here, you can easily tell that the original BBC was this:
Yeah, and how one can see the broken code if that code can't be saved because the database error don't let saving it?

EDIT: I'm careful to view at the html stuff as I can't be sure if the forum software parse it correct.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

oh DURR of course.. *facepalm* :-[

You're right.. You can't see the result of something that isn't "allowed" to be saved...

lole. I feyl.

I wish the errors were more specific and told you which part of your input was causing the error. Like most good compilers. :)

Tìtstewan

Originally I was going to post this:

but I wanted to be nice. :P (This meme it is what you are looking for, kefyak? HRH)

Quote from: Tirea Aean on August 30, 2014, 11:01:19 AM
I wish the errors were more specific and told you which part of your input was causing the error. Like most good compilers. :)
If all programs would do this *deaming*...but, in reality, one have to find them.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Quote from: Tìtstewan on August 30, 2014, 11:07:02 AM
Originally I was going to post this:

but I wanted to be nice. :P (This meme it is what you are looking for, kefyak? HRH)

Quote from: Tirea Aean on August 30, 2014, 11:01:19 AM
I wish the errors were more specific and told you which part of your input was causing the error. Like most good compilers. :)
If all programs would do this *deaming*...but, in reality, one have to find them.

Yeah, that's about right! ;D

Vawmataw

#17
Please ignore this message.
Fmawn Ta 'Rrta - News IN NA'VI ONLY (Discord)
Traducteur francophone de Kelutral.org, dict-navi et Reykunyu

Tìtstewan

You used the (img width=500) in your second image...
<img src="http://forum.learnnavi.org/suggestions/signature-error/?action=dlattach;attach=14030;image" alt="" width="500" height="62" border="0" />

Attachment with 500px x 62px

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

#19
Why not use the Gallery to host your images? O_0