Bitcoin Forum
December 14, 2019, 05:29:06 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The message exceeds the maximum allowed lenght (64000 characters)  (Read 195 times)
coinlocket$
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1130


One of the world's leading Bitcoin-powered casinos


View Profile WWW
April 17, 2019, 10:57:23 AM
 #1

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?



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

1576301346
Hero Member
*
Offline Offline

Posts: 1576301346

View Profile Personal Message (Offline)

Ignore
1576301346
Reply with quote  #2

1576301346
Report to moderator
1576301346
Hero Member
*
Offline Offline

Posts: 1576301346

View Profile Personal Message (Offline)

Ignore
1576301346
Reply with quote  #2

1576301346
Report to moderator
1576301346
Hero Member
*
Offline Offline

Posts: 1576301346

View Profile Personal Message (Offline)

Ignore
1576301346
Reply with quote  #2

1576301346
Report to moderator
Best ratesfor crypto
EXCHANGE
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1576301346
Hero Member
*
Offline Offline

Posts: 1576301346

View Profile Personal Message (Offline)

Ignore
1576301346
Reply with quote  #2

1576301346
Report to moderator
TryNinja
Legendary
*
Offline Offline

Activity: 1218
Merit: 1692



View Profile
April 17, 2019, 11:00:37 AM
 #2

Try this: https://www.lettercount.com/
Or this: https://charactercounttool.com/ (a better one)

coinlocket$
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1130


One of the world's leading Bitcoin-powered casinos


View Profile WWW
April 17, 2019, 11:08:12 AM
 #3

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).

wwzsocki
Legendary
*
Offline Offline

Activity: 1134
Merit: 1074



View Profile WWW
April 17, 2019, 11:13:56 AM
Last edit: April 17, 2019, 05:51:29 PM by wwzsocki
 #4

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.

TMAN
Legendary
*
Offline Offline

Activity: 1344
Merit: 1660

https://bit.ly/2PeFmvJ TMAN SERVICES BITCHES


View Profile WWW
April 17, 2019, 11:21:57 AM
Merited by wwzsocki (1)
 #5

Expected a thread like this from cryptohunter not you bro..

.FORTUNE.JACK.
      ▄▄███████▄▄
   ▄████▀▀ ▄ ██████▄
  ████ ▄▄███ ████████
 █████▌▐███▌ ▀▄ ▀█████
███████▄██▀▀▀▀▄████████
█████▀▄▄▄▄█████████████
████▄▄▄▄ █████████████
 ██████▌ ███▀████████
  ███████▄▀▄████████
   ▀█████▀▀███████▀
      ▀▀██████▀▀
         
         █
...FortuneJack.com                                             
...THE BIGGEST BITCOIN GAMBLING SITE
       ▄▄█████████▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ▄██
█████████▀███████████▄
██████████▀   ▀██████████
█████████▀       ▀█████████
████████           ████████
████████▄   ▄ ▄   ▄████████
██████████▀   ▀██████████
 ▀██
█████████████████████▀
  ▀██
███████████████████▀
    ▀█████████████████▀
       ▀▀█████████▀▀
#JACKMATE
WIN 1 BTC
▄█████████████████████████▄
███████████████████████████
███████████████████████████
██████████▀█████▀██████████
███████▀░░▀░░░░░▀░░▀███████
██████▌░░░░░░░░░░░░░▐██████
██████░░░░██░░░██░░░░██████
█████▌░░░░▀▀░░░▀▀░░░░▐█████
██████▄░░▄▄▄░░░▄▄▄░░▄██████
████████▄▄███████▄▄████████

███████████████████████████
███████████████████████████
▀█████████████████████████▀


The Avatar:
coinlocket$
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1130


One of the world's leading Bitcoin-powered casinos


View Profile WWW
April 17, 2019, 11:28:31 AM
Last edit: April 17, 2019, 11:42:55 AM by coinlocket$
 #6

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.

TryNinja
Legendary
*
Offline Offline

Activity: 1218
Merit: 1692



View Profile
April 17, 2019, 11:42:28 AM
 #7

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.

LoyceV
Legendary
*
Offline Offline

Activity: 1694
Merit: 5328


ArtIst > AI rtst


View Profile WWW
April 17, 2019, 11:48:51 AM
 #8

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 for very long posts, but it would be much easier with a much higher limit. Especially BBCode and tables easily reach 64k characters.


TryNinja
Legendary
*
Offline Offline

Activity: 1218
Merit: 1692



View Profile
April 20, 2019, 12:21:33 AM
Merited by dbshck (5), Halab (2), coinlocket$ (1)
 #9

@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://i.imgur.com/BMH0eya.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.

Vod
Legendary
*
Offline Offline

Activity: 2954
Merit: 2343


Licking my boob since 1970


View Profile WWW
April 20, 2019, 02:34:08 AM
 #10

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

Any modern doc processor should give you a word count.

Notepad++ ?


I'm into creating universes, smiting people, writing holy books and listening to Prayer Messages (PMs).
Nastyfans is a proven ponzi! BitcoinTalk Public Information Project (BPIP)  - BPIP Reports FAMO
"Masturbation makes you feel good but doesn't do anything for the person you're thinking of.  Just like prayer."
Coolcryptovator
Hero Member
*****
Online Online

Activity: 630
Merit: 1016


Need Campaign Manager? Hire Me 👇


View Profile WWW
April 20, 2019, 03:54:20 AM
 #11

Expected a thread like this from cryptohunter not you bro..
Me to Grin, may be Alt of CH Wink

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.

TryNinja
Legendary
*
Offline Offline

Activity: 1218
Merit: 1692



View Profile
April 20, 2019, 04:13:17 AM
 #12

However, it would be better if there is character counter, so people will able to write/delete accordingly.
See my post above.

coinlocket$
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1130


One of the world's leading Bitcoin-powered casinos


View Profile WWW
April 20, 2019, 08:44:01 AM
 #13

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

Any modern doc processor should give you a word count.

Notepad++ ?



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

@tryninja ty, I will try it.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!