Bitcoin Forum

Other => Meta => Topic started by: coinlocket$ on April 17, 2019, 10:57:23 AM



Title: The message exceeds the maximum allowed lenght (64000 characters)
Post by: coinlocket$ on April 17, 2019, 10:57:23 AM
Sometimes I need to post big texts, usually with the BB [ code ] format to keep the post short.

Is it possible to add some info on this error message to know how many chars I need to cut?

https://puu.sh/DfXwG/a04855be0f.png

Is frustrating to try random cuts and hope for the best.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: TryNinja on April 17, 2019, 11:00:37 AM
Try this: https://www.lettercount.com/
Or this: https://charactercounttool.com/ (a better one)


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: coinlocket$ on April 17, 2019, 11:08:12 AM
Yes, I know the existence of those 3rd part tools but if we can do it on the forum it will better and faster without copypasting several times on that kind of websites.

(saved the second one on my bookmarks, seems very powerful).


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: wwzsocki on April 17, 2019, 11:13:56 AM
snip
A good idea for a new thread in which such Interesting facts would be posted about the Bitcointalk forum.

I am sure that there are many more such curiosities about which we have no idea and it would be nice to find them out.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: TMAN on April 17, 2019, 11:21:57 AM
Expected a thread like this from cryptohunter not you bro..


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: coinlocket$ on April 17, 2019, 11:28:31 AM
Expected a thread like this from cryptohunter not you bro..

Ehehe, I needed to use Pastebin in the end, was a lot of shit. https://pastebin.com/1dv1c7mr

Edit and offtopic: Btw he is off by 3 days now does he get a temp ban? Saw theymos talking about it not a long time ago.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: TryNinja on April 17, 2019, 11:42:28 AM
I could make you a tampermonkey script that does this (with a live count bellow the textarea). Would you mind?

Unfortunately I’m on the phone right now. But it would be relatively simple.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: LoyceV on April 17, 2019, 11:48:51 AM
I use a text editor and some margin: I think the limit is 64000 characters HTML, not 64000 in BBCode. If you count the characters in a text editor, the result may or may not fit if it's close to 64000.

I think that's what lead to this error for tables much smaller than 64000 characters:
I'm trying to post a (big) table on Bitcointalk, to show the results of a giveaway. I know the maximum post size is 64000 bytes. My post is just over half that size, and I get this error:
Code:
INVALID BBCODE: loop, probably unclosed tags

The BBcode is valid. If I make it a bit shorter by taking out a few rows, I can post it.

And it looks like there's a bug: recently one of my topics was cut short without getting an error:
This topic was cut short: without giving an error about the 64kB limit, the last part was just cut off.



I would really like to see exceptions from this restriction for some users (me me me !). I sometimes create a thread in Archival (https://bitcointalk.org/index.php?topic=5132208.0;all) for very long posts, but it would be much easier with a much higher limit. Especially BBCode and tables easily reach 64k characters.



Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: TryNinja on April 20, 2019, 12:21:33 AM
@coinlocket$

Here is my try (in case you are interested).

It's a GreaseMonkey/TamperMonkey script. Just paste this in a new script file and whenever you start typing a new post/thread, it will show up "Characters left: X" a little bit under the text area; (X = 64000 - current count)

Preview: https://talkimg.com/images/2023/05/14/blobf823ce262e9a3868.png

Code:
// ==UserScript==
// @name     BitcoinTalk Characters Left
// @version  1
// @include  https://bitcointalk.org/index.php?action=post;*
// @grant    none
// ==/UserScript==

function getElementByXpath(path) {
  return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}

countText = document.createElement('span');
countText.setAttribute("id", "countText");
getElementByXpath('/html/body/div[2]/form/table[2]/tbody/tr[2]/td/table').appendChild(countText);

document.getElementsByName('message')[0].onkeyup = function () {
  document.getElementById('countText').innerHTML = "<b>Characters left: </b>" + (64000 - this.value.length);
};

P.S: I suck at Js.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: Vod on April 20, 2019, 02:34:08 AM
Is frustrating to try random cuts and hope for the best.

Any modern doc processor should give you a word count.

Notepad++ (https://notepad-plus-plus.org/) ?



Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: The Cryptovator on April 20, 2019, 03:54:20 AM
Expected a thread like this from cryptohunter not you bro..
Me to ;D, may be Alt of CH ;)

Just learned there is characters limit on bitcointalk. Because I didn't faced this problem. How it will be if if limit increase according to rank?
However, it would be better if there is character counter, so people will able to write/delete accordingly.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: TryNinja on April 20, 2019, 04:13:17 AM
However, it would be better if there is character counter, so people will able to write/delete accordingly.
See my post above.


Title: Re: The message exceeds the maximum allowed lenght (64000 characters)
Post by: coinlocket$ on April 20, 2019, 08:44:01 AM
Is frustrating to try random cuts and hope for the best.

Any modern doc processor should give you a word count.

Notepad++ (https://notepad-plus-plus.org/) ?



They point to skip copy pasting on 3rd part programs/websites (yeah I'm lazy)

@tryninja ty, I will try it.