Suspecting beta release very very soon!
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!
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!
- 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!
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?
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?
-
- Registered User
- Posts: 161
- Joined: Tue Feb 28, 2006 6:13 pm
Re: Suspecting beta release very very soon!
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 .
Re: Suspecting beta release very very soon!
No you cannot add 31 BBCodes... this number includes predinined BBCodes.
Don't give me my freedom out of pity!
-
- Registered User
- Posts: 198
- Joined: Fri Jan 02, 2004 3:44 pm
- Location: United Kingdom
- Contact:
Re: Suspecting beta release very very soon!
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. ||新熱です
The NeoThermic.com... a well of information. Ask me for the bit bucket so you can drink its goodness. ||新熱です
-
- Registered User
- Posts: 161
- Joined: Tue Feb 28, 2006 6:13 pm
Re: Suspecting beta release very very soon!
May you give us an indication where to look to understand what is the limitation "31" based on?
-
- Registered User
- Posts: 198
- Joined: Fri Jan 02, 2004 3:44 pm
- Location: United Kingdom
- Contact:
Re: Suspecting beta release very very soon!
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))
Code: Select all
>php -n -r "var_dump(1 << 30);"
int(1073741824)
Code: Select all
>php -n -r "var_dump(1 << 31);"
int(-2147483648)
phpBB release date pool!
The NeoThermic.com... a well of information. Ask me for the bit bucket so you can drink its goodness. ||新熱です
The NeoThermic.com... a well of information. Ask me for the bit bucket so you can drink its goodness. ||新熱です
Re: Suspecting beta release very very soon!
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
Re: Suspecting beta release very very soon!
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.
I certianly hope you are because according the PHP manual the maximum size of an integer can be anything.
this means you have no way of knowing when writing the script what the maximum space is going to be.the PHP manual wrote: The size of an integer is platform-dependent
-
- Registered User
- Posts: 161
- Joined: Tue Feb 28, 2006 6:13 pm
Re: Suspecting beta release very very soon!
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.
Ive been wondering this for a hella long time, would be nice to clear it up.