|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
formatting again
I'm trying to write my own php forum. If the user enters to indicate thet they want that displayed as code how can I trap this on the output and format it correctly when a thread is displayed?
thx |
|
#2
|
|||
|
|||
|
RE: formatting again
Here's what this forum uses. I would suggest if you are looking for ideas on how to code your own forum, download one of the many already available and scour the code. You can gather plenty of good ideas, and you can also see alot of things to avoid!
$data = preg_replace("/ Code:
(.*?) "<p><blockquote><font size=1>code:</font><HR noshade size=1><pre>\1<br></pre><HR noshade size=1></blockquote><p>", $data); |
|
#3
|
|||
|
|||
|
RE: formatting again
Interesting stuff, thanks Matt. When I get the site up I'll definately put a link to here!
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > formatting again |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|