Bitcoin Forum
April 26, 2024, 11:17:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Any Custom BB Codes?  (Read 396 times)
Initscri (OP)
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 759


View Profile WWW
August 21, 2018, 12:12:04 AM
 #1

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!

----------------------------------
Web Developer. PM for details.
----------------------------------
1714173465
Hero Member
*
Offline Offline

Posts: 1714173465

View Profile Personal Message (Offline)

Ignore
1714173465
Reply with quote  #2

1714173465
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714173465
Hero Member
*
Offline Offline

Posts: 1714173465

View Profile Personal Message (Offline)

Ignore
1714173465
Reply with quote  #2

1714173465
Report to moderator
1714173465
Hero Member
*
Offline Offline

Posts: 1714173465

View Profile Personal Message (Offline)

Ignore
1714173465
Reply with quote  #2

1714173465
Report to moderator
1714173465
Hero Member
*
Offline Offline

Posts: 1714173465

View Profile Personal Message (Offline)

Ignore
1714173465
Reply with quote  #2

1714173465
Report to moderator
pugman
Legendary
*
Offline Offline

Activity: 2383
Merit: 1551


dogs are cute.


View Profile WWW
August 21, 2018, 12:20:49 AM
 #2

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

Initscri (OP)
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 759


View Profile WWW
August 21, 2018, 12:35:52 AM
 #3

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 Smiley

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

----------------------------------
Web Developer. PM for details.
----------------------------------
pugman
Legendary
*
Offline Offline

Activity: 2383
Merit: 1551


dogs are cute.


View Profile WWW
August 21, 2018, 02:25:38 PM
 #4

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 Smiley

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.

vlad230
Sr. Member
****
Offline Offline

Activity: 616
Merit: 279



View Profile
August 21, 2018, 02:44:27 PM
 #5

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 Wink


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:


Initscri (OP)
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 759


View Profile WWW
August 21, 2018, 04:58:34 PM
 #6

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 Wink


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:




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.

----------------------------------
Web Developer. PM for details.
----------------------------------
pugman
Legendary
*
Offline Offline

Activity: 2383
Merit: 1551


dogs are cute.


View Profile WWW
August 21, 2018, 06:53:25 PM
 #7

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.

Initscri (OP)
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 759


View Profile WWW
August 21, 2018, 07:03:25 PM
 #8

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.

----------------------------------
Web Developer. PM for details.
----------------------------------
morvillz7z
Legendary
*
Offline Offline

Activity: 2170
Merit: 2019


Join the world-leading crypto sportsbook NOW!


View Profile
August 21, 2018, 07:14:22 PM
Merited by pugman (2), yefi (1), TryNinja (1), Initscri (1), vphasitha01 (1)
 #9

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:



and with:



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:






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
   evil

   asian

   afro

   police

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
Initscri (OP)
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 759


View Profile WWW
August 21, 2018, 11:30:29 PM
 #10

@morvillz7z: Thanks man! That helps a lot!


----------------------------------
Web Developer. PM for details.
----------------------------------
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5180
Merit: 12900


View Profile
August 22, 2018, 12:30:03 AM
 #11

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

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Initscri (OP)
Hero Member
*****
Offline Offline

Activity: 1540
Merit: 759


View Profile WWW
August 22, 2018, 08:22:08 AM
 #12

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

----------------------------------
Web Developer. PM for details.
----------------------------------
tactac
Full Member
***
Offline Offline

Activity: 448
Merit: 121


self made Full member (^-^)v


View Profile WWW
August 23, 2018, 10:00:10 PM
 #13

You can use these codes instead of BBcode Grin

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

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

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

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

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


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

finaleshot2016
Legendary
*
Offline Offline

Activity: 1722
Merit: 1007


Degen in the Space


View Profile WWW
August 24, 2018, 03:42:29 AM
Last edit: August 24, 2018, 07:15:20 AM by finaleshot2016
 #14

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
  evil   asian     afro     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

yefi
Legendary
*
Offline Offline

Activity: 2842
Merit: 1510



View Profile
October 21, 2018, 02:26:07 PM
 #15

Quote
   evil

   asian

   afro

   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.

* Theymos sobs before regex hell
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!