Bitcoin Forum
May 25, 2024, 04:07:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Suggestion] Character limit over post should have warning how much left below.  (Read 139 times)
rhomelmabini (OP)
Hero Member
*****
Offline Offline

Activity: 2002
Merit: 578


View Profile
July 06, 2019, 04:16:52 PM
 #1

So, I was posting this long topic of mine and I wanted to merge it along with other info but this error caught me (see image below), instead, I cut it with a new reply.




What I want to suggest is to have a warning below on how many characters still left on your post/reply before it will be cut-off just like what we see on our signature profiles when we updating it. Though it is rare to see a long reply I guess when someone is posting a long topic it should be visible below.





TryNinja
Legendary
*
Offline Offline

Activity: 2842
Merit: 7040


Crypto Swap Exchange


View Profile WWW
July 06, 2019, 04:31:49 PM
Last edit: May 14, 2023, 03:55:09 AM by TryNinja
 #2

I've made a script that does that. If you're interested:

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/blob12e3077d712dd190.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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
rhomelmabini (OP)
Hero Member
*****
Offline Offline

Activity: 2002
Merit: 578


View Profile
July 06, 2019, 04:52:13 PM
 #3

I've made a script that does that. If you're interested:

<--snip-->
Thanks for that tool that'll help but with 168,207 active profiles as per BPIP I can't tell if even half of them will install this script or all of them will come across this topic, how many of them will be caught to that error or how many of them will post long topics. My suggestion is if ever the forum itself can implement it just by giving a warning to how many characters still left just what can we see on our profile when updating our signatures,  I guess that's best for all in my opinion.

TryNinja
Legendary
*
Offline Offline

Activity: 2842
Merit: 7040


Crypto Swap Exchange


View Profile WWW
July 06, 2019, 04:54:49 PM
 #4

Thanks for that tool that'll help but with 168,207 active profiles as per BPIP I can't tell if they will install this script, all of them will come across this topic, how many of them will be caught to that error or how many of them will post long topics. My suggestion is if ever the forum itself can implement it just by giving a warning to how many characters still left just what can we see on our profile when updating our signatures,  I guess that's best for all in my opinion.
Yeah, maybe theymos could consider addding this.

There is a new forum software that will be released soon, so that's why he's not focusing so much on adding new features to the current forum. My script is just a temporary workaround, but I agree it would be better if that was a native function of the forum.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Btczhageh
Jr. Member
*
Offline Offline

Activity: 61
Merit: 6


View Profile
July 06, 2019, 05:17:07 PM
 #5

Thanks for that tool that'll help but with 168,207 active profiles as per BPIP I can't tell if they will install this script, all of them will come across this topic, how many of them will be caught to that error or how many of them will post long topics. My suggestion is if ever the forum itself can implement it just by giving a warning to how many characters still left just what can we see on our profile when updating our signatures,  I guess that's best for all in my opinion.
Yeah, maybe theymos could consider addding this.

There is a new forum software that will be released soon, so that's why he's not focusing so much on adding new features to the current forum. My script is just a temporary workaround, but I agree it would be better if that was a native function of the forum.

Please how do I locate the newly built forum, just want to be part, thanks for this information, for you to know this, you need a thumb-up but can't do so right now.

You can't beat my soul out of me!!!!, but, you can with my mortal body lol.
TryNinja
Legendary
*
Offline Offline

Activity: 2842
Merit: 7040


Crypto Swap Exchange


View Profile WWW
July 06, 2019, 05:20:43 PM
 #6

Please how do I locate the newly built forum, just want to be part, thanks for this information, for you to know this, you need a thumb-up but can't do so right now.
The forum will be the same. It will just use a newly made software.

Fow now, it is still in development/beta. But you can see how it looks like and test it (maybe to search for bugs) in one of the forums that is using it right now: https://cryptos-currencies.com/

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!