Bitfield usage

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
websnail
New member
New member
Posts: 11
Joined: 14 Nov 2007, 09:08
Location: UK
Contact:

Bitfield usage

Postby websnail » 15 Nov 2007, 23:11

I think I've found most of the information I need about the new bitfield in these threads:
http://www.phpbb.com/community/viewtopi ... t=bitfield
http://area51.phpbb.com/phpBB/viewtopic ... 26&t=28439
... on phpBB.com but I thought I'd run this by here as well for a reality check too.

Now from what I can tell the bitfield is a neat way of storing the BBCodes that have actually been used in a post so that the system only tries to parse those it knows are in there, reducing the preg_replace() load or whatever their using to handle that.

... and based on this:
http://olympuswiki.naderman.de/Parsing_text

... I don't need to set this bitfield value manually but I do need to store whatever it is along with the "post" data.

That about right?

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Bitfield usage

Postby igorw » 16 Nov 2007, 07:27

Use the example here: http://olympuswiki.naderman.de/Parsing_text

Then the bitfield gets generated before parsing.

- we're poor!

websnail
New member
New member
Posts: 11
Joined: 14 Nov 2007, 09:08
Location: UK
Contact:

Re: Bitfield usage

Postby websnail » 16 Nov 2007, 09:51



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: DotNetDotCom.org [Bot], Mojeek [Bot] and 38 guests