Suspecting beta release very very soon!

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Suspecting beta release very very soon!

Post by Highway of Life »

Okay, so the limit is 31, not 20?
And sorry for the questions, but...
1) Can the limit be used in the DB instead of the files?
2) If it can't be used in the DB, can the limit be raised in the file?
Image
Lieutenant Clone
Registered User
Posts: 161
Joined: Tue Feb 28, 2006 6:13 pm

Re: Suspecting beta release very very soon!

Post by Lieutenant Clone »

Ok so if BBCode is the perfect solution, and and HTML can be made with BBCode... we are now limited by 31. So not all html tags can be made into BBCode, not to mention the different combos you could make with CSS and such, so really we are screwed :mrgreen: .
Dennis Robinson
Image
APTX
Registered User
Posts: 680
Joined: Thu Apr 24, 2003 12:07 pm

Re: Suspecting beta release very very soon!

Post by APTX »

No you cannot add 31 BBCodes... this number includes predinined BBCodes.
Don't give me my freedom out of pity!
NeoThermic
Registered User
Posts: 198
Joined: Fri Jan 02, 2004 3:44 pm
Location: United Kingdom
Contact:

Re: Suspecting beta release very very soon!

Post by NeoThermic »

Highway of Life wrote: Okay, so the limit is 31, not 20?
And sorry for the questions, but...
1) Can the limit be used in the DB instead of the files?
2) If it can't be used in the DB, can the limit be raised in the file?

The limit is indeed 31, but it is a limitation of the PHP language and the way BBCodes are used. We are looking into ways around the problem, so there won't be this low limit at release.

NeoThermic
phpBB release date pool!
The NeoThermic.com... a well of information. Ask me for the bit bucket so you can drink its goodness. ||新熱です
Lieutenant Clone
Registered User
Posts: 161
Joined: Tue Feb 28, 2006 6:13 pm

Re: Suspecting beta release very very soon!

Post by Lieutenant Clone »

Good to hear.
Dennis Robinson
Image
User avatar
th23
Registered User
Posts: 112
Joined: Sat Jul 03, 2004 4:26 pm
Location: Bonn, Germany
Contact:

Re: Suspecting beta release very very soon!

Post by th23 »

May you give us an indication where to look to understand what is the limitation "31" based on?
NeoThermic
Registered User
Posts: 198
Joined: Fri Jan 02, 2004 3:44 pm
Location: United Kingdom
Contact:

Re: Suspecting beta release very very soon!

Post by NeoThermic »

th23 wrote: May you give us an indication where to look to understand what is the limitation "31" based on?

It comes down to PHP's datatypes and the bitshifting that phpBB does.

in bbcode.php:

Code: Select all

if ($this->bbcode_bitfield & (1 << $bbcode_id))
if $bbcode_id is 30, that line of code will return something ala:

Code: Select all

>php -n -r "var_dump(1 << 30);"
int(1073741824)
Where as, if its 31:

Code: Select all

>php -n -r "var_dump(1 << 31);"
int(-2147483648)
NeoThermic
phpBB release date pool!
The NeoThermic.com... a well of information. Ask me for the bit bucket so you can drink its goodness. ||&#26032;&#29105;&#12391;&#12377;
User avatar
th23
Registered User
Posts: 112
Joined: Sat Jul 03, 2004 4:26 pm
Location: Bonn, Germany
Contact:

Re: Suspecting beta release very very soon!

Post by th23 »

Thanks... even though i'm still not completely understanding what is going to happen in those lines... bus I'll have a look in the morning, when my brain starts working again ;)
Yoda_IRC
Registered User
Posts: 158
Joined: Tue Mar 01, 2005 10:19 pm

Re: Suspecting beta release very very soon!

Post by Yoda_IRC »

Are you using PHP_INT_MAX to determine the limit?

I certianly hope you are because according the PHP manual the maximum size of an integer can be anything.
the PHP manual wrote: The size of an integer is platform-dependent
this means you have no way of knowing when writing the script what the maximum space is going to be.
Lieutenant Clone
Registered User
Posts: 161
Joined: Tue Feb 28, 2006 6:13 pm

Re: Suspecting beta release very very soon!

Post by Lieutenant Clone »

Im sure this has been disscussed before, but could you please infrom me what the BBCode Id's accually do? As far as I can tell, they are just really annoying and take up extra parse time. I first met the buggers while trying to build a custom BBCode parser for a news script to be fed off the phpbb database (not fun BTW).

Ive been wondering this for a hella long time, would be nice to clear it up.
Dennis Robinson
Image
Post Reply