Bitcoin Forum
July 12, 2026, 11:07:24 PM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Why is it impossible to Undo (CTRL+Z) Smiley and Bulletin board codes?  (Read 678 times)
shahzadafzal
Copper Member
Legendary
*
Offline

Activity: 2240
Merit: 3422



View Profile
July 10, 2026, 11:18:13 AM
#21

Currently I am using Android to access this forum. I use gboard which has an inbuilt undo button. It is very helpful for undoing or redoing any type of text. Basically I don't need any script or modification in forum code to undo anything.


Well, I don't think that's the kind of "undo" we're talking about here.

What the OP requested, and what PowerGlove's script provides, is the ability to undo toolbar actions.

For example, try clicking one of the smiley buttons on the toolbar and then use Gboard's Undo button to see whether it removes the inserted BBCode.

This is especially useful when you want to add a [ quote ] tag but accidentally click [ code ] instead.

When you're writing a long post, being able to undo those toolbar actions can save a lot of time.


░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
logfiles (OP)
Copper Member
Legendary
*
Offline

Activity: 2772
Merit: 2360



View Profile WWW
July 10, 2026, 04:59:06 PM
#22

I've been thinking about this one, and something that I think might be giving theymos pause is that the diff I posted earlier is now out-of-date (that is, the code it touches has since been changed). Also, the diff was a bit confusing to begin with (that is, it's not clear by looking at it that two functions are being changed).

So, I split the fix into two diffs and re-based them against what's currently in /Themes/default/script.js. First, the replaceText change:
Thanks PowerGlove. You are doing an incredible Job!  Wink
Now let's wait and see if the admin put it into work



Currently I am using Android to access this forum. I use gboard which has an inbuilt undo button. It is very helpful for undoing or redoing any type of text. Basically I don't need any script or modification in forum code to undo anything.
https://talkimg.com/images/2026/07/10/Uc6x4a.png
I don't have that particular keyboard, so I am not sure if it really does undo Smileys and Bulletin board codes. For the other normal characters likes those on your screenshot, even on PC one can undo them. Now enter a smiley and BB codes and see if you can undo them using that button

Another thing is I believe the biggest number of people here use PC's to access the forum.

▄▄████████████████████▄▄
▄███████▀▀██████▀▀███████▄
████████████████████████
████████▄▄██████▄▄██████

████████████████████████
██▄▄█████████████▄▄██████
██▀▀██████████████████▄▄██
██████▀▀██████████████▀▀██
██████████████████████████
██████▀▀██████▀▀████████
████████████████████████
▀███████▄▄██████▄▄███████▀
▀▀████████████████████▀▀
 
 DΞX.fo 
▄▄██████
█████████
██████████
█████████
██████████
█████████
▀▀██████

▄███████
▄██████████
████████████
█████████████
█████████████
|
▄▄█
▄████▀
▄███▀
▄██▀▄██
█████▀▀
███████
████████
▀██▄████
▄████▄▄
▄█████▀███
▄█████▀████
█████▀███████
▀██▀█████████
|  BTC     XMR  
  DAI     LTC  
   Fees  0.8%    
ImGenius
Full Member
***
Offline

Activity: 588
Merit: 136


Lets get in good shape


View Profile
July 10, 2026, 05:41:27 PM
#23

I don't have that particular keyboard, so I am not sure if it really does undo Smileys and Bulletin board codes. For the other normal characters likes those on your screenshot, even on PC one can undo them. Now enter a smiley and BB codes and see if you can undo them using that button

Another thing is I believe the biggest number of people here use PC's to access the forum.
Yes I also think biggest number of users use pc to access bitcointalk I also use pc sometimes.
The undo and redo button in keyboard works perfectly for any kind of changes happen in "reply box"  it also included smiley and bbcodes.

PowerGlove
Hero Member
*****
hacker
Offline

Activity: 705
Merit: 7213



View Profile
July 10, 2026, 10:54:33 PM
Merited by [btc] (1)
#24

When someone discovers these little "glitches", the PowerGlove always pops up.
Haha. Yeah. I... will avoid unpacking my feelings and just say that I appreciated your post. Wink

The changes don't seem to break anything, and in fact, it works really well. This is going to be quite handy for designing signatures. Grin
Thanks for testing it!

