Code: Select all
# Defining a different template bitfield
template_bitfield = lNg=
Code: Select all
# Defining a different template bitfield
template_bitfield = lNg=
I'm trying to build a theme that doesn't use inline images. So I want to parse the img bbcode differently. I cannot for the life of me figure out how to do this. I can't find documentation, just this thread, and there's not much here either.CyberSliver wrote:The bitfield is a base64 encoded binary.
Since the bitfield currently holds 13 bits, each switching on/off 1 BBCode tag, 2 BYTEs are used (aka 1 WORD)
...
lNg= is Base64 and decodes to 94 D8 (Hex).
94 D8 = 38104 = 1001010011011000 = Quote, Url, Size, Code, List, Flash, Attachment.
kNg= is Base64 and decodes to 90 D8 (Hex).
90 DB = 37080 = 1001000011011000 = Quote, Url, Code, List, Flash, Attachment.
Code: Select all
$bits = 1001010011011000;
$bindec = bindec($bits); // 38104
$hex = dechex($bindec); // 94d8