Calculating bbcode_bitfield

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Get Involved
Locked
GibsonLP
Registered User
Posts: 65
Joined: Wed Aug 17, 2005 8:06 am

Calculating bbcode_bitfield

Post by GibsonLP » Mon Jan 10, 2011 9:26 pm

Hi,
I am trying to help a friend migrate from a proprietary forum to phpBB3, everything looks okay except we don't know how to calculate bbcode_bitfield, how can we calculate the bitfield?

Thanks.

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Calculating bbcode_bitfield

Post by Erik Frèrejean » Mon Jan 10, 2011 9:34 pm

Some information on it can be found here: How to: template_bitfield and BBcodes. Its basically an bitfield constructed out of the BBCode IDs used in the post.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Calculating bbcode_bitfield

Post by D¡cky » Mon Jan 10, 2011 11:20 pm

The convertors to phpBB3 pass the posts and signatures through the message parser. This is where the bbcode_uid and bbcode_bitfield are calculated. Have a look in includes/message_parser.php.
Have you hugged someone today?

GibsonLP
Registered User
Posts: 65
Joined: Wed Aug 17, 2005 8:06 am

Re: Calculating bbcode_bitfield

Post by GibsonLP » Tue Jan 11, 2011 4:19 am

Thanks guys.

GibsonLP
Registered User
Posts: 65
Joined: Wed Aug 17, 2005 8:06 am

Re: Calculating bbcode_bitfield

Post by GibsonLP » Tue Jan 11, 2011 4:43 am

If I understood it right - the bitfield is simply a uuencoded representation of a list of included bbcode tags?
What about custom bbcode tags? are they not being calculated as well?

In any case - the forum from which my friend is moving doesn't support anything other than quote, would it be safe to say that the converter can simply use gA== in the bitfield whenever a quote is used...?

Thanks again.

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Calculating bbcode_bitfield

Post by D¡cky » Tue Jan 11, 2011 5:03 am

GibsonLP wrote:gA== in the bitfield whenever a quote is used
I haven't tested, but taking a quick look, it looks like you are correct. The worst that can happen if it is wrong, is the post won't render properly.
Have you hugged someone today?

Locked

Return to “[3.0.x] Convertors”