Bitcoin Forum

Other => Meta => Topic started by: Initscri on August 21, 2018, 12:12:04 AM



Title: Any Custom BB Codes?
Post by: Initscri on August 21, 2018, 12:12:04 AM
I'm looking to sort-of reverse engineer SMF in order to create a tool for bb codes. I may release this publicly.

I just wanted to know if BitcoinTalk leverages any custom BB codes other than the Basic SMF ones listed here: https://wiki.simplemachines.org/smf/Basic_Bulletin_Board_Codes

I'm not entirely sure who would have knowledge of this, whether it be just Theymos, or perhaps other users have used them in the past.
Just wanting to make sure before jumping into development in the future!


Title: Re: Any Custom BB Codes?
Post by: pugman on August 21, 2018, 12:20:49 AM
BB codes can't be exactly customized, right? And since this is an SMF forum, obviously only those would be able to be used here.

The ones that bitcointalk supports are here: https://bitcointalk.org/index.php?action=help;page=post#bbcref


Title: Re: Any Custom BB Codes?
Post by: Initscri on August 21, 2018, 12:35:52 AM
BB codes can't be exactly customized, right? And since this is an SMF forum, obviously only those would be able to be used here.

The ones that bitcointalk supports are here: https://bitcointalk.org/index.php?action=help;page=post#bbcref

Technically speaking, you are able to extend onto SMF adding custom BB codes through the use of plugins/modifications; and that may not update the help page for SMF directly (I'm unsure if SMF would detect this, and considering those codes have explanations, I'm doubting that would be automatic).

Most likely, BitcoinTalk doesn't leverage any custom BB codes, but I'm just wanting to make sure. So as such, there may be BB codes that only a select few users know about, but I would still wish to include them within my code (provided they are publicly available for use). Just wanting to factor in that possibility :)

Thanks for that link though, wasn't able to find that help page directly.


Title: Re: Any Custom BB Codes?
Post by: pugman on August 21, 2018, 02:25:38 PM
Technically speaking, you are able to extend onto SMF adding custom BB codes through the use of plugins/modifications; and that may not update the help page for SMF directly (I'm unsure if SMF would detect this, and considering those codes have explanations, I'm doubting that would be automatic).

Most likely, BitcoinTalk doesn't leverage any custom BB codes, but I'm just wanting to make sure. So as such, there may be BB codes that only a select few users know about, but I would still wish to include them within my code (provided they are publicly available for use). Just wanting to factor in that possibility :)

