Misc Links
Forum Archive
News Archive
File DB



Latest Forum Topics
wow 56 k modems are
Posted by Red Squirrel
on Oct 14 2013, 11:52:23 pm

I Need A Program
Posted by rovingcowboy
on Sep 23 2013, 5:37:59 pm

having trouble witn lan
Posted by rovingcowboy
on Sep 23 2013, 5:40:56 pm

new problem for me
Posted by rovingcowboy
on Sep 23 2013, 5:54:09 pm

RBC Royal Bank
Posted by Red Squirrel
on Aug 13 2013, 6:48:08 pm


BBcode editor: PHP - The sensible approach
More with bbcode
By Jonathan Street

Why not give it a try with the following

[color=red]Red[/color][size=16]Size 16[/size]
[font=verdana]different font[/font][align=right]right[/align]
[quote=Me]some great idea[/quote][code][/code]
[url= http://www.iceteks.com]Chilly[/url]
[email=me@somesite.com]send me an email[/email]
[*]ordered numbered 1
[*]ordered numbered 2
[*]ordered style i
[*]ordered style ii
[*]ordered style I
[*]ordered style II
[list=1 s=10]
[*]numbered but not starting at 1
[*]numbered but not starting at 1

Nested lists are also possible but hopefully that little sample should give you a feel for the capabilities of the package.

Handling bbcode doesn’t need to end with the filters bundled in with the package, extending it is relatively easy but I hope you now feel comfortable with what HTML_BBCodeParser has to offer.

BBcode is not the only way your users can submit formatted content. If you want to give your users more choice you may have better luck with a different package available via the PEAR site. The Text_Wiki package and its associated packages allow several different forms of mark-up to be used as well as BBcode.

Alternatively if you want to avoid transforming your users’ content from one format into (X)HTML you could just allow them to post in HTML. There are dangers in this and steps would have to be taken to prevent malicious code being displayed on your site but it does give your users far greater power in creating their content. If you do go down this route you may like to make available one of the javascript based WYSIWYG editors which have become more commonplace recently. TinyMCE seems popular but is by no means the only option.

However you decide to allow your users to submit their own formatted content take a look at what is already available. This is an issue which is facing many webmasters and application developers and as such many of the options have already been investigated. Don’t re-invent the wheel unless you have to.

If you're interested in giving Text_Wiki a try you may like to check my Web application blog over the coming weeks as I intend to give it a try and will no doubt be posting about my experiences.

25134 Hits Pages: [1] [2] [3] 2 Comments

Latest comments (newest first)
Posted by Streety on August 08th 2006 (14:37)
What can I say richardj, I've learnt a lot since the first two articles.

I've just made a new post on my blog looking in detail at Text_Wiki_BBCode. It has some potential uses but HTML_BBCodeParser would still be my pick.

Posted by richardj on August 08rd 2006 (19:10)
QUOTE (Red Squirrel @ Aug 2 2006, 07:35 PM)
In truth, as complex as I thought the problem was, in reality it was probably more complex still.


user posted image em319.gif

View all comments
Post comment

Top Articles Latest Articles
- What are .bin files for? (669062 reads)
- Text searching in linux with grep (161180 reads)
- Big Brother and Ndisuio.sys (150471 reads)
- PSP User's Guide (139547 reads)
- SPFDisk (Special Fdisk) Partition Manager (117240 reads)
- How to Use MDADM Linux Raid (188 reads)
- What is Cloud Computing? (1225 reads)
- Dynamic Forum Signatures (version 2) (8769 reads)
- Successfully Hacking your iPhone or iTouch (18714 reads)
- Ultima Online Newbie Guide (35906 reads)
corner image

This site best viewed in a W3C standard browser at 800*600 or higher
Site design by Red Squirrel | Contact
© Copyright 2020 Ryan Auclair/IceTeks, All rights reserved