This is especially useful when you want to add a [ quote ] tag but accidentally click [ code ] instead.
I see that you're using spaces to write BBCode tags in a way that doesn't "activate" them. Maybe you already know this, but, just in case you don't: that's what [nobbc] is for (so that, for example, you can write [quote] rather than [ quote], [quote ], or [ quote ]).

(Hmm... I wonder if it's worth adding [nobbc] to the toolbar and/or the help? It might be a nice "starter patch" for someone looking to get their feet wet! Though, just as I say that, I think, "Please, please don't some AI-using wally now decide to take a run at a task that would ordinarily have stymied them. I'm getting really, really tired of digesting output that's clearly mysterious to the person presenting it.")

Even more off-topic: I recently noticed that someone had their display name changed to a BBCode tag ([btc]), and I thought, "Ah, jeez. Now people need to mangle the name, or use [nobbc] or a zero-width joiner or something each time they want to mention that user? Sigh." Cheesy

@theymos: Maybe you should place a zero-width joiner after the opening bracket of that user's display name, so that copy-pasting the name can become a reasonably convenient way to mention them? (Probably I would undo the name-change if it were up to me; I'd probably also add some logic to prevent any future BBCode-colliding display names.) Undecided
joker_josue
Legendary
*
Offline

Activity: 2450
Merit: 7257


**In BTC since 2013**


View Profile WWW
July 11, 2026, 08:28:40 PM
#25

Even more off-topic: I recently noticed that someone had their display name changed to a BBCode tag ([btc]), and I thought, "Ah, jeez. Now people need to mangle the name, or use [nobbc] or a zero-width joiner or something each time they want to mention that user? Sigh." Cheesy

@theymos: Maybe you should place a zero-width joiner after the opening bracket of that user's display name, so that copy-pasting the name can become a reasonably convenient way to mention them? (Probably I would undo the name-change if it were up to me; I'd probably also add some logic to prevent any future BBCode-colliding display names.) Undecided

In this situation, wouldn't it have been easier to simply create a rule limiting the use of BBCode when creating usernames?

I think that would be enough to avoid problems, and it wasn't a dramatic limitation.

 
 b1exch.to 
  ETH      DAI   
  BTC      LTC   
  USDT     XMR    
.███████████▄▀▄▀
█████████▄█▄▀
███████████
███████▄█▀
█▀█
▄▄▀░░██▄▄
▄▀██▄▀█████▄
██▄▀░▄██████
███████░█████
█░████░█████████
█░█░█░████░█████
█░█░█░██░█████
▀▀▀▄█▄████▀▀▀
LoyceV
Legendary
*
Offline

Activity: 4102
Merit: 22279


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
Today at 05:29:47 AM
Merited by [btc] (1)
#26

@theymos: Maybe you should place a zero-width joiner after the opening bracket of that user's display name, so that copy-pasting the name can become a reasonably convenient way to mention them?
I don't really see the problem here: if someone creates a username that can't easily be typed: let them Smiley

uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
[btc]
Full Member
***
Offline

Activity: 140
Merit: 241


"Messages are broadcast on a best effort basis,"


View Profile
Today at 10:07:05 AM
Last edit: Today at 09:25:53 PM by [btc]
Merited by PowerGlove (1)
#27

Probably I would undo the name-change if it were up to me; I'd probably also add some logic to prevent any future BBCode-colliding display names.)



if someone creates a username that can't easily be typed: let them Smiley

Usually people use quotes when reaponding to me, and it spells out my full username properly at the top of the quote.

~

Are you open to suggesting the impossibility of creating BBCode-based usernames (like joker_josue suggested), but leaving mine intact, as it's without a doubt the coolest BBCode-based username one could have? - Despite the fact your argument for changing my name back is very good though, from a technical/backend-dev perspective, and almost makes me want to ask him to change it back 😅. Also, does the fact that the BBCode used to display BTC being not part of standard BBcode specification, but a custom tag supported by this forum's software, make a difference?My gut says probably.

You could argue your username is really BTC, but the forum doesn't display it properly Wink

I could, and it's probably for the best that it displays the way it currently does. I've refrained from mentioning anything like that. Thankfully you did - only because the last thing I need is someone to be all like: "Hey! You're not "BTC", bitcoin is decentralized - and belongs to no one! Reeeeeee!!". That's kind of why I edited my very first post on the forum, made note of the change/when it happened, and described my reasoning behind it.

