LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2004, 03:58 PM   #1
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Question use BBCode in PHP script


Hello!

I want to write a page in PHP, users can post there some ideeas or something like that. Just like a guestbook. I want that users can post with BBCode. How do I use that? Do I have to make "str_replace" for each tag to use a html tag or is there a special function in PHP? The messages will be stored in an MySQL table.

Thank you for any help!
Boby
 
Old 08-21-2004, 04:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
There is no inbuilt php function but for a good example just look at phpBB:
http://cvs.sourceforge.net/viewcvs.p...des/bbcode.php
 
Old 08-22-2004, 11:01 AM   #3
eeyoree
Member
 
Registered: Aug 2004
Distribution: Slackware Ten
Posts: 34

Rep: Reputation: 15
especially from phpbb version 1.xx - a good example for bbcode parser for beginner

thats what currently used on my blog/guestbook
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
issues with mirc script accessing our php script dtra Linux - Software 2 07-02-2005 04:30 PM
Need help with php script sendas4 Programming 3 07-01-2005 02:07 PM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM
converting shell script to php script ? ibro Linux - General 6 05-24-2004 05:19 AM
BBCode and Smiley button issue revived... sewer_monkey LQ Suggestions & Feedback 2 06-27-2002 09:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration