![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| save message + predefined tags. when displaying, you could dump the message into a string, , Parse it for your pre-defined tags and str_replace them with HTML tags. You preserve the original tags that way and retain control -- Posted via http://dbforums.com | |||
| Advertisements |
| | #2 | ||
| pprince wrote: > save message + predefined tags. > when displaying, you could dump the message into a string, , Parse it > for your pre-defined tags and str_replace them with HTML tags. > You preserve the original tags that way and retain control Hmmmm, not sure if this is what I want. It requires the user to type some kind of code in the text isn't it? What I have in mind is something like MSWord or a WYSIWYG editor like FP: Highlight a piece of text and press a button to apply a start - and end tag for a H1-heading etc Thanks anyway! Nico | |||
| | #3 | ||
| "Mr. Clean" <mrclean@protctorandgamble.com> schrieb im Newsbeitrag news:MPG.19a2fdc0972fa4bc989a4e@news-server.austin.rr.com... > In article <3f3940df$0$28899$1b62eedf@news.euronet.nl>, nschuyt@hotmail.com > says... > > pprince wrote: > > > save message + predefined tags. > > > when displaying, you could dump the message into a string, , Parse it > > > for your pre-defined tags and str_replace them with HTML tags. > > > You preserve the original tags that way and retain control > > > > Hmmmm, not sure if this is what I want. It requires the user to type some > > kind of code in the text isn't it? > > What I have in mind is something like MSWord or a WYSIWYG editor like FP: > > Highlight a piece of text and press a button to apply a start - and end tag > > for a H1-heading etc > > Most of the BB systems have this functionality. > I know Invisionboard has it and its source is free. > You can't do this on the server side, you have to do the inserting of the tag-placeholders on the client side so if you can do it with javascript you are on the good way. Use PHP to replace the placeholders on display as mentioned before in this thread. Invisionboard does exactly this: Inserts placeholders for tags with javascript and uses the PHP class mentioned by Nico Schuyt to replace the placeholders with the HTML. -- Markus | |||
| Featured Websites | ||||
|
![]() |
| Tags: create, editor, html, own |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best php editor | BigB | PHP | 8 | 07-01-2007 5:10 PM |
| Scripting editor for Mac OS X? | Craig Bailey | PHP | 4 | 07-01-2007 3:15 PM |
| TT colorscheme editor | Linea Recta | GPS | 0 | 06-26-2007 12:04 AM |
| best IPTC Editor | Stewart Bootles | Graphics in general | 0 | 06-11-2007 9:39 PM |
| CoffeeCup HTML Editor,Direct FTP,Website Font and others. | marketraise int | HTML | 0 | 05-24-2007 10:25 AM |
| Featured Websites | ||||
|