aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/bbcode.php
Commit message (Collapse)AuthorAgeFilesLines
* #8576Dominik Dröscher2007-03-091-1/+1
| | | | | | | Introducing percentage based font sizing for the font-site BBCode git-svn-id: file:///svn/phpbb/trunk@7157 89ea8834-ac86-4346-8a33-228a782c2dd0
* #8456David M2007-03-081-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@7147 89ea8834-ac86-4346-8a33-228a782c2dd0
* blah, no need to capture thisDavid M2007-03-021-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@7110 89ea8834-ac86-4346-8a33-228a782c2dd0
* #8374David M2007-03-021-3/+3
| | | | git-svn-id: file:///svn/phpbb/trunk@7107 89ea8834-ac86-4346-8a33-228a782c2dd0
* - some bugfixesMeik Sievertsen2007-01-091-1/+1
| | | | | | | - bugfixes for the convertor (typecasting for example was totally broken) git-svn-id: file:///svn/phpbb/trunk@6865 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Changed handling of the bitfield in bbcode.phpDavid M2006-12-171-18/+5
| | | | | | | - #6270, reverted to an earlier version of list handling + bug fixes git-svn-id: file:///svn/phpbb/trunk@6777 89ea8834-ac86-4346-8a33-228a782c2dd0
* rather large update, most important things done:Meik Sievertsen2006-11-241-4/+4
| | | | | | | | | | | - implemented provided patch/diff file for bug #5350 (Highway of Life) with some tiny changes and alterations - more username/colour changes/fixes - added a note about PM rule-dependant message removals so the user is not wondering too much if he can't remember his rules. :) - some column changes to fix unicode issues - bugfixes git-svn-id: file:///svn/phpbb/trunk@6650 89ea8834-ac86-4346-8a33-228a782c2dd0
* he braces style is deprecated as of PHP 6Meik Sievertsen2006-10-071-2/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
* fix custom bbcode html replacement to correctly replace referencesMeik Sievertsen2006-09-231-0/+6
| | | | | | | | | It failed if there was a number directly after the token, resulting in $12345, where $1 was needed. Fixed by using ${x} also made sure that newlines within the html replacement are not replaced with <br />. git-svn-id: file:///svn/phpbb/trunk@6391 89ea8834-ac86-4346-8a33-228a782c2dd0
* sql_in_set changesMeik Sievertsen2006-08-121-7/+6
| | | | git-svn-id: file:///svn/phpbb/trunk@6271 89ea8834-ac86-4346-8a33-228a782c2dd0
* so.... what does this thing do?David M2006-08-111-2/+1
| | | | | | | | | | | well, the super fast, ultra efficient, massively huge BBCode handling system was implemented differently on each DBMS. Although this provided the best performance, the solution was a bit hacky. So what does this new thing do? We use base64 encoding to make everything nice and shiny, it turns into nice, safe characters that we can just jam into varchars on essentially any database. This has two implications: we must decode every bitfield we get AND we have slightly fewer IDs to work with. It goes down from 2040 BBCodes to 1512. We lose like a quarter of them :P P.S. I hope nothing broke :P git-svn-id: file:///svn/phpbb/trunk@6263 89ea8834-ac86-4346-8a33-228a782c2dd0
* OK...David M2006-07-241-25/+32
| | | | | | | | | | | | | | | | | | | | | | | | | This commit should increase the total number of BBCodes from 31 to 2040. Some things to watch out for: Each database likes to deal with binary data in its own, special way. They are, quite frankly, too cool for school. MySQL, MSSQL and Oracle all allow me to send in a default value for their binary column using a hex number. However, MSSQL forces me to send the specific data as a hex number and thus we must CAST it. PostgreSQL allows me to set a binary column, but with a twist. It demands that the default be in _octal_ and its datatype allows somewhere around a gigabyte's worth of BBCodes ( PGSQL users, we shut you down to 2040 for your own good! ) Firebird has no decent mechanism for allowing me to shuttle in binary data so I must force my way in. By virtue of triggers and a UDF, we ram in our default values. SQLite is the most bizarre of them all. They have no mechanism for turning an ASCII code into a ASCII character. Because of this, we have a trigger and a UDF (just like Firebird!) but with a twist! The UDF is defined on the PHP side of things instead of SQL. SQLite also demands that it's data be encoded before being sent off. Other notes: - SQLite installs again :D - Firebird nearly installs again :P - Database backup is not screwed up :P P.S. I hope nothing broke :D git-svn-id: file:///svn/phpbb/trunk@6209 89ea8834-ac86-4346-8a33-228a782c2dd0
* fix some bugs... again. :)Meik Sievertsen2006-07-101-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@6165 89ea8834-ac86-4346-8a33-228a782c2dd0
* what? yeah...David M2006-06-201-1/+1
| | | | | | | | - turns out the backup issue was not a backup issue but a schema issue - let there be color git-svn-id: file:///svn/phpbb/trunk@6105 89ea8834-ac86-4346-8a33-228a782c2dd0
* - removed db cache (might re-appear, but for now we do not see the need for it)Meik Sievertsen2006-06-161-2/+5
| | | | | | | | | | | - all changes to styles/subsilver/template are purely cosmetic (no functional changes) - cosmetics - bugfixes - add index to modules table - use modules ordering code for forums too git-svn-id: file:///svn/phpbb/trunk@6073 89ea8834-ac86-4346-8a33-228a782c2dd0
* erm, ok, my fault. :/Meik Sievertsen2006-06-141-48/+46
| | | | git-svn-id: file:///svn/phpbb/trunk@6067 89ea8834-ac86-4346-8a33-228a782c2dd0
* make sure custom profile fields are created correctly on registration (#2225)Meik Sievertsen2006-06-131-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@6058 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fixed a few bugsMeik Sievertsen2006-06-111-139/+200
| | | | | | | | | | | - added user_add() function - check posted images ([img]) for same domain/scipt and php files - auth_api.html updated to the coding guidelines look&feel - introduced ability to force non page-updates (cron is using it) - correctly resend coppa email git-svn-id: file:///svn/phpbb/trunk@6048 89ea8834-ac86-4346-8a33-228a782c2dd0
* - BBCode bugsDavid M2006-06-101-0/+1
| | | | | | | - PostgreSQL now gives us database info (if you are running 8.1 or have the dbsize contrib module installed) git-svn-id: file:///svn/phpbb/trunk@6042 89ea8834-ac86-4346-8a33-228a782c2dd0
* - get every bbcode tpl block defined within bbcode.html. ;) (#1889)Meik Sievertsen2006-05-281-1/+6
| | | | git-svn-id: file:///svn/phpbb/trunk@5977 89ea8834-ac86-4346-8a33-228a782c2dd0
* some tiny changes...Meik Sievertsen2006-05-261-1/+7
| | | | git-svn-id: file:///svn/phpbb/trunk@5967 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fixing a few smaller bugs/glitchesMeik Sievertsen2006-05-211-0/+5
| | | | | | | | - init user session in cron.php (else it can produce errors if functions expect the user object being set) - fix sql escaping for mssql/mssql_odbc git-svn-id: file:///svn/phpbb/trunk@5957 89ea8834-ac86-4346-8a33-228a782c2dd0
* #1327Meik Sievertsen2006-03-271-2/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@5737 89ea8834-ac86-4346-8a33-228a782c2dd0
* - file_get_contents instead of imploding file()s or fread()ing till the ↵David M2006-01-041-7/+9
| | | | | | | | | | | | | | | maximum filesize - language and style properly use compression - language now prompts user for methods - functions_compress does not need to eval() to get a hex date, instead calls pack() - A writing method is defined at the end of tar operations only if data has been sent to the archive - BBCode parser does not have to eval(), it instead uses the regex to loop around the matches Hopefully nothing broke :-) git-svn-id: file:///svn/phpbb/trunk@5422 89ea8834-ac86-4346-8a33-228a782c2dd0
* - ok, get away with the secondary style approach (styles can be mixed ↵Meik Sievertsen2005-12-221-14/+2
| | | | | | | | | | together easily with the acp) - introduce a more generic approach of defining some additional variables through cfg files as well as the name, copyright and version fields - please note that at the moment this is in flux. I added it now for Tom because he needs the theme parameters. git-svn-id: file:///svn/phpbb/trunk@5372 89ea8834-ac86-4346-8a33-228a782c2dd0
* - added acp_language (language pack management)Meik Sievertsen2005-11-301-9/+9
| | | | | | | - minor adjustments to cope with PHP5.x git-svn-id: file:///svn/phpbb/trunk@5315 89ea8834-ac86-4346-8a33-228a782c2dd0
* - Documentation related changesMeik Sievertsen2005-04-091-15/+13
| | | | | | | | | | - added resend activation email dialog - fixed issue in session code - log failed/successful admin re-authentication/login - fixed simple forum dropdown box (used in mcp and posting) git-svn-id: file:///svn/phpbb/trunk@5114 89ea8834-ac86-4346-8a33-228a782c2dd0
* - bugfixesMeik Sievertsen2005-01-151-1/+0
| | | | | | | - do not hardcode url bbcode tag (please change the bitfield accordingly - see schema file!) git-svn-id: file:///svn/phpbb/trunk@5063 89ea8834-ac86-4346-8a33-228a782c2dd0
* - some fixes/changesMeik Sievertsen2004-12-191-1/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@5035 89ea8834-ac86-4346-8a33-228a782c2dd0
* - letting urls work again, fixing [code] breakage on urls, corrected ↵Meik Sievertsen2004-11-141-2/+18
| | | | | | | | | magic_url to be able to parse urls at the beginning/end of bbcode blocks - fixed "edited by" message. git-svn-id: file:///svn/phpbb/trunk@5027 89ea8834-ac86-4346-8a33-228a782c2dd0
* - a bunch of updates, most of them bbcode relatedMeik Sievertsen2004-11-061-13/+18
| | | | git-svn-id: file:///svn/phpbb/trunk@5023 89ea8834-ac86-4346-8a33-228a782c2dd0
* - more updates, mostly bugfixes to the bbcode parserMeik Sievertsen2004-09-161-16/+17
| | | | | | | | | | | - changed current_user in sessions (please review) - give more flexibility to style authors in regard to the pagination elements - profile fields updates (included a sample constuct into viewtopic_body.html - have to be documented extensivly) - code optimizations (use of strpos, sizeof, loops not iterating functions on every call, memory savings...) - and last but not least --- hopefully not introduced more bugs than healthy (*cough*) git-svn-id: file:///svn/phpbb/trunk@4984 89ea8834-ac86-4346-8a33-228a782c2dd0
* my turn to break the forum (and at least pm's are no longer working - will ↵Meik Sievertsen2004-09-041-3/+23
| | | | | | not last long). HARRRR git-svn-id: file:///svn/phpbb/trunk@4978 89ea8834-ac86-4346-8a33-228a782c2dd0
* trouble oh trouble... trouble oh trouble... trou... SLAP!Meik Sievertsen2004-07-271-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@4939 89ea8834-ac86-4346-8a33-228a782c2dd0
* - approve/disapprove posts/topicsMeik Sievertsen2004-07-191-1/+1
| | | | | | | | - changed mcp_front to be more moderator friendly - able to change the forum in mcp_queue (for moderators moderating more than one forum) git-svn-id: file:///svn/phpbb/trunk@4937 89ea8834-ac86-4346-8a33-228a782c2dd0
* - forum rules + link to forum rulesMeik Sievertsen2004-05-301-3/+3
| | | | | | | | | - three new (tiny) functions added to functions_posting responsible for handling text with bbcode/smilies/urls, use them at items all over across phpbb... - some bugfixes within admin_forums and other files - new admin_board layout (much safer, security wise) git-svn-id: file:///svn/phpbb/trunk@4903 89ea8834-ac86-4346-8a33-228a782c2dd0
* fix some issues with oop, fixing small bugs and prepare the next steps...Meik Sievertsen2004-05-021-4/+2
| | | | | | | NOTE TO DEVS: have a look at adm/admin_board.php (new config layout) git-svn-id: file:///svn/phpbb/trunk@4883 89ea8834-ac86-4346-8a33-228a782c2dd0
* inline attachment capability...Meik Sievertsen2004-02-081-1/+7
| | | | git-svn-id: file:///svn/phpbb/trunk@4819 89ea8834-ac86-4346-8a33-228a782c2dd0
* do not parse smilies within code tagMeik Sievertsen2004-01-251-0/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@4764 89ea8834-ac86-4346-8a33-228a782c2dd0
* Not even worth a log msg ;)Ludovic Arnaud2003-11-161-24/+24
| | | | git-svn-id: file:///svn/phpbb/trunk@4670 89ea8834-ac86-4346-8a33-228a782c2dd0
* Let's break lots of thingsPaul S. Owen2003-10-121-2/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@4578 89ea8834-ac86-4346-8a33-228a782c2dd0
* username quoting should be working again...Meik Sievertsen2003-09-071-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@4485 89ea8834-ac86-4346-8a33-228a782c2dd0
* Added: admin definable bbcodesLudovic Arnaud2003-08-281-66/+106
| | | | | | | | Changed: preg references, use the prefered $n form instead of the old \\n one Fixed: tweaked PHP highlightning a little git-svn-id: file:///svn/phpbb/trunk@4453 89ea8834-ac86-4346-8a33-228a782c2dd0
* Correct pathname for templatePaul S. Owen2003-08-111-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@4378 89ea8834-ac86-4346-8a33-228a782c2dd0
* Less bug, more commentsLudovic Arnaud2003-08-101-6/+5
| | | | git-svn-id: file:///svn/phpbb/trunk@4370 89ea8834-ac86-4346-8a33-228a782c2dd0
* Primary / secondary style bbcode implementation. Not thoroughly tested yet ↵Ludovic Arnaud2003-08-101-7/+24
| | | | | | but my test board still functions so I guess it works ;) git-svn-id: file:///svn/phpbb/trunk@4363 89ea8834-ac86-4346-8a33-228a782c2dd0
* path change for bbcodePaul S. Owen2003-07-241-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@4329 89ea8834-ac86-4346-8a33-228a782c2dd0
* Cope with secondary (per forum) styles, probably other minor things too ... ↵Paul S. Owen2003-07-131-3/+5
| | | | | | there is a known permissions problem, will work on that soon. Ashe, the bbcode primary/secondary stuff may need some tightening, particularly since it only checks the bbcode_bitfield for the primary template (which may not exist as coped with later) ... I'll leave that to you to alter. git-svn-id: file:///svn/phpbb/trunk@4236 89ea8834-ac86-4346-8a33-228a782c2dd0
* Shifting bits appears to be faster than the pow() functionLudovic Arnaud2003-07-021-6/+6
| | | | git-svn-id: file:///svn/phpbb/trunk@4190 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix up display of sigs and bbcode for previewPaul S. Owen2003-06-241-18/+22
| | | | git-svn-id: file:///svn/phpbb/trunk@4170 89ea8834-ac86-4346-8a33-228a782c2dd0