Thanks for that link though, wasn't able to find that help page directly.
Thing is, this forum is a customized version of SMF and its very complicated, so only theymos can actually tell if you can use custom BB codes or not. I have tried using basic HTML tags(that aren't mentioned in the BB code list), and most of them if not all of them, didn't work.


Title: Re: Any Custom BB Codes?
Post by: vlad230 on August 21, 2018, 02:44:27 PM
I'm looking to sort-of reverse engineer SMF in order to create a tool for bb codes. I may release this publicly.

I just wanted to know if BitcoinTalk leverages any custom BB codes other than the Basic SMF ones listed here: https://wiki.simplemachines.org/smf/Basic_Bulletin_Board_Codes

I'm not entirely sure who would have knowledge of this, whether it be just Theymos, or perhaps other users have used them in the past.
Just wanting to make sure before jumping into development in the future!
There are a few custom ones but not that much.
It's cool you're trying to create one yourself but I'm wondering if this won't be overkill since there are loads of BBcode tools online: https://www.google.com/search?q=bbcode+generator&oq=bbcode+generator&aqs=chrome.0.0l6.3383j0j7&sourceid=chrome&ie=UTF-8

Unless you're trying to create something different, of course ;)


BB codes can't be exactly customized, right? And since this is an SMF forum, obviously only those would be able to be used here.

The ones that bitcointalk supports are here: https://bitcointalk.org/index.php?action=help;page=post#bbcref
I'm not sure if this is the final version used here. For example I can see the BTC symbol appears when I write a reply but I don't see it in that list:
https://i.imgur.com/09v6KcP.png



Title: Re: Any Custom BB Codes?
Post by: Initscri on August 21, 2018, 04:58:34 PM
I'm looking to sort-of reverse engineer SMF in order to create a tool for bb codes. I may release this publicly.

I just wanted to know if BitcoinTalk leverages any custom BB codes other than the Basic SMF ones listed here: https://wiki.simplemachines.org/smf/Basic_Bulletin_Board_Codes

I'm not entirely sure who would have knowledge of this, whether it be just Theymos, or perhaps other users have used them in the past.
Just wanting to make sure before jumping into development in the future!
There are a few custom ones but not that much.
It's cool you're trying to create one yourself but I'm wondering if this won't be overkill since there are loads of BBcode tools online: https://www.google.com/search?q=bbcode+generator&oq=bbcode+generator&aqs=chrome.0.0l6.3383j0j7&sourceid=chrome&ie=UTF-8

Unless you're trying to create something different, of course ;)


BB codes can't be exactly customized, right? And since this is an SMF forum, obviously only those would be able to be used here.

The ones that bitcointalk supports are here: https://bitcointalk.org/index.php?action=help;page=post#bbcref
I'm not sure if this is the final version used here. For example I can see the BTC symbol appears when I write a reply but I don't see it in that list:
https://i.imgur.com/09v6KcP.png



Yup, BTC one I completely forgot about. Any others?

It's more or less a tool more targeted towards BBCode used on BitcoinTalk, for myself primarily. But I'll release it if it's useful for the community.


Title: Re: Any Custom BB Codes?
Post by: pugman on August 21, 2018, 06:53:25 PM
I'm not sure if this is the final version used here. For example I can see the BTC symbol appears when I write a reply but I don't see it in that list:
<...>
Yup, BTC one I completely forgot about. Any others?
Now that you mention it, the thing that came to mind is this: https://bitcointalk.org/index.php?topic=1782017.0

So I guess, it is *possible*, but you can ask mprep for more help.


Title: Re: Any Custom BB Codes?
Post by: Initscri on August 21, 2018, 07:03:25 PM
I'm not sure if this is the final version used here. For example I can see the BTC symbol appears when I write a reply but I don't see it in that list:
<...>
Yup, BTC one I completely forgot about. Any others?
Now that you mention it, the thing that came to mind is this: https://bitcointalk.org/index.php?topic=1782017.0

So I guess, it is *possible*, but you can ask mprep for more help.

Yea, looking at the extension it doesn't look like it's BB code generated.
Just looks like it's additional icons attached to the editor, which then uses the unicode characters as symbols.

IE, It's purely frontend (extension-based), not backend so it wouldn't be applicable I don't believe (unless mprep added something to SMF on the backend, which I doubt)

Look's like the only BB code that would be extra that I didn't think of is the BTC one.


Title: Re: Any Custom BB Codes?
Post by: morvillz7z on August 21, 2018, 07:14:22 PM
The ones that bitcointalk supports are here: https://bitcointalk.org/index.php?action=help;page=post#bbcref


Think we have some bbcodes that are not in that list but does work here, as well as some ''hidden'' smileys.

Would be great if someone adds to any of the bbcode guides, detailed explanation of how to use the 'anchor' and 'iurl' tags, for example:

Code:
[anchor=top][iurl=#bottom]Go to bottom of page[/iurl][/anchor]

[anchor=bottom][iurl=#top]Back to top[/iurl][/anchor]

or

Code:
[iurl=#point1]go to point1[/iurl]
[iurl=#point2]go to point2[/iurl]

[anchor=point1]point 1[/anchor]
[anchor=point2]point 2[/anchor]




The 'noparse' tag kinda works. If you have resized image which redirects to original image source, adding the noparse after url= will make the image non-clickable

Code:
[url=noparse your image][img width=100]your image[/img][/url]

Without noparse:

https://i.imgur.com/cToXkmo.jpg (https://i.imgur.com/cToXkmo.jpg)

and with:

https://i.imgur.com/cToXkmo.jpg (http://noparse https://i.imgur.com/cToXkmo.jpg)

We can use the 'acronym' tag along with images too:

Code:
[acronym=your text][url=your image][img width=100]your image[/img][/url][/acronym]

example:

https://i.imgur.com/cToXkmo.jpg (https://i.imgur.com/cToXkmo.jpg)




If we want a certain url/website link to be non-clickable we just add the
Code:
[i][/i]
inside ''https'' or ''www''

Code:
ht[i][/i]tps://your link/

example:

https://www.google.com/




Here are the smileys:

Code:
>:D   evil

^-^   asian

O0   afro

C:-)   police

Quote
>:D   evil

^-^   asian

O0   afro

C:-)   police


Title: Re: Any Custom BB Codes?
Post by: Initscri on August 21, 2018, 11:30:29 PM
@morvillz7z: Thanks man! That helps a lot!



Title: Re: Any Custom BB Codes?
Post by: theymos on August 22, 2018, 12:30:03 AM
[btc] is the only custom tag. Some other behavior of the bbcode parser was changed, but it's more stylistic than semantic, like disabling certain tags in some contexts.

If someone wrote a bbcode parser that was 99.9% compatible with the SMF bbcode parser but was based on traditional parsing (ie. lex+yacc-style), that'd be useful. The current regex monstrosity really sucks.


Title: Re: Any Custom BB Codes?
Post by: Initscri on August 22, 2018, 08:22:08 AM
[btc] is the only custom tag. Some other behavior of the bbcode parser was changed, but it's more stylistic than semantic, like disabling certain tags in some contexts.

If someone wrote a bbcode parser that was 99.9% compatible with the SMF bbcode parser but was based on traditional parsing (ie. lex+yacc-style), that'd be useful. The current regex monstrosity really sucks.

Awesome, Thanks theymos!

And yeah, I agree. I looked at the source code for the BBcode parser for SMF and I wasn't exactly smiling about it. 1645 lines of a mess TBH.


Title: Re: Any Custom BB Codes?
Post by: tactac on August 23, 2018, 10:00:10 PM
You can use these codes instead of BBcode ;D

smile
  • (^―^)
  • (*^-^*)
  • ( ´∀`)

angry
  • (`・д・´)
  • (`A´)

sad
  • (´_`。)
  • (´A`。)

sorry
  • m(_ _)m
  • SOЯЯY_φ(´c_`。ヾ)。

ok
  • (○´3`)ノ
  • (O´∀`K)b


no
  • (×ω×)
  • ( ̄乂 ̄)


Title: Re: Any Custom BB Codes?
Post by: finaleshot2016 on August 24, 2018, 03:42:29 AM
Snip
These emoticons are just made up of symbols. I always see these in some smart phones. Is there any other icons can be used like the ASCII blocks?

Quote
>:D   evil ^-^   asian  O0   afro  C:-)   police

It's my first time to see these icons. Afro is lit.
I just only know some important BBCodes for creating signatures. Here's my tutorial in creating signatures using BBcodes in my local board. https://bitcointalk.org/index.php?topic=4495717.msg40449923#msg40449923

O0


Title: Re: Any Custom BB Codes?
Post by: yefi on October 21, 2018, 02:26:07 PM
Quote
>:D   evil

^-^   asian

O0   afro

C:-)   police

Thanks, was searching for those hidden smilies.

I don't know how this could possibly help anyone, but there's also the IRC emote [me] tag. You usually trigger it by /me, but you can execute it for any user with:
 
Code:
[me=username][/me]

E.g.

/me sobs before regex hell