BTC

PowerGlove
Hero Member
*****
hacker
Offline

Activity: 705
Merit: 7213



View Profile
Today at 10:20:28 AM
#28

I don't really see the problem here: if someone creates a username that can't easily be typed: let them Smiley
Yep. (Though, to be pedantic: it's their display name that I have an issue with, not their username; probably their username is not a BBCode tag.)

I guess it irritates me mostly from a technical perspective:

(*) Allowing BBCode-like display names leaves open an easily-closable avenue that slowly subtracts from the available BBCode "namespace". I know that that's a confusing sentence, but, what I mean is: Let's say someone decides/decided to call themselves [hide]? That would irritate me, because it would complicate this patch (as in, if the hypothetical user named [hide] were still active or could become active again, then I would not be able to pick hide for a tag name, and if that user were inactive and couldn't become active again, then I would need to date-gate the logic to avoid catching old mentions of their name; I mean, I probably should always include date-gating logic with any tag-introducing patch, but that thought doesn't take much away from the argument that I'm trying to make here).

(*) Allowing BBCode-like display names is the kind of trade-off that just... doesn't make sense to me. For example, what if someone wanted to be called [sup], [nbsp], or [/code]? Think about how those names interact with various posting norms and with most people's BBCode proficiency.
LoyceV
Legendary
*
Offline

Activity: 4102
Merit: 22279


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
Today at 10:48:13 AM
#29

Usually people use quotes when reaponding to me, and it spells out my full username properly at the top of the quote.
You could argue your username is really BTC, but the forum doesn't display it properly Wink

Allowing BBCode-like display names is the kind of trade-off that just... doesn't make sense to me.
Bitcointalk is (once again) the only forum I know that barely has any limitations. There are usernames that annoy me much more than BBCode:




ئ


q7l9
С
дû

ţ̿5K
Seo Вроцлав Rar
Виагра 911
омг onion
ссылка на омг
сервисные цен

uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
shahzadafzal
Copper Member
Legendary
*
Offline

Activity: 2240
Merit: 3422



View Profile
Today at 10:57:25 AM
#30


Bitcointalk is (once again) the only forum I know that barely has any limitations. There are usernames that annoy me much more than BBCode:




ئ


q7l9
С
дû

ţ̿5K
Seo Вроцлав Rar
Виагра 911
омг onion
ссылка на омг
сервисные цен

That's so true.. every link in below post is username :p
And not all of those are that annoying e.g. (.)(.)


Just had some free time and was doing some random searches on the member names and found out that almost all the alphabets from A - Z have been taken as username.
Except for G (the closest I found is G0).

Username______________Rank____________________________JoinDate
ABrand new26-04-2011
BNewbie26-04-2011
CNewbie09-11-2011
DBrand new01-09-2013
EFull Member07-05-2011
FNewbie07-04-2013
G0Newbie09-09-2012
HBrand new01-09-2013
IBrand new11-09-2011
JBrand new16-09-2012
KSr. Member19-04-2011
LFull Member01-09-2013
MBrand new12-06-2011
NBrand new02-02-2013
OMember17-06-2011
PNewbie20-06-2014
QNewbie07-04-2013
RNewbie13-07-2011
SNewbie17-04-2011
TNewbie11-07-2011
UFull Member22-04-2014
VNewbie19-08-2011
WNewbie18-05-2011
XBrand new10-08-2011
YBrand new28-04-2014
ZNewbie13-08-2010

And here is the list of some other interesting usernames:

Username______________Rank____________________________JoinDate
1Brand new12-09-2011
0XJr. Member27-06-2011
-Jr. Member15-05-2011
2Brand new24-03-2012
8Newbie01-06-2011
.Newbie07-04-2013
*Newbie19-06-2013
*.Newbie25-04-2014
-.-Brand new22-07-2011
~.~Brand new05-12-2014
^.^Member31-10-2014
^Brand new23-07-2011
,Newbie19-06-2013
?Member16-11-2012
!Brand new22-08-2012
@Newbie07-05-2014
SadBrand new14-06-2015
(^_^)Newbie18-11-2012
(.)(.)Newbie09-09-2015
(*)(*)Newbie14-03-2015
FUCKNewbie01-10-2011

And trust me think of any other "bad" word you will find username taken Smiley


░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
Pages: « 1 [2]  All
  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!